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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pepe2209
Creator
Creator

repeat value until new match in script

Hello

I would like to achieve the following: now my table looks like this:

DateStartDateValueStartvalue
16-01-201414-01-201453
15-01-201414-01-201443
14-01-201414-01-201433
13-01-201410-01-20142017
12-01-201410-01-20141917
11-01-201410-01-20141817
10-01-201410-01-20141717

I want to create the right column (Startvalue) in the script.

So when the startdate matches the date, the value recorded is the startvalue:

if(Date=StartDate, Value) as Startvalue.

But then this startvalue needs to be repeated for each following date until a new startdate matches the date.

How can i achieve this?

Your help would be much appreciated

regards,

Peter

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

if(Date=StartDate, Value, Peek(PropagatedValue)) as PropagatedValue


HIC

View solution in original post

2 Replies
hic
Former Employee
Former Employee

if(Date=StartDate, Value, Peek(PropagatedValue)) as PropagatedValue


HIC

pepe2209
Creator
Creator
Author

Ok thanks, so that was rather easy