Forum Discussion
Filter issue with &&&&
Hi,
I have a trouble with filtering a table. Please see code below:
All Site[SiteCode] filters works properly, but not the Employee [DprtId] filter. This is what I see as the result:
Please help to understand what's wrong here.
- Anonymous6 years ago
Thanks for turning me to the right track of thougts 🙂 Just needed to change && --> AND function and now it works as I expected. Posting screenshot to anyone can help in the future.
4 Replies
- az38
Community Champion
Hi Anonymous
First of all, your OR conditions should be in parenthesises like
[DrtID] = 100 && ([SiteCode]="OD" || [SiteCode]="KV" || [SiteCode]="LV")- AnonymousNot applicable
az38 Hi! I can't do like that because of RELATED function
- Greg_Deckler
Community Champion
Extremely difficult to say without sample source data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
But, perhaps you meant that their DeptId = 100 && ( RELATED || RELATED || RELATED || RELATED ) ?
- AnonymousNot applicable
Thanks for turning me to the right track of thougts 🙂 Just needed to change && --> AND function and now it works as I expected. Posting screenshot to anyone can help in the future.