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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hitha1512
Creator
Creator

Fetch Previous record by date when there is no record for current date

Hi Team,

Please find the attached QVW that has the raw data.

Requirement: 

assuming current date is 03/08/2019, the rate for CAD has not flown in for this date. In such case, I need to pull value from date that last had the value along with its date(in new column). Also there are chances of file being missed for a day, in that case we will have to pick data from previous date to this date.

Please find below current output and the required output. 

This needs to be dynamic. The rates are received for various currencies on daily basis. 

Current Output:

Currency Value Date 
CAD111/08/2019
CAD11.52/08/2019
CAD20.95/08/2019

 

Required output:

Currency Value Date New column for date to show from which date it has been picked
CAD111/08/20191/08/2019
CAD11.52/08/20192/08/2019
CAD11.53/08/20192/08/2019
CAD11.54/08/20192/08/2019
CAD20.95/08/20195/08/2019

 

thank you

Regards,

Hitha Dhani

2 Solutions

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Refer qvw below if you couldn't get the desired result:

clipboard_image_0.png

 

Thanks and regards,

Arthur Fong

View solution in original post

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Add a new logic(DatePicked) similar to the New column:

clipboard_image_0.png

 

clipboard_image_1.png

Thanks and regards,

Arthur Fong

View solution in original post

5 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Refer qvw below if you couldn't get the desired result:

clipboard_image_0.png

 

Thanks and regards,

Arthur Fong

hitha1512
Creator
Creator
Author

thanks a lot for the quick response 🙂  appreciate it !

Just another small bit.... is there a way i can show from which previous date the value was taken in another date column ?

Regards,

Hitha Dhani

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Add a new logic(DatePicked) similar to the New column:

clipboard_image_0.png

 

clipboard_image_1.png

Thanks and regards,

Arthur Fong

hitha1512
Creator
Creator
Author

Awesome! Thanks a ton again 🙂 that worked.