Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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.
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,
Solved! Go to Solution.
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
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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 45 | |
| 30 | |
| 24 | |
| 23 |
| User | Count |
|---|---|
| 144 | |
| 106 | |
| 64 | |
| 38 | |
| 31 |