Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

avg in pivot table

Hi all,

i am trying to get an Avg row in a pivot table. i don't think its possible but thought i would ask the experts

basically i have a pivot table that looks like...

Capture.JPG

I have created an Avg column which averages each row, but i also want to create an avg row that averages each column.

is this possible?

i have attached a sample.

1 Solution

Accepted Solutions
rubenmarin

Hi Chris, I added a total where the avg is calculated by column.

View solution in original post

6 Replies
sunny_talwar

Is this what you are looking to get?

Capture.PNG

=Avg(Price)

rubenmarin

Hi Chris, I added a total where the avg is calculated by column.

sunny_talwar

But why not just Avg(Price)? or am I missing something here?

rubenmarin

I didn't get deep into the logic, I was also wondering 'why?' but I limited myself to add the totals and change the dimensionality condition so it's used also for total.

I thought this was coming from another more complicated table and was something related with copy-paste.

sunny_talwar

If that's true than this might also work (will not work in this case), but worth a try for original table

Avg(Aggr(Sum(Price), Account, MonthYr))

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

thats exactly what i want. thanks!