Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
viveksairam89
Creator
Creator

Pivot Table Average Calculation

Qlikview 11 : Finding Average in pivot table , for example i have data                             
      LOAD * INLINE [

    Ranking, Name, Month, Value

    2, A,Jan,0

    5, A, Jan, 1.56

    2, A,Feb,0

    5,G,Feb,0.5

    5,G,Feb,0.76

    5,G,Feb,2.16

    4, H, Feb, 81.63

    6, I, Mar, 9.60

]; I am unable to get the correct average in my sub Total?

When i use the formula in expression Avg(Value)

Actually i should get February total average as 41.38

i am getting as 21.26

Thanks in Advance

12 Replies
viveksairam89
Creator
Creator
Author

Thanks for the help everyone:)

Samrithi
Contributor III
Contributor III

Hi,

I need Avg for all the Years as below.

YearCategory1Category2Category3Category4
Avg2534.0%786.0%786.0%786.0%
2017    
Jan600700660300
Feb50505050
Mar5300%56%56%56%
2018    
Apr100140500900
Jan40404040
Feb2300%2300%2300%2300%
Mar    
2019    
Jan1001046001900
Feb20202020
Mar2%2%2%2%

 

Appreciate the above results.

Samrithi
Contributor III
Contributor III

Hi, 

I have 2 charts (attached) those used calculated dimensions and when I select 1 bar in 1 chart(Last 30 days) then,

2nd chart (ActInAct Customers) is also applying filter and showing blank(attched). 

I dont nees to change the 2nd chart should not reflect on any values and should show all the values.

below are the calc dimensions in 2nd chart (ActInAct Customers):

dimension:

=Aggr(if(CUSTOMER_IN_LAST_3_YEARS_IND='Y' and CUSTOMER_IN_LAST_2_YEARS_IND='N','Last 3Yrs Active but InActive Last 2yrs',
if(CUSTOMER_IN_LAST_2_YEARS_IND='Y' and CUSTOMER_IN_LAST_1_YEARS_IND='N','Last 2Yrs Active but InActive Last 1yr',
if(CUSTOMER_IN_LAST_1_YEARS_IND='Y' and CUSTOMER_IN_LAST_90_DAYS_IND='N','Last 1Yr Active but InActive Last 90days',
if(CUSTOMER_IN_LAST_90_DAYS_IND='Y' and CUSTOMER_IN_LAST_30_DAYS_IND='N','Last 90days Active but InActive Last 30days'))))
,CHK_CustID)

Measure:

count({1}CHK_CustID)  - added 1 on measure also but still not working.

Appreciate the solution.

Thanks