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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
asdf1608
Helper V
Helper V

Need Help

In tableau I created a parameter and using the parameter created a calculated field using "case when" and used that field as measure to display it as value.

For Example:

Created parameter

asdf1608_1-1674563581268.png

Created measure:

asdf1608_2-1674563825585.png

and the result

asdf1608_3-1674563870005.png

I created the parameter but not able to use that parameter as measure. kindly help

 

2 REPLIES 2
amitchandak
Super User
Super User

@asdf1608 , You can use switch

 

You Can create a measure like

 

Sumx( Table,

Switch( selectedvalue(Param[Value]),

1, [Column1],

2, [Column2],

3, [Column3],

4, [Column4],

// add other

)

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I created the parameter through fields which is not applicable for this scenario.

asdf1608_0-1674571727316.png

 

So I created the parameter from Power BI query. But only the first value is showing not the rest.

Can you guide me of how to create that display parameter?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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