Forum Discussion
Anonymous
4 years agoNot applicable
Dynamic ALLEXCEPT based on selected slicers.
I have a measure with ALLEXCEPT DAX command for count the quantity of orders per equipment category. But it is static, but in order to have a real count depending of the selection in the slicers in n...
- 4 years ago
Hi Anonymous
This should workQuantity of orders per Category = VAR SelectedDates = ALLSELECTED ( 'Table'[Date] ) RETURN CALCULATE ( COUNTROWS ( 'Table' ), REMOVEFILTERS ( ), VALUES ( 'Table'[Category] ), SelectedDates )
tamerj1
Community Champion
4 years agoHi Anonymous
This should work
Quantity of orders per Category =
VAR SelectedDates = ALLSELECTED ( 'Table'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
REMOVEFILTERS ( ),
VALUES ( 'Table'[Category] ),
SelectedDates
)
- Anonymous4 years agoNot applicable
Hi tamerj1 that's what I was looking for, thank you so much! 👍