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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.