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

Forecast

Dear all

I have problem in writing script to forecast the sales volume, please help urgently.

The correct answer is computed and shown in the worksheet.

Thank you

Tracy

 

Labels (1)
1 Solution

Accepted Solutions
jaibau1993
Partner - Creator III
Partner - Creator III

Hi!

Please, try the following expresion:

if(RowNo()=1,
//if first row then the value of thge first column
	Column(1)
,
//else, formula provided
	Above(Column(1))*0.3+Above(Column(2))*0.7
)

or, if you prefer, find the attached QV file.

Bests,

Jaime.

View solution in original post

2 Replies
jaibau1993
Partner - Creator III
Partner - Creator III

Hi!

Please, try the following expresion:

if(RowNo()=1,
//if first row then the value of thge first column
	Column(1)
,
//else, formula provided
	Above(Column(1))*0.3+Above(Column(2))*0.7
)

or, if you prefer, find the attached QV file.

Bests,

Jaime.

tracycrown
Creator III
Creator III
Author

Dear Jaibau1993

The answer is correct, you are very clever.

Many Thanks

Tracy