Forum Discussion
mshparber
Advocate I
4 years agoALLEXCEPT entire table
I am trying to build a measure that removes filters from any table, except for Calendar. I try to do: = CALCULATE([Sales Amt], ALLEXCEPT(Calendar) but it requires specific columns. Maybe this sho...
- 4 years ago
In CALCULATE(), tables can be used as filter modifiers; thus you can author DAX formula this way,
= CALCULATE([Sales Amt], ALL(), Calendar)
iBusinessBI
Kudo Collector
4 years agoThanks!
I've checked and both syntaxes work:
=CALCULATE([Sales Amt], ALL(), VALUES(Calendar))
=CALCULATE([Sales Amt], ALL(), Calendar)
So, what does the values do if used on the whole table?
CNENFRNL
Community Champion
4 years agoWhen a table name is given, VALUES(tablename) returns a table with the same columns and all the rows of the table (including duplicates) with the additional blank row if present.