Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
settu_periasamy
Master III
Master III

Pivot table Sum of average

Hi All,

Give me the suggestion for the below screen shot. Attached the example file.

qv_doubt1.JPG.jpg

regards,

settu

13 Replies
dharmarasu
Creator
Creator

Hi,

in that above Screen shot showing correct..nothing wrong in it..

In that average showing Average(1267+1281+1277)=1275..ie (1267+1281+1277)/3=1275..Hope this helps..

Dharma

settu_periasamy
Master III
Master III
Author

Hi Dharmarasu,

Already there is an average for country level. I need the sum of Country average in the dimension level. i.e

if (dimensionality()=0, sum(801 average, 802 average and 803 average). Hope i clear now..

Settu

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This expression will do it:

=Sum(Aggr(Avg(Sales), Country))

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Sorry, correction to the above:

If(Dimensionality() = 0, Sum(Aggr(Avg(Sales), Country)), Avg(Sales))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
settu_periasamy
Master III
Master III
Author

hi Jonathan,

If we give that expression, the sum value is changed. Already the sum value is correct. i need to change the dimension total only. see the arrow mark in that picture.

dharmarasu
Creator
Creator

pls see this attachment

Dharma

jonathandienst
Partner - Champion III
Partner - Champion III

Did you see my correction?

If(Dimensionality() = 0, Sum(Aggr(Avg(Sales), Country)), Avg(Sales))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
settu_periasamy
Master III
Master III
Author

Hi Dharmarasu,

i need the result like the below screen shotqvdoubt3.JPG.jpg

settu_periasamy
Master III
Master III
Author

hi jonathan,

thank you for your expression. It showing the value. but day value shows 0. see the below screen shot.

qvdoubt5.JPG.jpg