Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
61 | |
56 | |
55 | |
36 | |
34 |
User | Count |
---|---|
77 | |
73 | |
45 | |
45 | |
43 |