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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Helper III
Helper III

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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