Forum Discussion
Boolean values / OR condition
Hi there,
Thanks so much for trying to help. I've been trying to see how I can make this work. The issue is that fields I would be working with are about 10 - 12 different fields. So picture 10 more colors. Ultimately, this would be distributed to sales, etc. who would be able to filter freely to see what the totals are in the categorie(s) they select. With so many fields, I can't account for every possible combination of fields they could make and my coworkers need to be able to do it on their own easily w/out creating measures. Unless I'm missing something?
I'm actually a little surprised that being able to use "OR" versus "AND" is not already baked into PowerBI.
Any other ideas? I really do appreciate all the help.
Hi Anonymous,
Did you try the method 2?
You can try this formula that allows you to select the colors from a slicer.
MeasureMethod2 =
VAR chosenColors =
ALLSELECTED ( Method2[Attribute] )
RETURN
IF (
ISFILTERED ( Method2[Attribute] ),
CALCULATE (
DISTINCTCOUNT ( Method2[User] ),
FILTER (
'Method2',
Method2[Attribute] IN chosenColors
&& 'Method2'[Value] = TRUE ()
)
),
BLANK ()
)
Best Regards!
Dale