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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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.

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

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

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

Is this what you are looking to get?

Capture.PNG

=Avg(Price)

rubenmarin
MVP
MVP

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

sunny_talwar
MVP
MVP

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

rubenmarin
MVP
MVP

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
MVP
MVP

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!