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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
nuwanhwb87
Contributor III
Contributor III

Taking Average

KPI.JPGHi,

Need to get the KPI wise Average/Total as per the Above format.

Please help

Labels (1)
4 Replies
edwin
Master II
Master II

add the AVG/TOTAL as an aggr in the dimension, then your normal expression.  make your pivot fully expanded:
dim:  KPI, MONTH, =num(aggr(Avg(Val),KPI)/aggr(sum(Val),KPI),'#.##%')

edwin_0-1611589929647.png

 

edwin
Master II
Master II

this is assuming you wanted the average per KPI/total per KPI

nuwanhwb87
Contributor III
Contributor III
Author

Noted with thanks.

In My Above Format Dimension is the Month , Other KPI's are Calculated Expressions.

I'm not Clear. Please explain further

edwin
Master II
Master II

of course you also have KPI as dimension (per your pic) not just month.  what i am saying is that aggregation is by KPI (total grouped by KPI)