cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

Capture.PNG

 

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Why does my measurement takes the average of a value 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.

View solution in original post

10 REPLIES 10
Highlighted
Anonymous
Not applicable

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

Hi @Tryg2015

 

Are you refering to the %-measure?

 

 

Highlighted
Frequent Visitor

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

Hi Valibu,

 

Yes I am.

Highlighted
Helper V
Helper V

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

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?

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
Frequent Visitor

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

Hi Hemant,

 

That did not work 😞

Highlighted
Frequent Visitor

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

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

Highlighted
Anonymous
Not applicable

Re: Why does my measurement takes the average of a value 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.

View solution in original post

Highlighted
Helper V
Helper V

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

No worries...

 

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

 

Reagrds

 

Highlighted
Frequent Visitor

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

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

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors