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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

populating values

Hi All,

This is my scenario. Please suggest.

basically avgprice is getting calculated by front end expression.. now after 12th month.. 13th to 18th month it should populate the same avgprice as 12 th month until 18th..

secondly these avgprice values should also gets populated from the 12th month avgprice for neutalprice and midstockprice from 13 to 18th

   

yearmonthpriceavgpriceneutalpricemidstockprice
2015183323,9166666723,9166666723,91666667
2015173323,9166666723,9166666723,91666667
2015163323,9166666723,9166666723,91666667
2015153323,9166666723,9166666723,91666667
2015143323,9166666723,9166666723,91666667
2015133323,9166666723,9166666723,91666667
2015123323,9166666723,9166666723,91666667
2015113123,090909092277
2015102222,3346
201593422,33333333225
201581120,875334
201574422,28571429115
201567718,66666667446
2015567777
2015457,258888
2015378997
2015288,54465
201519934

   

12 Replies
sunny_talwar

Here, look at this expression:

=If([Month of Stock] <= 12, If(Sum([Price Value]) > 0, RangeAvg(Above(Sum({<[Month of Stock] = >}[Price Value]), 0, RowNo()))), Above([Avg Price Expression]))

Here Avg Price Expression is the Expression Label and you need to change it to you expression label. It should turn blue when it matches your expression label.

raadwiptec
Creator II
Creator II
Author

Hi Sunny,

How can I include this expression value into my QVD?

sunny_talwar

‌there is a post reload Trigger + Macro which can help you achieve that. But I think if you want to save the results in a QVD it would be advisable to do it in the script itself. I don't advise to use Macro + Trigger as it is not a very efficient solution.