cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jgo1986 Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Highlighted
v-cherch-msft Super Contributor
Super Contributor

Re: conditional slicer and table dashboard

Hi @jgo1986 

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
Super User
Super User

Re: conditional slicer and table dashboard

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...

Highlighted
v-cherch-msft Super Contributor
Super Contributor

Re: conditional slicer and table dashboard

Hi @jgo1986 

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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 6 members 3,574 guests
Please welcome our newest community members: