Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem in Calculating Mean

WEEKGEOVolumeMean
1A1,108.56923.51
2B2,489.131,891.84
3C1,351.371,025.19
4A1,230.70-
5B2,563.97-
6C1,162.73-
7A1,390.05-
8B2,857.79-
9C1,558.26-
10A1,290.58-
11B2,609.77-
12C1,331.18-

Hi All,

I am trying to calculate the Mean through an expression :

Aggr(Avg(Aggr(Sum({<Product_Id={9},Geo={'Region'}>}Volume),Week,Geo)),Geo)

I need to calculate mean for a period of time for different Regions.

Here A, B, C are Regions.

But I am getting only first 3 values that is for week 1, 2, 3. For Other Weeks , I am getting Null Values. In place of Null Values , the same 3 nos should be repeated across different Regions.

WEEKGEOVolumeMean
1A1,108.56923.51
2B2,489.131,891.84
3C1,351.371,025.19
4A1,230.70923.51
5B2,563.971,891.84
6C1,162.731,025.19
7A1,390.05923.51
8B2,857.791,891.84
9C1,558.261,025.19
10A1,290.58923.51
11B2,609.771,891.84
12C1,331.181,025.19

I need to have the result like above table. Kindly Help me.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try:

Avg(total <Geo> Aggr(Sum({<Product_Id={9},Geo={'Region'}>}Volume),Week,Geo))


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Try:

Avg(total <Geo> Aggr(Sum({<Product_Id={9},Geo={'Region'}>}Volume),Week,Geo))


talk is cheap, supply exceeds demand
Not applicable
Author

Can you please check my discussion, i really need help. Thanks

Not applicable
Author

Thanks a lot ..... It works