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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.