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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
THZR_1
New Member

Difference in a Total

I have a sheet below

 

View - ID - Order - Item - Weight

View 1 - 12345 - 1111 - 10 - 10

View 1 - 12345 - 1111 - 20 - 10

View 2 - 12345 - 1111 - 10 - 10

View 1 - 4567- 2222 - 10 - 10

View 1 - 4567 - 2222 - 20 - 10

View 2 - 4567- 2222 - 10 - 10

View 2 - 4567 - 2222 - 20 - 10

View 2 - 789- 3333 - 10 - 10

View 2 - 789 - 3333 - 20 - 10

 

And would like to create a Table which shows me as below. The View 1 and View 2 would be defined by a filter, but it could also be a View 3

 

Ex:

Filters (View 1, View 2) - but it could be View1, View3 or View2, View5 and so on..

 

ID - View 1 - View 2 Total

12345- 20 - 10 - (-10)

4567 - 20 - 20 - 0

789 - 0 - 20 - 20

 

Does anyone know how to solve this?

3 REPLIES 3
THZR_1
New Member

Tom,

 

I need the total to show the Diference between View 1 and View 2. 

 

(Value View 2 - Value View 1)

 

In the case your post, the total should be:

 

Total

30

0

-20

10

 

Appreciate the help

 

Add a New Column
Tom_Y_0-1702649884387.png

 

something like

Differ = 'Table'[View 2]-'Table'[View 1]
Tom_Y
Advocate II
Advocate II

Use "Group By" in Query Editor.

Same as below.

Tom_Y_4-1702595306263.png

 

Tom_Y_3-1702595264479.png

 

In Matrix Visual, choose either New Item, New Weight, or both, and you will get it.

Tom_Y_1-1702595202813.png

Tom_Y_2-1702595212435.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.