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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Custom filter with criteria

Hello 

 

I need some help with a slicer filter. Below is the example. What I need is a Slicer for CIR column, where it don't show all the values, instead I need values like <50,<250 & <900 in the slicer for CIR and once selected from that column it will show all the values that qualify the criteria

so if I select CIR <50 it show all columns in table that has CIR < 50 and also have additional filters <250, <900 in the filtering options.

 

CodeCategoryCIR
A1New10
B2On-Air50
C4New5
D4Active800
E3Active2000
F3Active8
G2New10
H1On-Air250
K1On-Air600
1 ACCEPTED SOLUTION

Hi, @Anonymous 

Please try following steps:

1.enter a table as below

veasonfmsft_0-1655457014454.png

2.add new measures:

 

<50 = IF(MAX('Table'[CIR])<50,1,0)
<250 = IF(MAX('Table'[CIR])<250,1,0)
<900 = IF(MAX('Table'[CIR])<900,1,0)
filter = 
VAR a =
    SWITCH (
        SELECTEDVALUE ( Parameter[Parameter] ),
        "<50", [<50],
        "<250", [<250],
        "<900", [<900]
    )
RETURN
    IF ( ISFILTERED ( Parameter[Parameter] ), a, 1 )

 

3.drag the new measure 'filter' to visual filter pane as below:

veasonfmsft_1-1655457350433.png

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

bumping it to see if anyone can help, please

Hi, @Anonymous 

Please try following steps:

1.enter a table as below

veasonfmsft_0-1655457014454.png

2.add new measures:

 

<50 = IF(MAX('Table'[CIR])<50,1,0)
<250 = IF(MAX('Table'[CIR])<250,1,0)
<900 = IF(MAX('Table'[CIR])<900,1,0)
filter = 
VAR a =
    SWITCH (
        SELECTEDVALUE ( Parameter[Parameter] ),
        "<50", [<50],
        "<250", [<250],
        "<900", [<900]
    )
RETURN
    IF ( ISFILTERED ( Parameter[Parameter] ), a, 1 )

 

3.drag the new measure 'filter' to visual filter pane as below:

veasonfmsft_1-1655457350433.png

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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