Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

change in the script

i have these code of line used previously in my application:

IF( = PREVIOUS() AND = PREVIOUS([y]),
(
-PREVIOUS())/([Datefield]-PREVIOUS([Datefield])),0) AS W,

above formula is calculating the value of w ,but in start of the quarter its giving 0

now i want to replace the (0) it in such a way that it should calculate based on average of next few values based on y

4 Replies
ahaahaaha
Partner - Master
Partner - Master

If the following values are required for the calculation, you must first load them, and then reload the internal table once again to calculate the required values.

Anonymous
Not applicable
Author

i didnt get you

Anonymous
Not applicable
Author

syntax plz