Forum Discussion
GilesWalker
10 years agoSkilled Sharer
Set a filter based on MAX
Hi Everyone, I have tried a number of different equations and have looked through Google to no avail. I have some data I need to be able to filter based upon the maximum number in a column, howev...
- 10 years ago
GilesWalker - Try switching your ALL to an ALLEXCEPT in order to preserve the Train ID context filter:
max = CALCULATE(MAX(Train_Movements[sequence]),ALLEXCEPT(Train​_Movements,[Train id]))
SteffanPE
7 years agoFrequent Visitor
i'm having a very similar problem, however i'm struggling to get this to work.
is the - max = CALCULATE(MAX(Train_Movements[sequence]),ALL(Train_Movements) you mention a custom column or something else?
in my table the JAP_SEQUENCE column indicates the most recent appointment date against a specific job - JAP_JOB_REF.
I need to create a custom column like yourself which indicates a 1 against the most recent appointment (highest sequence number against the specific job) and a 0 againt old appointment, I can then filter out the 0 and have a table which only shows the most recent appointment date.
SteffanPE
7 years agoFrequent Visitor