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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Visual advanced filter multiple values

I have created a table visual to show a list of items that do not have a valid status. I have a list of valid statuses (A, D, N, S, O, and more) and want to show any item with anything other than the valid ones. On the visual advanced filtering, I can only have 2 (status is not A or status is not D).

 

Any help would be appreciated!

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

You need an extra table (suppose it's 'ValidStatus') to list all valid statuses.

1.PNG

 

Create such a measure:

Measure =
IF (
    ISERROR (
        FIND (
            SELECTEDVALUE ( DataTable[Status] ),
            CONCATENATEX ( ValidStatus, ValidStatus[ValidStatus], "," )
        )
    ),
    0,
    1
)

Add this measure to visual level filters and set its value to 1.

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

You need an extra table (suppose it's 'ValidStatus') to list all valid statuses.

1.PNG

 

Create such a measure:

Measure =
IF (
    ISERROR (
        FIND (
            SELECTEDVALUE ( DataTable[Status] ),
            CONCATENATEX ( ValidStatus, ValidStatus[ValidStatus], "," )
        )
    ),
    0,
    1
)

Add this measure to visual level filters and set its value to 1.

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks Yuliana. I decided to create an additional column with a switch statement for each valid value and setting to 1 if valid or 0 if not. Then I could key off this column for my visual.

PattemManohar
Community Champion
Community Champion

@Anonymous Any sample data and expected output will be helpful. 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

Thank you for replying quickly.

 

Here's a sample of my data:

ItmNbr   Status

123         A

456         D

789         X

 

Both A & D are valid statues. I would like to show in my report:

ItmNbr   Status

789          X

 

There is currently no table with valid status. Would it be beneficial to make one?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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