Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |