Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to apply % of total sales from one table to another table

Hi Everyone,
I have two separate tables, Table A (Budgeted sales by State & Employee) & Table B (Budget sales by Business Unit & Product Category). There is no common values between two tables except months and both totals same which is total budgeted sales for the year.
I want combine these two tables in one so that I can slice by State, Employee, Business Unit & Product Category.
I have tried calculating $ of total budgeted sales for each month for state & employee from Table A and applied that measure to Total Budgeted Sales in Table B.
It gives me correct value in total for the year but for each month, it gives % of that month’s Total Budgeted Sales. (Eg. For Jan-21 - Budgeted Sales was $1000, it gives me 5% of $1000, i.e. $50. Where as in total for the year, it gives me correct amount).

 

What would be the best solution in such scenario?

 

 

1 REPLY 1
lbendlin
Super User
Super User

Best solution would be to have a transaction identifier in both tables.

 

Second best solution would be to combine these two tables at the data source by adding all granularities directly. Meaning each row of your data would identify state, employee, business unit and product category.

 

If you cannot do that then you have to live with the ambiguity of your current data model.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.