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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
loafers
Frequent Visitor

Measure Parameter - Take Difference between two Measure Parameters

Hi,

 

Is it possible to have a measure to take the difference of the two parameters in a visual?

 

I have sales measures for each year going back as far as 5 years. I'm planning on put two parameters into a matrix or table so the end user can select the two years of sales they want to compare. Is it possible to have a measure to just take the difference of the two parameters without have to build out the measures separately and doing something like Switch depending on selection?

1 REPLY 1
FreemanZ
Community Champion
Community Champion

hi @loafers 

seems yes, just try it.

e.g.

Diff =

CALCULATE([measure], data[year]=SELECTEDVALUE(parameter1[parameter1]))

-

CALCULATE([measure], data[year]=SELECTEDVALUE(parameter2[parameter2]))

Helpful resources

Announcements
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.