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: 
tracycrown
Specialist
Specialist

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 (2)
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
Specialist
Specialist
Author

Dear Jaibau1993

The answer is correct, you are very clever.

Many Thanks

Tracy