Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
Anyone have any ideas for this? Seems strange that you can only add two items.
Thank you!
Sonia
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.
Please let me know if this works.
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.
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
@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/
User | Count |
---|---|
84 | |
76 | |
74 | |
49 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |