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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.