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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |