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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Adding additional filters in advanced filtering panel

Hi there, 

 

Does anyone know if it's possible to 'add' additional filtering conditions in the 'advanced filtering' section?

 

I can add 1 field either side of the AND/OR, but can't add additional ones below (eg: x OR y OR y etc.) 

 

The only way I've found possible is if I revert back to 'basic filtering' and select some additional items. When i return to advanced it has these additional fields listed. But then with this option, you're unable to remove

sonial_0-1656301664312.png

Anyone have any ideas for this? Seems strange that you can only add two items. 

 

Thank you!

Sonia

5 REPLIES 5
Seanan
Solution Supplier
Solution Supplier

Hi @Anonymous 

You could try using a calculated column to achieve what you want. Please see the following code:

Filter = SWITCH(TRUE(),CONTAINSSTRING('SalesTeam'[Company],"Test1") || CONTAINSSTRING('SalesTeam'[Company],"Test2") || CONTAINSSTRING('SalesTeam'[Company],"Test3"),"Filter")

Then add this column in the filters pane.

NVIDIA_Share_D2Jpggnm13.png

 

 

 

 

 

Please let me know if this works.

Anonymous
Not applicable

Hi @Seanan , 

 

Unfortunately this one doesn't work for my use case. 

 

I'd like to be able to have 'and'/'or' functionality, using as many items as I'd like. 

 

Thank you anyway... i guess i'll have to wait for a new feature update. 

 

Sonia

 

 

Hi @Anonymous 

The filter code above can be adjusted to hold as many and/or condtions are you'd like. However, it would be a lot of manual overhead if you needed to add or remove conditions.

Hopefully there is a release soon that will be better suited to your requirements.

Anonymous
Not applicable

Thanks, @Seanan 

 

Yeah, the idea would be for the dashboard user to be able to add/remove conditions, so won't work to have in the code 😞

 

Thanks again!

Sonia

amitchandak
Super User
Super User

@Anonymous , I think as of now you have to work with a workaround using basic filtering.

 

You can log and idea for better UI - https://ideas.powerbi.com/ideas/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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