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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
teomelis
New Member

Difference between two columns on a filtered matrix

hi all 

 

 

Below is a matrix that has values for three distinct columns "ACT" "LY" "RF4", the 3 columns are selected filters from the same column of the source data. I want to calculate the difference between 1) ACT and LY,  2) LY and RF4. How do I insert the calculated columns into this matrix that is currently filtered? 

 

Capture.PNG

 

Any help (with step by step visuals) is appreciated as I do not have much experience with DAX.

 

Thanks

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @teomelis,

 

Please refer to my reply in this similar thread: How can I calculate % from 2 columns 1 and 2 where 1,2 are the periods of time (year, months, etc)

 

We can add the Difference column into matrix, but it is not possible to dynamically show/hide the column based on slicer selection.

 

Regards,
Yuliana Gu

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

@teomelis

 

Create 2 calculated columns:

1. To calculate difference between ACT and LY

2. To calculate difference between LY and RF4

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.