Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I need help writing a DAX measure in which I have to calculate the difference between two selected measure in a field paramenter slicer.
Do I have to create a calculation group in Tabular Editor? If yes, can you guide me on how to do it?
es. Selecting EBITDA for the current year and the EBITDA of the previous year from the filter parameter slicer, I need to have the difference between theese two selected measure.
I Need to have this difference measure to be dynamic, based on the selected measere in the field paramenter slicer.
Can anyone help me??
Thanks in advance,
Luca
I solved it by creating two measures that shows the selected value order from the field parameters:
Parameter 1 = SELECTEDVALUE('Parameter1' [order])
Parameter 2 = SELECTEDVALUE('Parameter2' [order])
Then I created a Switch measure that looks a the above chosen values and their order:
Difference =
HI @some_bih
I need to have a dinamyc measure that appears only if I select those 2 measures in the field parameter slicer.
In the field parameter slicer I have multiple measures that don't need this "Difference AC - AP" measure to be showed.
Hi @L_G simple measure like below is ok for you?
Difference test= [EBTDA]-[EBTDAP]
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.