Forum Discussion
Selwynster
Helper II
8 years agoMulti Select Slicer
I have a image below with a table (left) with 2 columns, and a slicer on the right. Am i able to (using the slicer), find the date (Attribute) where ALL conditions are met? In SQL terms, i need ...
- 8 years ago
Hi Selwynster,
Please try a measure like below.
Measure = VAR actualAmount = CALCULATE ( DISTINCTCOUNT ( Table1[Value] ), ALLSELECTED ( Table1[Value] ) ) VAR selectedValues = CALCULATE ( DISTINCTCOUNT ( Table1[Value] ), ALLSELECTED ( Table1[Value] ), ALL ( Table1[Attribute] ) ) RETURN IF ( actualAmount = selectedValues, 1, 0 )Best Regards,
Dale
v-jiascu-msft
Microsoft Employee
8 years agoHi Selwynster,
Please try a measure like below.
Measure =
VAR actualAmount =
CALCULATE ( DISTINCTCOUNT ( Table1[Value] ), ALLSELECTED ( Table1[Value] ) )
VAR selectedValues =
CALCULATE (
DISTINCTCOUNT ( Table1[Value] ),
ALLSELECTED ( Table1[Value] ),
ALL ( Table1[Attribute] )
)
RETURN
IF ( actualAmount = selectedValues, 1, 0 )
Best Regards,
Dale
Selwynster
Helper II
8 years agoWow, this works amazingly.
Thanks :smileyhappy: