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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need to get the Average on the Selected Date Range

Hi All,

I want to get the Average on Yellow as shown in the below Script based on the Month Value Selected.

Data:

   

MonthSKUPen_IdYellow
JulCorbett XC53457640.192
JulCorbett XC53457650.233
AugGen 3 Pyramid Color - Corbett XC53462930.034
AugGen 3 Pyramid Color - Corbett XC53470220.191
AugGen 3 Pyramid Color - Corbett XC53462950.141
AugGen 3 Pyramid Color - Corbett XC53470230.307
AugGen 3 Pyramid Color - Corbett XC53470200.143
AugGen 3 Pyramid Color - Corbett XC53470190.254
AugGen 3 Pyramid Color - Corbett XC5347021-0.958
AugGen 3 Pyramid Color - Corbett XC53462940.099
AugGen 3 Pyramid Color - Corbett XC53470240.16
AugGen 3 Pyramid Color - Corbett XC53462920.17
AugGen 3 Pyramid Color - Corbett XC53462960.136
SeptGen 3 Pyramid Color - Corbett X C53479100.1
SeptGen 3 Pyramid Color - Corbett X C53479080.082
SeptGen 3 Pyramid Color - Corbett X C53479040.265
SeptGen 3 Pyramid Color - Corbett X C53479090.132
SeptGen 3 Pyramid Color - Corbett X C53479070.272
SeptGen 3 Pyramid Color - Corbett X C53484610.092
SeptGen 3 Pyramid Color - Corbett X  C53484670.28
SeptGen 3 Pyramid Color - Corbett X C53481390
SeptGen 3 Pyramid Color - Corbett X C53479050.083
SeptGen 3 Pyramid Color - Corbett X C53481410.161
SeptGen 3 Pyramid Color - Corbett X C53479110
SeptGen 3 Pyramid Color - Corbett X C53481400.202
SeptGen 3 Pyramid Color - Corbett X C53481380.188
SeptGen 3 Pyramid Color - Corbett X C53479060.062
SeptGen 3 Pyramid Color - Corbett X  C53484640.227

Script:

AggregationofYelInks:

LOAD
[Yellow Calculated Ink]as "AvgchartYCI"
Resident CorbettSrc
where Pen_Id <> 'C5347020' ;

Chart Expression given  to get the Average of the AvgChartYCI   based on the Month Selected. But Getting the Average value of the AvgChartYCI for all the Months , even if we select for only 1 Month -- Jul as seen in the below screenshot:

Above shown Text value -- 0.2192 -- is Average value for all the Months. But, The average should come for only the Month -- Jul as selected above.

Could you please help me in getting the Average value for the Selected Months only.

Please send an answer for this post to harvarinf1531@gmail.com

Thanks & Regards,

Harish

1 Reply
sunny_talwar

Would you be able to share a sample where we can see the issue? This could be because of the data model, but will be difficult to pin-point without having a look.

Preparing examples for Upload - Reduction and Data Scrambling