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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.