cancel
Showing results for 
Search instead for 
Did you mean: 
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
alekhved
Resolver I
Resolver I

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors