Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I need help a DAX to get maximum (latest) date as below?
There are multiple timestamps on the same date and I need to get a max date from the same date timestamps.
Thank you!
Solved! Go to Solution.
Try:
You may use the following DAX to add a calculated column.
Column =
VAR d = Table1[Timestamp].[Date]
RETURN
IF (
RANKX (
FILTER ( Table1, Table1[Timestamp].[Date] = d ),
Table1[Timestamp],
,
DESC
) = 1,
Table1[Timestamp]
)
You may use the following DAX to add a calculated column.
Column =
VAR d = Table1[Timestamp].[Date]
RETURN
IF (
RANKX (
FILTER ( Table1, Table1[Timestamp].[Date] = d ),
Table1[Timestamp],
,
DESC
) = 1,
Table1[Timestamp]
)
Try one of two can give
max = maxx(filter(table, table[timestamp].date = earlier(table[timestamp]).date ),table[timestamp])
max = maxx(filter(table, table[timestamp].date = earlier(table[timestamp].date) ),table[timestamp])
Also, this: https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/td-p/985814
Try:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |