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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mjmjn2611
Frequent Visitor

Dynamic measure based on selected slicer value

Hi,

 

I need to create a dynamic measure 

 

Product group   Category  Measure

1                        A 
1                        B

2                        A

2                        B

 

When I choose only product group 1, then the measure applied for both category A & B. If I also schoose category A, then the measure applied for product group 1 and category A. How could I do that?

1 REPLY 1
Anonymous
Not applicable

hi @mjmjn2611 

 

Try using multiple measure and then select the measure based on Product Group and Category

 

Measure = SWITCH(Product_Group, 1, SWITCH(Category,A, Measure_1,B,Measure_2),2,SWITCH(Category,A, Measure_1,B,Measure_2))

 

Thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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