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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

conditional slicer and table dashboard

Hello,

I have the following 2 tables and I created a Slicer with the right table:

Captura.JPG

 

In this filter, 

  • P1 are those incidents where Priority = 1
  • P1-P2 are those incidents where Priority = 1 or Priority = 2
  • P1-P3 are those incidents where Priority  = 1, or Priority = 2, Or Priority =3
  • P1-P4 are all incidents (no filtering)

I need to create Table dashboard in where, if Filter=P1, only shows incidents with Priority = 1, but if filter = P1-P2 the table shows all incidents P1 or P2... 

 

Captura.JPG

 

Could you give me a clue ? Thanks in advance.

 

 

Kind regards,

Jorge.

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

You may create a measure like below and use it in visual level filter and set it =1.

Measure =
IF (
    SELECTEDVALUE ( 'Filter'[Order] ) = 1
        && MAX ( Incidents[Priority] ) = 1,
    1,
    IF (
        SELECTEDVALUE ( 'Filter'[Order] ) = 2
            && MAX ( Incidents[Priority] ) <= 2,
        1,
        IF (
            SELECTEDVALUE ( 'Filter'[Order] ) = 3
                && MAX ( Incidents[Priority] ) <= 3,
            1,
            IF (
                SELECTEDVALUE ( 'Filter'[Order] ) = 4
                    && MAX ( Incidents[Priority] ) <= 4,
                1
            )
        )
    )
)

a1.png

Regards,

Community Support Team _ Cherie Chen
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

2 REPLIES 2
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

You may create a measure like below and use it in visual level filter and set it =1.

Measure =
IF (
    SELECTEDVALUE ( 'Filter'[Order] ) = 1
        && MAX ( Incidents[Priority] ) = 1,
    1,
    IF (
        SELECTEDVALUE ( 'Filter'[Order] ) = 2
            && MAX ( Incidents[Priority] ) <= 2,
        1,
        IF (
            SELECTEDVALUE ( 'Filter'[Order] ) = 3
                && MAX ( Incidents[Priority] ) <= 3,
            1,
            IF (
                SELECTEDVALUE ( 'Filter'[Order] ) = 4
                    && MAX ( Incidents[Priority] ) <= 4,
                1
            )
        )
    )
)

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cmcmahan
Resident Rockstar
Resident Rockstar

It looks like somebody was trying to accomplish something similar here: https://community.powerbi.com/t5/Desktop/Is-there-any-way-to-get-a-slicer-where-applied-value-is-les...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.