Forum Discussion
BSM1985
Helper IV
5 years agoMax Over Partition in DAX
Hi Team,
Im trying to create the DAX calculation for below SQL statement. Can you please assist me on this?
SELECT MAX(DATE) OVER (PARTITION BY PD, CA ORDER BY DATE DESC) AS MAX_DATE
FROM TABLE
Thanks
BSM1985 ,
Try a measure like this and add that to visual
calculate(max(TABLE[DAte]),allexcept(Table, Table[PD], Table[CA]))
2 Replies
- amitchandak
Super User
BSM1985 ,
Try a measure like this and add that to visual
calculate(max(TABLE[DAte]),allexcept(Table, Table[PD], Table[CA]))
- BSM1985
Helper IV
Thanks amitchandak as always