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 Community
Can anyone help explain why my measurement takes the average of a value instead of aggregating?
I conducted a measure where I divided 2 column with formular:
= divide(sum(column1) , sum(column2), blank())
When selecting “Modeling” on the overhead, Power BI does not give me the option to choose “default summarization”.
Is it because of division that Power BI is unable to aggregate? Because when I just simply add the 2 column Power Bi is able to aggregate.
Thanks in advance
Solved! Go to Solution.
It's not like it takes the average of the 3 categories in your table, it is calculating your measure without any applied filters. If you plot it in a table without any "begreb" filtering, you'll get the same result (18 %). Unless of course you have some page or report level filters applied, which I'm not aware of.
Hi @Tryg2015,
Try creating two separaet measure for your sum like this
Measure_1=sum(column1)
Measure_2=sum(column2)
Measure_3 = Divide(measure_1,measure_2,0)
Reagrds
Hi Hemant,
That did not work 😞
No worries...
Can you pleae provide some sample data and the exact end result you want to achieve??
Reagrds
Hi Valibu,
Yes I am.
If you used this formula: = divide(sum(column1) , sum(column2), blank()), it's because the total is aggregating between your categories (småskader, mellemskader og storskader), before it calculates the total.
But that does not explain why the division takes the average instead of aggregating?
It's not like it takes the average of the 3 categories in your table, it is calculating your measure without any applied filters. If you plot it in a table without any "begreb" filtering, you'll get the same result (18 %). Unless of course you have some page or report level filters applied, which I'm not aware of.
Thanks for the enlightment. I think I got it now 🙂
No problem, don't hesitate to ask if you in doubt of anything, I'll gladly help out.
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |