Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |