Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
i am struggeling to get the max value of the measure i have written here:
Solved! Go to Solution.
Measure =
Var T1 =
Summarize(
calendar, YearMonth, "_Value", [cpm (complaints per millions)]
) // This should return a table with months and the corresponding cpm.
// you'll have to limit the data to the last 12 months
// Maybe with a FILTER on the calender in the first argument in summarize or on T1
Var _Max =
maxx(
T1, _value)
To be more specific i'd need a .pbix for testing
I'm not sure what you are trying to accomplish, but where a link with 5 ways to do rolling 12 month 😊!
https://gorilla.bi/dax/5-ways-to-calculate-last-12-months-in-dax/
If this post solves your problem, accept it as a solution
Appreciate your kudos
thanks for the reply! I try to get the max value for the measure up above. Meaning which is the max value within those 12 months i have in the measure.
Measure =
Var T1 =
Summarize(
calendar, YearMonth, "_Value", [cpm (complaints per millions)]
) // This should return a table with months and the corresponding cpm.
// you'll have to limit the data to the last 12 months
// Maybe with a FILTER on the calender in the first argument in summarize or on T1
Var _Max =
maxx(
T1, _value)
To be more specific i'd need a .pbix for testing
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |