Forum Discussion
Pierre_B
3 years agoNew Member
Create a max date measure for each id
Hi everyone, I would like to create a measure using dax in order to get the max date for each id and filtered date, and keeping the every date in my table. date id max date 01/01/2022...
Barthel
Solution Sage
3 years agoHey Pierre_B,
Give this a try:
max date =
CALCULATE (
MAX ( 'table'[date] ),
ALLEXCEPT ( 'table', 'table'[id] )
)It calculates the maximum date for each row removing all fitler context of the table, except that of the 'id', so that the maximum date is calculated per 'id'.