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
Tahech
Helper I
Helper I

Parameter with conditional selectedvalue

Hi guys,

 

I created the following parameter:

Tahech_1-1670252215769.png

 

But there is a problem, this parameter needs to be filtered by a selected value, in order to automatically change the field WHEN "var grupo_trabalho" = 353.

 

I tried the following DAX as an example for you to understand.

Tahech_0-1670252168372.png

 

Anyone knows how to do it

2 REPLIES 2
amitchandak
Super User
Super User

@Tahech , refer to my code in the blogs to get the selected value in field parameters

 

Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f
Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

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

TOPN won't work, it needs to be filtered for the example: grupo_trabalho = 353, and the field will be automatically changed. 

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.