Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
theboss-123
Creator II
Creator II

Return MAX MIN AVG FROM PIVOT TABLE

Hello 

i have a technical question, i need to show the max ,min and average of data showed in pivot table is that possibe ?

3 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi! 

Everything is possible, but the specifics of getting it done might differ...

QlikView Pivot Table doesn't allow to modify the Total functions (like the Straight Table does), so you might have to get more creative - for example you could add extra columns and calculate your averages, minimums and maximums there, using an AGGR function.

For example, if the Chart shows 3 dimensions - Dim1, Dim2, Dim3, and you wanted to see averages of sum(Sales) by Dim1, you'd need to do something like this:

AGGR(

     Avg(

          AGGR(sum(Sales)

          , Dim1, Dim2, Dim3)

     )

, Dim1)

  

Cheers,

theboss-123
Creator II
Creator II
Author

Hello i would like to thank you for your response ,tell me please where i can put 

AGGR(

     Avg(

          AGGR(sum(Sales)

          , Dim1, Dim2, Dim3)

     )

, Dim1)

  Pivot table test.JPG

 

 

Brett_Bleess
Former Employee
Former Employee

Here are some further links that should help:

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654

https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511

Hopefully those will help.  If you wish to search the Design Blog area further, use  the following link:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Realized the following might be useful too:

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.