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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.