Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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:
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
68 | |
67 | |
41 | |
41 |
User | Count |
---|---|
48 | |
44 | |
29 | |
28 | |
28 |