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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Difference between two columns in matrix

Hi,

 

I have a dynamical matrix following. Two columns are dynamical based on period I select for example 2018.06. 

I want to know how to make a difference (Actual - Budget). 

 

I am looking forward to hearing from you soon.

 

Best regards.

 

Wei

 

Capture2.PNG

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Just create three measure as below:

Actual = CALCULATE(SUM(Table1[Value]),FILTER(Table1,Table1[Kind]="Actual"))
Budget = CALCULATE(SUM(Table1[Value]),FILTER(Table1,Table1[Kind]="Budget"))
Difference = [Actual]-[Budget]

Then do not drag [Kind] field (Actual - Budget) into matrix Columns value and [Value] into matrix Value. Just drag these three measure into Value.

Result:

6.JPG

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Just create three measure as below:

Actual = CALCULATE(SUM(Table1[Value]),FILTER(Table1,Table1[Kind]="Actual"))
Budget = CALCULATE(SUM(Table1[Value]),FILTER(Table1,Table1[Kind]="Budget"))
Difference = [Actual]-[Budget]

Then do not drag [Kind] field (Actual - Budget) into matrix Columns value and [Value] into matrix Value. Just drag these three measure into Value.

Result:

6.JPG

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.