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.
I have 5 Slicers and They are A, B, C, D, & E. I want to Filter Matrics Based on the combination of AND & OR logic between Slicers. Something Like below.
Matrics should be Filtered by = ( A & B ) || ( C & D ) || E
Example = ( A AND B ) OR ( C AND D ) OR E
Can Someone Share with me a prototype build on DAX? Using Connected or Disconnected Table/Slicers will work.
Solved! Go to Solution.
@Rasidul_Hasan That would be something below. Hard to be specific without sample data, etc. Basically an implementation of a Complex Selector. The Complex Selector - Microsoft Power BI Community
Measure =
VAR __A = SELECTEDVALUE('SlicerTableA'[A])
VAR __B = SELECTEDVALUE('SlicerTableB'[B])
VAR __C = SELECTEDVALUE('SlicerTableC'[C])
VAR __D = SELECTEDVALUE('SlicerTableD'[D])
VAR __E = SELECTEDVALUE('SlicerTableE'[E])
VAR __A1 = MAX('Table'[A])
VAR __B1 = MAX('Table'[B])
VAR __C1 = MAX('Table'[C])
VAR __D1 = MAX('Table'[D])
VAR __E1 = MAX('Table'[E])
RETURN
SWITCH(TRUE(),
( __A = __A1 && __B = __B1 ) || ( __C = __C1 && __D = __D1) || __E = __E1,1,
0
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Great. 😊
@Rasidul_Hasan That would be something below. Hard to be specific without sample data, etc. Basically an implementation of a Complex Selector. The Complex Selector - Microsoft Power BI Community
Measure =
VAR __A = SELECTEDVALUE('SlicerTableA'[A])
VAR __B = SELECTEDVALUE('SlicerTableB'[B])
VAR __C = SELECTEDVALUE('SlicerTableC'[C])
VAR __D = SELECTEDVALUE('SlicerTableD'[D])
VAR __E = SELECTEDVALUE('SlicerTableE'[E])
VAR __A1 = MAX('Table'[A])
VAR __B1 = MAX('Table'[B])
VAR __C1 = MAX('Table'[C])
VAR __D1 = MAX('Table'[D])
VAR __E1 = MAX('Table'[E])
RETURN
SWITCH(TRUE(),
( __A = __A1 && __B = __B1 ) || ( __C = __C1 && __D = __D1) || __E = __E1,1,
0
)
Hi @Greg_Deckler , Is this solution for the Connected model With Slicers or Discounted Model with Slicers?
Fantastic.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |