Power Query Problems

How to Allocate Revenue by Account Manager using Power Query

Bushra ParveenBushra Parveen Nov 10, 2026 869 views

Question details

The user needs a method to calculate and allocate revenue among different account managers based on shared percentage allocations.

How to Allocate Revenue by Account Manager Using Power Query or DAX
Product
Microsoft Excel
Device & OS
not provided
Scenario
Distributing category revenues across multiple account managers where individual percentage shares combine to a total of 100%.
Observed behavior
Revenue and percentage share data are stored in separate tables and need to be joined and pivoted to display accurately allocated totals per manager.
Before you start

Ensure your revenue and percentage share data are formatted as standard tables with clear column headers. Verify that the share percentages for each shared category sum up to exactly 100% to prevent overstating or understating the final revenue totals.

Solution 1Recommended

Allocate Revenue Using Power Query

Use Power Query to merge the revenue and share tables, calculate the allocated amounts, and pivot the data to create a clean summary by account manager.

Power Query is the most robust method for this task because it creates a repeatable process. Once built, you can simply refresh the query whenever your source data changes.

1
Load data to Power Query

Select your Revenue table and go to Data > From Table/Range. Repeat this process for the Shares table so both are loaded into the Power Query Editor.

2
Merge the tables

In the Power Query Editor, click Home > Merge Queries. Select your Shares table as the primary and Revenue as the secondary table. Choose the common identifier column (like 'Category') to perform a Left Outer join, then expand the Revenue column.

3
Calculate allocated revenue

Go to Add Column > Custom Column. Name it 'Shared Revenue' and enter the formula `[Share] * [Revenue]` to multiply the account manager's percentage by the total category revenue.

4
Pivot the Account Manager column

Remove unnecessary columns so only 'Category', 'Account Manager', and 'Shared Revenue' remain. Select the 'Account Manager' column, go to the Transform tab, and click Pivot Column. Choose 'Shared Revenue' as your Values Column and use Sum as the aggregate function.

5
Add row totals and load

If you need a grand total per category, add a custom column that sums the newly pivoted manager columns. Finally, click Home > Close & Load to output the allocated data to a new worksheet.

Allocate Revenue Using Power Query
Free Microsoft Office alternative

Try WPS Office for Powerful Data Analysis

If you frequently work with data allocations, financial summaries, and advanced worksheet functions, WPS Office is an excellent free alternative to Microsoft Excel. It offers robust formula support and seamless format compatibility without the heavy subscription fees.

  1. 1. Download and Install: Get WPS Office for free from the official website and follow the easy installation prompts.
  2. 2. Open Your Workbook: Launch WPS Spreadsheet and open your existing Excel (.xlsx) revenue allocation files directly.
  3. 3. Analyze Data Seamlessly: Use built-in lookup formulas, PivotTables, and standard array functions to manage and allocate your financial data efficiently.
100% compatible with Microsoft Excel (.xlsx) files.Supports advanced array formulas like XLOOKUP for dynamic data allocation.Lightweight application that opens large datasets lightning-fast.Completely free to use with a familiar, easy-to-navigate interface.
microsoft office alternative - wps office

Frequently Asked Questions

Can I allocate revenue dynamically without using Power Query?

Yes, you can use modern dynamic array functions like PIVOTBY combined with XLOOKUP directly in your worksheet cells to perform the allocation instantly without opening the Power Query editor.

Why do my share percentages need to total exactly 100%?

If the shared percentages for a specific category do not equal exactly 100%, the allocated revenue will either under-report or over-report the actual total revenue, leading to inaccurate financial summaries.

What is the benefit of using DAX over standard PivotTables for this task?

DAX (Data Analysis Expressions) allows you to build a relational data model. Using SUMX and RELATED lets you calculate accurate line-by-line allocations across multiple tables without needing to physically flatten or duplicate the source data.

How do I update the allocations when new revenue data is added?

If you are using Power Query or the Data Model, simply append or type the new data into your original source tables, right-click the resulting summary table, and select 'Refresh' to automatically update the allocated figures.