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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
subburaj
Helper I
Helper I

Finding delta for all measures

Hi Friends - Please see below screenshot for yoru reference.  I would like to create a measure called "Delta" whichc is a difference between 2020 - 2019. and it should come on columns (next to 2020) showing delta between 2019 and 2020 for ALL 6 measures not just 1. Kindly help

 

detla.png

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

@subburaj ,

 

You need to convert the 6 measures to calculate columns and then create a measure using dax below:

Spoiler
Diff = 
VAR Percentage_2019 = CALCULATE(MAX('Table'[Percentage]), FILTER(ALLEXCEPT('Table', 'Table'[Measure]), 'Table'[Year] = 2019))
VAR Percentage_2020 = CALCULATE(MAX('Table'[Percentage]), FILTER(ALLEXCEPT('Table', 'Table'[Measure]), 'Table'[Year] = 2020))
RETURN
Percentage_2020 - Percentage_2019

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@subburaj ,

 

You need to convert the 6 measures to calculate columns and then create a measure using dax below:

Spoiler
Diff = 
VAR Percentage_2019 = CALCULATE(MAX('Table'[Percentage]), FILTER(ALLEXCEPT('Table', 'Table'[Measure]), 'Table'[Year] = 2019))
VAR Percentage_2020 = CALCULATE(MAX('Table'[Percentage]), FILTER(ALLEXCEPT('Table', 'Table'[Measure]), 'Table'[Year] = 2020))
RETURN
Percentage_2020 - Percentage_2019

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

 

Anonymous
Not applicable

Hi @subburaj ,

 

Did you try using Quick Measure subtraction?

 

Give a shot.

 

Thanks,

Tejaswi

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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