Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Average in pivot table

Hello,
I have a problem with a calculation in a pivot table. My result should look like the following table
QuarterQ1Q2Q3Q4Total
CustomerSales AmountAVGSales AmountAVGSales AmountAVGSales AmountAVGSales AmountAVG
200100150100200550137,50
30550100120130200150,00
40210002000300150
3031401603000600200

For me is the value in the AVG column in each quarter not important. For me is really important the correct result in the total AVG column. The sum over all quarters should divided by the number of quarters with sales amount, not divided by the shown quarters.

Example:

The sales amount sum of customer 402 is 300€. This sales amount comes from Q1 and Q3. So the sum must be divided by 2 and I get the result 150€.

Can anybody help me with this calculation?

Thanks a lot!

0 Replies