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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
didierodayo
Partner - Creator III
Partner - Creator III

forecasting expression

Hello,

I need some help with the sample table below, I am trying to get on what date the level will hit 100 which is the highest level or more.

I need to know how to write the script to populate the Estimated_highlvl_Date.

I have attached the excel sample as well.


Your help is appreciated

Thanks

forecasting.PNG

Labels (1)
1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Didier,

               If we assume a linear model for the increase over time then using regression analysis:

=Date((100-LINEST_B(level,DATE))/LINEST_M(level,DATE))

gives a date of 9th Jan 2016 as the forecast of when level reaches 100.

Hope this helps.

Cheers

Andrew

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

How would be the estimate the rate of increase? I mean based on what criteria?

didierodayo
Partner - Creator III
Partner - Creator III
Author

Hi Sunny,

I would like it based first on :

given the level is at x rate in y number of months/days it will hit the highest level or more by DATE???

That is the sort of concept am building in my mind I don't know if it is clear ?

effinty2112
Master
Master

Hi Didier,

               If we assume a linear model for the increase over time then using regression analysis:

=Date((100-LINEST_B(level,DATE))/LINEST_M(level,DATE))

gives a date of 9th Jan 2016 as the forecast of when level reaches 100.

Hope this helps.

Cheers

Andrew

didierodayo
Partner - Creator III
Partner - Creator III
Author

Thanks Andrew, that is what I am trying to represent.