Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
What formula can I use to get the sum of all MAX items?
The sum of these MAX by Line items is 3.13...how do I get that with a formula? I used this formula to get the MAX figures by line:
Line MaxEarnedHours
323 .21
322 1.60
380 .50
310 .46
382 .36
Solved! Go to Solution.
Hi,
Does this measure work?
=SUMX(VALUES('ATWOQ300 - Current'[Line]),[MaxEarnedHours])
If it does not, then share the link from where i can download your PBI file.
@Anonymous This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149
The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.
Hi,
Does this measure work?
=SUMX(VALUES('ATWOQ300 - Current'[Line]),[MaxEarnedHours])
If it does not, then share the link from where i can download your PBI file.
Hi @Anonymous
_SumOfMax = SUMX(
SUMMARIZE('ATWOQ300 - Current', 'ATWOQ300 - Current'[Line], "MaxOfSum", max('ATWOQ300 - Current'[Earned Hours Sum]),
[MaxOfSum])
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
HI @Anonymous
try
MaxEarnedHours = calculate(sumx('ATWOQ300 - Current',[MaxEarnedHours]), ALLEXCEPT('ATWOQ300 - Current','ATWOQ300 - Current'[Line]))
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
Thx. This retuned a result of 1196 vs the 3.13.
@Anonymous , Not very clear. The context till where we need to take max. It that line the formula will be like
MaxEarnedHours = sumx(values('ATWOQ300 - Current'[line]),max('ATWOQ300 - Current'[Earned Hours Sum]))
or
MaxEarnedHours = sumx(summarize('ATWOQ300 - Current'[line],"_1",max('ATWOQ300 - Current'[Earned Hours Sum])),[_1])
This formula worked perfect...THX!
=SUMX(VALUES('ATWOQ300 - Current'[Line]),[MaxEarnedHours])
I tried to select that this solved the issue in the thread and it errored out twice.
You are welcome.
Thx for the quick response. I used the formula: MaxEarnedHours = sumx(values('ATWOQ300 - Current'[line]),max('ATWOQ300 - Current'[Earned Hours Sum])) and it returned a value of 8 instead of 3.13. Thoughts?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
139 | |
100 | |
95 | |
85 | |
63 |