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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
giramswa
Helper II
Helper II

Slicer based on values of multiple measures placed on a Table visual

Hi All,

 

I have a table visual with some columns and some measures as below:

Col_1Col_2Col_3Col_4Measure_1Measure_2Measure_3Measure_4
APAC331221abcd1010
EMEA332222efgh1101
EUROPE333223jklm1010
AMERICA334224nopq0001

 

I need to provide option to classify records in above table visual as per below conditions:
1. IF(measure_1 = 1 && measure_2 =1, THEN "ABC Compliant" , ELSE "ABC Non-Compliant")
2. IF(measure_3 = 1 && measure_4 =1, THEN "LML Compliant", ELSE "LML Non-Compliant")

Need to provide one Slicer with below 5 options:

1. Only ABC Compliant Records
2. Only LML Compliant Records
3. Show both -- Compliant (ABC & LML) 
4. Show both -- Non-Compliant (ABC & LML) 
5. Show ALL

As I can map only one column(and not measure) to slicer, how can I achieve this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @giramswa ,

Here are the steps you can follow:

1. Create a table with Enter data.

vyangliumsft_0-1658407816185.png

2. Create measure.

Measure_true1 =
    IF(
    [Measure1]=1&&[Measure2]=1,"ABC Compliant",
        "ABC Non-Compliant"
)
Measure_true2 =
    IF(
        [Measure3]=1&&[Measure4]=1,"LML Compliant","LML Non-Compliant")
Flag =
SWITCH(
    TRUE(),
    MAX('Slicer_Table'[Slicer])="Only ABC Compliant Records"&&
   [Measure_true1] ="ABC Compliant",1,
    MAX('Slicer_Table'[Slicer])="Only LML Compliant Records"&&
    [Measure_true2] ="LML Compliant",1,
    MAX('Slicer_Table'[Slicer])="Show both -- Compliant (ABC & LML)"&&
    [Measure_true1] ="ABC Compliant"&&[Measure_true2] ="LML Compliant",1,
    MAX('Slicer_Table'[Slicer])="Show both -- Non-Compliant (ABC & LML)"&&
    [Measure_true1]="ABC Non-Compliant"&&[Measure_true2]="LML Non-Compliant",1,
    MAX('Slicer_Table'[Slicer])="Show ALL",1)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1658407816186.png

4. Result:

vyangliumsft_2-1658407816189.png

If you need pbix, please click here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
giramswa
Helper II
Helper II

@Anonymous Thank you for your inputs, your suggested approch resolved my issue.

Anonymous
Not applicable

Hi  @giramswa ,

Here are the steps you can follow:

1. Create a table with Enter data.

vyangliumsft_0-1658407816185.png

2. Create measure.

Measure_true1 =
    IF(
    [Measure1]=1&&[Measure2]=1,"ABC Compliant",
        "ABC Non-Compliant"
)
Measure_true2 =
    IF(
        [Measure3]=1&&[Measure4]=1,"LML Compliant","LML Non-Compliant")
Flag =
SWITCH(
    TRUE(),
    MAX('Slicer_Table'[Slicer])="Only ABC Compliant Records"&&
   [Measure_true1] ="ABC Compliant",1,
    MAX('Slicer_Table'[Slicer])="Only LML Compliant Records"&&
    [Measure_true2] ="LML Compliant",1,
    MAX('Slicer_Table'[Slicer])="Show both -- Compliant (ABC & LML)"&&
    [Measure_true1] ="ABC Compliant"&&[Measure_true2] ="LML Compliant",1,
    MAX('Slicer_Table'[Slicer])="Show both -- Non-Compliant (ABC & LML)"&&
    [Measure_true1]="ABC Non-Compliant"&&[Measure_true2]="LML Non-Compliant",1,
    MAX('Slicer_Table'[Slicer])="Show ALL",1)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1658407816186.png

4. Result:

vyangliumsft_2-1658407816189.png

If you need pbix, please click here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@giramswa , You need create a new measure like

 

IF( [measure_1] = 1 && [measure_2] =1,"ABC Compliant" ,"ABC Non-Compliant")

 

M2=

IF([measure_3] = 1 && [measure_4] =1, "LML Compliant", "LML Non-Compliant")

 

Then you need dynamic segmentation using an independent having the values

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

https://www.daxpatterns.com/dynamic-segmentation/

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

Thank you for your inputs.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.