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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Nico1788
New Member

Delta between two matrix

Hello,

 

I've been searching for hours, but maybe cause of my issue description, I can't find a solution to it.

Unfortunately, I can't share a proper file, but I hope the table below would help.

Let's say I have a table as:

Nico1788_0-1663678871252.png

Out of that table, I would make a matrix with some filters, like that:

Nico1788_1-1663678916487.png

 

1)If I want to duplicate this matrix as Matrix2, and find the delta between Matrix 1 & Matrix 2, do I have to duplicate Table 1 in order to dissociate Matrix 1 from 2? From what I found so far, it seems yes, but I just want to make sure.

 

Then, let's say I already duplicate Table 1 and created an other Matrix based on Table 2:

Nico1788_2-1663679062203.png

2)How do I create a third matrix with the delta between 1 & 2? 

3)From which table rows and colums need to be selected? Do I need to create a third table with those informations and related to Table1 and 2?

Nico1788_3-1663679112731.png

 

FYI: what i've tried till now:

  -Duplicate table 1 to table 2. Have Matrix 1 (Table1) and Matrix 2 (Table2).

  -Link table 1 to table 2 per bracket (don't ask me why, I've tried to see if it could work, I did get a number making sense - I'm conscious it might be wrong).

  -Used CALCULATE(SUM(ALLSELECTED(All the filters above). I could get the difference on the grand total in one of my try, but not per rows/columns.

 

Let me know if you need anything else,

 

Thank you for your help (hope it's possible)

 

Nicolas

 

1 ACCEPTED SOLUTION
Nico1788
New Member

Alright, I'm gonna solve my own issue, but in case someone need the same thing, I put the resolution I found that work (might not be the best option of course).

I duplicate Table1 to get Table2.

I create 2 new table: one with Bracket, one with Category, both link to Table 1 & 2 (WIll be the rows and columns for Matrix 3).

I did the 2 matrix from Table 1 and Table 2 with their associated filters.

To get the difference:

DELTA=CALCULATE(SUM(Table1[QUANTITY],ALLSELECTED(Table1[YEAR],Table1[REGION],Table1[CLIENT]))-CALCULATE(SUM(Table2[QUANTITY],ALLSELECTED(Table2[YEAR],Table2[REGION],Table2[CLIENT]))

I put those value in Matrix 3 with Row = Table3[BRACKET] and Columns = Table4[CATEGORY]

And it worked..so far 🙂

 

Nicolas

View solution in original post

1 REPLY 1
Nico1788
New Member

Alright, I'm gonna solve my own issue, but in case someone need the same thing, I put the resolution I found that work (might not be the best option of course).

I duplicate Table1 to get Table2.

I create 2 new table: one with Bracket, one with Category, both link to Table 1 & 2 (WIll be the rows and columns for Matrix 3).

I did the 2 matrix from Table 1 and Table 2 with their associated filters.

To get the difference:

DELTA=CALCULATE(SUM(Table1[QUANTITY],ALLSELECTED(Table1[YEAR],Table1[REGION],Table1[CLIENT]))-CALCULATE(SUM(Table2[QUANTITY],ALLSELECTED(Table2[YEAR],Table2[REGION],Table2[CLIENT]))

I put those value in Matrix 3 with Row = Table3[BRACKET] and Columns = Table4[CATEGORY]

And it worked..so far 🙂

 

Nicolas

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors