Forum Discussion
nadmem
5 years agoNew Member
Help with DAX Allexcept filtering
Hi, I have a Table called Tracking, as shown below: Category,Item Id,Work Date A,1,1/1/2020 B,1,2/1/2020 C,1,3/1/2020 D,1,4/1/2020 A,2,7/1/2020 B,2,8/1/2020 C,2,9/1/2020 D,2,10/1/2020 Usin...
- 5 years ago
Your DAX expression was not written properly. ")" is not place right. It should be after the Item ID column.
You can review
nadmem
5 years agoNew Member
Hi Paul,
Its not working. I had tried adding the category column to ALLEXCEPT before but it changes the behavior completely. Instead of max work date from entire category it just simply repeats the work date. I can send you the file or you can try it yourself. My requirement is to simply unselect category D from visual filter and then have the measure return max date from remainin categories i.e. after excluding Category D via visual filter, for Item 1, the maximum work date should be 3/1/2020 and for Item 2, the maximum work date should be 9/1/2020.
PaulPalma
5 years agoFrequent Visitor
Ok, Sounds like you want to ignore all Category filters.
CALCULATE(
MAX('Tracking'[Work Date])
,ALLEXCEPT('Tracking','Tracking'[Item Id])
, Tracking[Category] <> "D"
)