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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors