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: 
tracycrown
Creator III
Creator III

Exponential Forecast

Dear all

Can someone help to show me an example on how to write a script in expression for exponential foreast by months?.

 

YearMonthSales VolumeExponential Forecast (0.1)Exponential Forecast (0.7)
Oct-201490
Nov-2014106
Dec-2014152
Jan-2015244
Feb-2015302
Mar-2015274
Apr-2015162
May-2015194
Jun-2015312
Jul-2015359
Aug-2015215
Sep-2015126
Oct-201594
Nov-2015125
Dec-2015147

Thank you very much

Tracy

21 Replies
settu_periasamy
Master III
Master III

Hi,

Sorry for the Delay.. Find attached..

tracycrown
Creator III
Creator III
Author

Dear Settu

Many thank for your help, at least I know how to create a variable and use if-then logic in script now.

Kindly advise if I have more than 2 factors.  For examples, Exp_forecast 0.1, 0.2 ......1.5 etc,  then if-then script might not be the best method. Is there any command eg. Do while or Max ( ) can be used ?.

Thank you

Tracy