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
samerhaidar0811
Frequent Visitor

Display measure based on selected parameter value

Hey guys,

 

Consider the sample table below: 

samerhaidar0811_0-1663410696666.png


I have a card on my dashboard where i want to display a measure = cost/quantity. However, i want it to have an option where the user can select either to view it in GBP or in the local currency so i created a field parameter and chose the 'GBP Currency' and 'Local Currency' as the values.

So, the goal is to have the user select either the GBP currency or the local currency and have the measure calculated accordingle. So if he selects gbp currency, the measure would be calculated as sum(GBP Cost)/sum(Quantity) and if he selects Local Currency the measure would be sum(Local Currency Cost)/sum(Quantity).

 

Thanks in advance for any tips or help!

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

hI @samerhaidar0811 

Hope it works, please find the attached PBIX file
01.gif

 

Let me know, it works or not

If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

2 REPLIES 2
PijushRoy
Super User
Super User

hI @samerhaidar0811 

Hope it works, please find the attached PBIX file
01.gif

 

Let me know, it works or not

If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Thanks!!

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.