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.
Hi,
I want to do something probably easy but I don't figure it out.
I have a mesure that is an average of value. When I do a table and regroup, the average always remains on all the data but I want to have it on the grouping value. Look bellow, the correct average should be 13.25...
Thank
Solved! Go to Solution.
@vbourbeau ,Try like
averagex(Summarize(Table,Table[id],"_1",average(Table[Value])),[_1])
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
There's plenty of solutions as to how to have a measure do a different calcuation dependent on if your measure is working on a total or not which is what you're going to want. Ignoring the fact that the results don't make sense given the data you've presented (the average of 5, 7 and 9 isn't 6.5), the total is calculating the average of all the data, which would be (5+7+9+20)/4, i.e. 10.25
@vbourbeau use smth like
= calculate(AVERAGEX(Table, AVERAGE('Table'[Value]) ) )
Same result
@vbourbeau ,Try like
averagex(Summarize(Table,Table[id],"_1",average(Table[Value])),[_1])
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |