Forum Discussion
harryfasb6000
6 years agoFrequent Visitor
How do I get Max Timestamp for Each Day using DAX
I have a table that updates 1-3x a day. Does anyone know how I can return only the max timestamp for each day using DAX. Thanks.
- 6 years ago
You could use this formula to create a column
Column = CALCULATE(MAX('Table'[Datetime]),FILTER('Table',FORMAT([Datetime],"yyyy/MM/dd")=FORMAT(EARLIER([Datetime]),"yyyy/MM/dd")))or use this formula to create a measure
Measure = CALCULATE(MAX('Table'[Datetime]),FILTER(ALLSELECTED('Table'),FORMAT([Datetime],"yyyy/MM/dd")=FORMAT(SELECTEDVALUE('Table'[Datetime]),"yyyy/MM/dd")))Regards,
Lin
harryfasb6000
6 years agoFrequent Visitor
Thanks. Tried that but couldnt get to work. Do I need to split the column into two ... date, time?
Anonymous
6 years agoNot applicable
Yes that will make it much easier.