cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrainey Member
Member

Average Not Returning Correct Number

I have this table:

20.PNG 

 

So the highlighted number is supposed to be the average of that column. However, if I export the results and highlight the entire column from top to bottom I get a totally different number:

21.PNG

 

The number in the spreadsheet is what I'm looking for but I don't know how or why PBI is returning this random number that doesn't add up in the first screenshot? It could be because of grouping but I'm really not sure.

1 ACCEPTED SOLUTION

Accepted Solutions
EugenioJunior Frequent Visitor
Frequent Visitor

Re: Average Not Returning Correct Number

@mrainey 

you will need to make a measure with a Averagex.
If you only use the aggregator in your Deal Size column, the average will not work for the total amount.
It would look something like this: 

Measure = Averagex ( Values ​​(table [Producer]), CALCULATE Sum (table [Deal Size]) ) 

 

 



Sorry about my English.

 

 

5 REPLIES 5
EugenioJunior Frequent Visitor
Frequent Visitor

Re: Average Not Returning Correct Number

@mrainey 

You are trying to use averagex ?

mrainey Member
Member

Re: Average Not Returning Correct Number

@EugenioJunior  No, I took a column and right clicked and clicked Average. I see what it's doing, it's taking the sum of the column that I'm averaging and calculating the average based on the # of times a person is in the table:

1.PNG

 

So it's taking 1,132,185.06/735 to get $1,540.39. But I don't know how to get it to NOT do that since it's doing it by default. I just want it to average the values on the right hand column without taking into account any other table info so it properly returns the correct value. I don't want it to divide by any counts, just the flat out average of the numbers in the column itself.

EugenioJunior Frequent Visitor
Frequent Visitor

Re: Average Not Returning Correct Number

@mrainey 

you will need to make a measure with a Averagex.
If you only use the aggregator in your Deal Size column, the average will not work for the total amount.
It would look something like this: 

Measure = Averagex ( Values ​​(table [Producer]), CALCULATE Sum (table [Deal Size]) ) 

 

 



Sorry about my English.

 

 

mrainey Member
Member

Re: Average Not Returning Correct Number

@EugenioJunior it returned the same result of what I already had Smiley Sad

mrainey Member
Member

Re: Average Not Returning Correct Number

@EugenioJunior  I take that back, you were correct! My DAX wasn't. My apologies.