cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kcantor
Community Champion
Community Champion

Advanced Filter

Greetings!

Is there a way to add a filter, select advanced filter, and use more than two qualifiers? I need to filter by a total of four codes and it appears to only allow two. For example, when filtering by manufacturer code, I need to select 062, 140, 439,  and 853 as this particular manufacturer has multiple codes. Is this possible?

Your assistance is appreciated.





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

Proud to be a Super User!




1 ACCEPTED SOLUTION
kcantor
Community Champion
Community Champion

The way I worked around this was to create a lookup table by group representative name. Then I was able to sort this particular group as well as three others. I didn't really need to create a master list but it is the same idea.





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

Proud to be a Super User!




View solution in original post

16 REPLIES 16
uxjam
Frequent Visitor

This "workaround" does seem to work in most cases, but doesn't work for Azure Analysis Services hierarchy fields. Voting for a real >2 advanced filters feature - https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/10144383-more-than-2-values-for-a...

Fabiann
Helper I
Helper I

Hi guys,

 

I found a much easier way to do this:

 

I have chosen Basic filtering, then selected all, then searched for each code and unselected it, at the end I got what I  wanted.

 

shaskins
Advocate I
Advocate I

I stumbled on a workaround for this limitation of two (2) Advanced Filters.  First I determined the number of filters I needed to get the results I was looking for.  In my case I needed 5 filters.  Instead of choosing "Advanced Filtering", I chose "Basic Filtering" and then chose 5 random selections.  I then switched the drop-down from "Basic Filtering" to "Advanced Filtering" again, and it presented me with 5 filters vs the default of 2.  Be sure not to hit the "Apply" button until you have filled out all 5 of the filters because as soon as you hit apply, any filters that are left blank will dissappear.

 

Hope this helps....

Absolutely fantastic 👍 worked a treat, can't thank you enough for this great helpful hint 😊

Thank you for the tip, worked like a charm

Wow this worked for me. It is truly so pathetic that you have to hack it this way for just a fundamental functionality. 

 

shaskins
Advocate I
Advocate I

I stumbled on a workaround for this limitation of two (2) Advanced Filters.  First I determined the number of filters I needed to get the results I was looking for.  In my case I needed 5 filters.  Instead of choosing "Advanced Filtering", I chose "Basic Filtering" and then chose 5 random selections.  I then switched the drop-down from "Basic Filtering" to "Advanced Filtering" again, and it presented me with 5 filters vs the default of 2.  Be sure not to hit the "Apply" button until you have filled out all 5 of the filters because as soon as you hit apply, any filters that are left blank will dissappear.

 

Hope this helps....

This is a great workaround. Exactly what I needed. Thanks for sharing.

It's been one and a half years since this post, but I tried it today and it worked beautifully!

Thanks!

Jay_O
Frequent Visitor

Seems to be working. Awesome tip!

GilbertQ
Super User II
Super User II

Hi @kcantor, the way that I would solve this issue would be the following:

 

  • If the codes are always going to be the same, I would go into the Query Editor.
  • I would then create a new Custom Column or Conditional Column lets call it ManFactFilter
    • In this Column I would then specify the codes with the output example being Manufacturer 1
    • And the else clause being "Other Manufacturers
  • I would then load this data into my Model.
  • And then I would create a Slicer or in my filters drag in the ManFactFilter column, and then simply select Manufacturer 1




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

Proud to be a Super User!







Power BI Blog

kcantor
Community Champion
Community Champion

The way I worked around this was to create a lookup table by group representative name. Then I was able to sort this particular group as well as three others. I didn't really need to create a master list but it is the same idea.





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

Proud to be a Super User!




View solution in original post

M_Rea
Frequent Visitor

This may have already been solved, but as this thread doesn't have one already I thought I'd add what we do...

 

In the PowerBi Custom visuals page, there are two visuals we use that work well for multiple advanced filtering: The Attribute Slicer and the SmartFilter.   Both of these will allow you to search for groupings based on values you select, and select multiple groupings to filter the page.  

 

Keep in mind, this is great to bypass the 2 filter limit in the native program, but if you're looking to group anything more than 20 filters this can get tedious. 

 

The link to the visuals page is https://app.powerbi.com/visuals/

AhmedIsmail
Regular Visitor

u can use if to get 2 values then u can use the if result to filter 

andre
Memorable Member
Memorable Member

unfortunately, only two values are available in the advanced filter.  The old Power BI supported search in a list of values that was very convenient, but the PBI 2 does not support that anymore so you may have to do a lot of scrolling to multiselect your codes.  Hopefully this experience will get enhanced soon.

It's really important. Actually my report have too many values that the scroll doesn't scroll to all values.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors