Hello, I am trying to create a measure giving me the penultimate date of the column.
It seems simple, written like that, yet I'm breaking my teeth on it
thank guys
Solved! Go to Solution.
This expression will get you the 2nd highest date in that column.
Penultimate Date = var maxdate = MAX(Table[Date_accident])
return CALCULATE(MAX(Table[Date_accident]), Table[Date_accident] < maxdate)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I made a mistake, I wanted the penultimate row in the column
This expression will get you the 2nd highest date in that column.
Penultimate Date = var maxdate = MAX(Table[Date_accident])
return CALCULATE(MAX(Table[Date_accident]), Table[Date_accident] < maxdate)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Very nice solution 👏👏👏
This logic should work:
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
125 | |
78 | |
67 | |
56 | |
55 |
User | Count |
---|---|
200 | |
104 | |
85 | |
80 | |
77 |