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
katto16
Helper I
Helper I

Visual level filter with DAX

I have this data table visual with serial number column that consists of serial IDs as well as blanks, 0s and "ref", "REF". I want to take them out and only leave the table with actual serial numbers. Is there any way I can set a visual level filter with DAX? I do not want to filter them out in Power Query as I still want to see the original test record if it's needed.

 

image.png

 

In the visual filter pane, I can only set max of two filters but I need 5 filters.

Show items

<> ""

<> 0

doesn't contain "REF"

doesn't contain "ref"

doesn't contain "Ref"

katto16_1-1675240696266.png

Any help is appreciated. Thanks in advance!

 

1 ACCEPTED SOLUTION
johnyip
Super User
Super User

@katto16 You can try changing the filter type to basic filtering first, and then select all the unneeded values from the list. And finally, change the filter type back to advanced filtering, and make some other appropriate changes.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

View solution in original post

2 REPLIES 2
johnyip
Super User
Super User

@katto16 You can try changing the filter type to basic filtering first, and then select all the unneeded values from the list. And finally, change the filter type back to advanced filtering, and make some other appropriate changes.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

A further tips, if you want to filter <> "", maybe you can select an additional random item from the list of basic filtering, after that when you have switched to advanced filtering, alter that random selection to "is not blank" or "is not empty" in the show items when value is option.

 

Depending on your data, I think you may select only one of them, or actually both. If you need both, apply the above steps with two random selections.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

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.