Forum Discussion
Angads
Advocate I
3 years agoHelp with dax!
I want if select all is selected in date slicer it should show total sales for all dates, if no date selected it should show last date sales in date column and id any specific date selected it should...
tamerj1
Community Champion
3 years agoAngads
Please try
Values on selection =
IF (
ISFILTERED ( Sheet1[Date] ),
SUM ( Sheet1[Value] ),
SUMX ( TOPN ( 1, Sheet1, Sheet1[Date] ), Sheet1[Value] )
)Angads
Advocate I
3 years agoIts giving same result as of my formula but not giving Total sales on selecting "select all".
other two conditions are met but not the select all one! tamerj1
- tamerj13 years ago
Community Champion
Angads
Are you using a custom visual slicer?Normal slicer seems to interact normally with the ISFILTERED funtion
- Angads3 years ago
Advocate I
What when Select all is also there in the slicer! That time its not working! tamerj1
- tamerj13 years ago
Community Champion
Angads
You are right, "Select All" is different than selecting all items one by one but it behaves exactly the same as nothing is selected. It does not seem to be any way to distinguish between the two scenarios.Greg_Deckler any ideas?