Showing results for

- Microsoft Power BI Community
- Forums
- Get Help with Power BI
- Desktop
- Why does my measurement takes the average of a val...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

Tryg2015

Frequent Visitor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
12:35 AM

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

Anonymous

Not applicable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:14 AM

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.

10 REPLIES 10

Highlighted
##

Anonymous

Not applicable

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
01:54 AM

Highlighted
##

Tryg2015

Frequent Visitor

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
01:57 AM

Hi Valibu,

Yes I am.

Highlighted
##

hemantsingh

Helper V

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:01 AM

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

Highlighted
##

Anonymous

Not applicable

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:04 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.

Highlighted
##

Tryg2015

Frequent Visitor

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:10 AM

Hi Hemant,

That did not work 😞

Highlighted
##

Tryg2015

Frequent Visitor

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:12 AM

But that does not explain why the division takes the average instead of aggregating?

Highlighted
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.

Anonymous

Not applicable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:14 AM

Highlighted
##

hemantsingh

Helper V

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:30 AM

No worries...

Can you pleae provide some sample data and the exact end result you want to achieve??

Reagrds

Highlighted
##

Tryg2015

Frequent Visitor

Re: Why does my measurement takes the average of a value instead of aggregating?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-02-2017
02:41 AM

Thanks for the enlightment. I think I got it now 🙂

Top Solution Authors

User | Count |
---|---|

412 | |

313 | |

81 | |

57 | |

46 |

Top Kudoed Authors

User | Count |
---|---|

564 | |

502 | |

162 | |

141 | |

128 |