Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Gowtham174
Creator
Creator

Previous dates values

qHi team,

I need to give the previous dates values when dates are missing need to consider previous dates which is available,

Please see the below input and output values, 

Raw data:

Namevaluesdate
a11/1/2021
b21/1/2021
c31/1/2021
c61/2/2021
a71/3/2021
b81/3/2021
c91/3/2021

 

Expected output in Qlik straight table

NameCurrent valuesPrevious Value
a71
b82
c96

 

I tried with below expression

sum({<date={'$(=Date(Aggr(Max({$<date={"<=$(=Date(Max(date)))"}>}
date,2),Name)))'}>}values)

 

 Thanks,

Gowtham

 

Labels (1)
1 Reply
Ksrinivasan
Specialist
Specialist

hi,

Find the screen shot and expression also mentioned, it will give your result

Ksrinivasan_0-1610728270257.png

Ksrinivasan