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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
shiranti2000
New Member

Subtracting Grand Totals from two separate Tables

Hello everyone

I have created two tables in BI which are coming from two different spreadsheets. One spreadsheet provides estimated Manpower for a project in 2023 and the other one we have just made recently with the refreshed information. 

 

A BI sample table is shown below.

 

shiranti2000_0-1716495742110.png

 

 

shiranti2000_2-1716495779116.png

 

 

Power BI gives you the option to give you the total at the end. Now if we have two such tables in BI with different totals, is there a way to calculate the variance (difference) of the two? so this would be a variance row where 2024 variance would be 218.81- 16 and so on,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @shiranti2000 ,

For your question, you can try the 'SUM' function.

Use the following DAX expression to create measures:

_2024 = 
VAR _a = SUM(Table1[2024])
VAR _b = SUM(Table2[2024])
RETURN _b - _a
_2025 = 
VAR _a = SUM(Table1[2025])
VAR _b = SUM(Table2[2025])
RETURN _b - _a

Final output

vzhouwenmsft_0-1716519502654.png

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @shiranti2000 ,

For your question, you can try the 'SUM' function.

Use the following DAX expression to create measures:

_2024 = 
VAR _a = SUM(Table1[2024])
VAR _b = SUM(Table2[2024])
RETURN _b - _a
_2025 = 
VAR _a = SUM(Table1[2025])
VAR _b = SUM(Table2[2025])
RETURN _b - _a

Final output

vzhouwenmsft_0-1716519502654.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.