Forum Discussion
Julian_H
3 years agoHelper II
Slicers and OR statement
Hi, I have had a request to set up a report in PBI that would require a slicer that always "OR". For example , I have a data set that has Name 1 and Name 2 in it. I want th user to be able to...
- 3 years ago
hi Julian_H
check this blog
https://www.sqlbi.com/articles/using-or-conditions-between-slicers-in-dax/
Julian_H
3 years agoHelper II
Sorry the data is sensitive but here's a mock up
| Account | Name 1 | Name 2 |
| 123 | John | Peter |
| 456 | Mary | David |
| 789 | Peter | Paul |
So from the slicer(s) the user for example wants all data where Name 1 = John and Name 2 = Paul
So in this instance you would get a list showing account no's 123 and 789
Padycosmos
3 years agoSolution Sage
Hope this helps:
- Julian_H3 years agoHelper II
Cool Thank you so Much.. I'll give it a go
- Padycosmos3 years agoSolution Sage
Slicers Name1 and Name2 are created from the columns in the newly created Tables Name 1 and Name 2
Table:
Name1 = VALUES('Table'[Name 1])Table:
Name2 = VALUES('Table'[Name 2])