Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
In this case I want to find the date of the Max value of a Sum agregation.
In my example DevAdvance = Sum(Development[ADVANCE]) and the DateKey is from a Calendar table
I can see that the Max DevAdvance was on the 11-Apr-20 how can I return that date?
Solved! Go to Solution.
Not sure what context you are going to use this measure, but you could try an approach like this.
Date with Max =
VAR __summary =
ADDCOLUMNS ( VALUES ( 'Calendar'[DateKey] ), "@DevAdvance", [DevAdvance] )
VAR __maxdevadv =
MAXX ( __summary, [@DevAdvance] )
VAR __filtered =
FILTER ( __summary, [@DevAdvance] = __maxdevadv )
RETURN
MAXX ( __filtered, 'Calendar'[DateKey] )
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Not sure what context you are going to use this measure, but you could try an approach like this.
Date with Max =
VAR __summary =
ADDCOLUMNS ( VALUES ( 'Calendar'[DateKey] ), "@DevAdvance", [DevAdvance] )
VAR __maxdevadv =
MAXX ( __summary, [@DevAdvance] )
VAR __filtered =
FILTER ( __summary, [@DevAdvance] = __maxdevadv )
RETURN
MAXX ( __filtered, 'Calendar'[DateKey] )
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Works perfectly thank you.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |