How to Allocate Revenue by Account Manager using Power Query
Question details
The user needs a method to calculate and allocate revenue among different account managers based on shared percentage allocations.

- 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.
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.
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.
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.
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.
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.
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.
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 Dynamic Array Formulas
If you prefer staying directly in the worksheet without opening Power Query, use modern dynamic array functions like PIVOTBY and XLOOKUP to calculate the allocations on the fly.
Allocate Revenue Using Power Pivot and DAX
Ideal for large datasets and complex reporting, you can load your tables into the Data Model and use a DAX measure to calculate allocations.
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. Download and Install: Get WPS Office for free from the official website and follow the easy installation prompts.
- 2. Open Your Workbook: Launch WPS Spreadsheet and open your existing Excel (.xlsx) revenue allocation files directly.
- 3. Analyze Data Seamlessly: Use built-in lookup formulas, PivotTables, and standard array functions to manage and allocate your financial data efficiently.

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.




