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
Hello,
I have a misunderstanding regarding the max within a cumulative sum/range sum:
Solved! Go to Solution.
@Applicable88 , max(Table1[Date]) will take the row context , if need overall max try
var _max = maxx(allselected(Table1), Table[Date]) // max of allselected
Hi, @Applicable88
I have an easy to understand explanation here, although it may not be completely correct. Glad to see different insights.
Max/Min/Sum functions are based on the row context, each row is a filtering condition, in the current row whether the maximum or minimum result is the current row, because the context is only one row?
So it will be seen in the column whether the Max function or Min function, the result is the value of the current row.
In the total, the context of the row is the whole table or rather all rows, so the result is correct in the total.
If you want to remove the limitation of the context, then you need to remove the filtering effect of the row context i.e. remove the filtering.
Then the DAX that correctly takes the maximum value could look like the following:
_realMaxDate = CALCULATE(MAX('Table'[Date]),ALL('Table'))
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Applicable88
I have an easy to understand explanation here, although it may not be completely correct. Glad to see different insights.
Max/Min/Sum functions are based on the row context, each row is a filtering condition, in the current row whether the maximum or minimum result is the current row, because the context is only one row?
So it will be seen in the column whether the Max function or Min function, the result is the value of the current row.
In the total, the context of the row is the whole table or rather all rows, so the result is correct in the total.
If you want to remove the limitation of the context, then you need to remove the filtering effect of the row context i.e. remove the filtering.
Then the DAX that correctly takes the maximum value could look like the following:
_realMaxDate = CALCULATE(MAX('Table'[Date]),ALL('Table'))
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Applicable88 , max(Table1[Date]) will take the row context , if need overall max try
var _max = maxx(allselected(Table1), Table[Date]) // max of allselected
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 |
|---|---|
| 102 | |
| 79 | |
| 57 | |
| 51 | |
| 46 |