Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
khasimvali85
Creator II
Creator II

calculate row wise last six months data using chart

Hi,

Hope you are doing well!

I am unable to calculate using chart each row wise and last six months data. i have data like below mentioned.

i want to calculate and compare if( avg(Jan       Feb     Mar     Apr    May    Jun    Jul) < Aug    and

                                                        avg(Jan       Feb     Mar     Apr    May    Jun    Jul) < Sep    and

                                                        avg(Jan       Feb     Mar     Apr    May    Jun    Jul) < Oct    and

                                                        avg(Jan       Feb     Mar     Apr    May    Jun    Jul) < Nov    and

                                                        avg(Jan       Feb     Mar     Apr    May    Jun    Jul) < Dec  , 1,0)


(SaleYear)  Jan       Feb     Mar     Apr    May    Jun    Jul    Aug    Sep    Oct    Nov    Dec       

-------------------------------------------------------------------------------------------------------------

(ProdYear)

Jan            0.21     0.10    0.25     0.16    0.01   0.03   0.09  0.01  0.02    0.00   0.01   0.00

Feb             0.11     0.12    0.20     0.11    0.31   0.13   0.29  0.11  0.01    0.02   0.06

Mar             0.16     0.47    0.85     0.18    0.24   0.15   0.21  0.10  0.01    0.01

Apr             0.26     0.31    0.21     0.13    0.15   0.34   0.04  0.01  0.05

May            0.21     0.38    0.25     0.23    0.35   0.30   0.02  0.01

Jun            0.19     0.43    0.21     0.11    0.25   0.10   0.00

Jul              0.11     0.42    0.28     0.24    0.12   0.02

Aug           0.09     0.18    0.06     0.15    0.04

Sep            0.21     0.11    0.21     0.24

Oct             0.31     0.12    0.08

Nov            0.23     0.27

Dec            0.21

how do i achieve this?

Regards,

Khasim.

14 Replies
khasimvali85
Creator II
Creator II
Author

Hi,

Thanks for reply, i am attached my data modelling file above.

settu_periasamy
Master III
Master III

May be check the attachment in the above thread..

khasimvali85
Creator II
Creator II
Author

Hi,

Thanks for response, my requirement is not like that

1, the avg(jan to july data) compare with aug, sep, oct, nov, dec months  this means compare with last five each months data compare like avg(jan to july data) < Aug  OR avg(jan to july data) < Sep  OR  avg(jan to july data) < Oct   OR  avg(jan to july data) < Nov  OR  avg(jan to july data) < Dec

2, I want this values use in another text object shows the

    value is = 0 green symbol

    value is > 1 red symbol

    value is <1 and >0 yellow symbol.

khasimvali85
Creator II
Creator II
Author

Hi,

Please provide the solution for above query?

khasimvali85
Creator II
Creator II
Author

Hi Community,

Please provide the solution for above post