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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
cosmicyes
Helper II
Helper II

What-If Parameter: show different names for parameters to users?

If this is a stupid question just tell me 😉

 

I want to implement a What-if-Parameter with two values: 0 and 1.
If the user sets the slicer to 0 a measure is multiplied by 0.
If the user sets the sliver to 1 the measure is multiplied by 1 and the complete value is shown.

 

Now the question:

Is there any possibility to show the user 0 as "No" and 1 as "Yes"?
I want it to be just an optical tweak.

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello,

 

You could add a calculated column in the parameter table and insert this dax :

Value = IF(Parameter[Parameter] = 0,"No","Yes")
 

Idrissshatila_0-1671525200354.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos!

 Follow me on Linkedin 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello,

 

You could add a calculated column in the parameter table and insert this dax :

Value = IF(Parameter[Parameter] = 0,"No","Yes")
 

Idrissshatila_0-1671525200354.png

 

If I answered your question, please mark my post as solution, Appreciate your Kudos!

 Follow me on Linkedin 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thank you @Idrissshatila 
Great Idea!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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