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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |