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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Select a measure based on filter page selection

Hi community,

 

I would know if exist the method to select a dinamically measure with link on filter page.

 

At below an example:

 

I have a one filter page e.g "brand company" and how to select the modality, the KPIs switch in dyanamically mode. The widget is a Card

 

I think this type of approach but it doesn't work:

 

Measure_Final = IF ((FILTER_1) = "A"; Measure_1; IF(FILTER_1) = "B"; Measure_2; IF(FILTER_1) = "C"; Measure_3; "Measure_Overall")

 

For more details i have upload a screenshot

 

Thanks advance for your support,

Best regard

 

Example_Widget_Card.PNG

 

 

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can use this measure.

 

Selected Value =
var __ValueClicked = SELECTEDVALUE(Table2[Type])

return
Switch(
true(),
__ValueClicked = "A", "Try Measure A",
__ValueClicked = "B" , "Try Measure B",
__ValueClicked = "C" , "Try Measure C",
__ValueClicked = "D", "Try Measure D",
"Nothing is filtered"
)
 
Replace your measures with "Try Measure A","Try Measure B", respectively and it should work.
123.JPG
 
 
Did I answer your question? Mark my post as a solution!
Regards,
Harsh Nathani

View solution in original post

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can use this measure.

 

Selected Value =
var __ValueClicked = SELECTEDVALUE(Table2[Type])

return
Switch(
true(),
__ValueClicked = "A", "Try Measure A",
__ValueClicked = "B" , "Try Measure B",
__ValueClicked = "C" , "Try Measure C",
__ValueClicked = "D", "Try Measure D",
"Nothing is filtered"
)
 
Replace your measures with "Try Measure A","Try Measure B", respectively and it should work.
123.JPG
 
 
Did I answer your question? Mark my post as a solution!
Regards,
Harsh Nathani
Anonymous
Not applicable

Hi harshnathani,

 

Thank a lot.

 

The DAX Code is great 😉

@Anonymous ,

 

Thank You 🙂

 

Regards,

Harsh Nathani

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.