Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
wcilliers
Partner Ambassador
Partner Ambassador

Generate missing exchange rates with last available

Hi Experts,

Please can you assist me with the following.

I have a currency table that I read with a valid from date. This gets updated daily, however, it doesn't update over weekends and public holidays. I want to fill in the gaps, with the last rate available. IE. For Saturday, I want to use Friday's rate, or Thursday's rate, if Friday was a public holiday.

Please see attached example of data.

Hope you can help.

Thanks in advance!

Wynand.

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Wynand,

Have a look at the attached file.

View solution in original post

6 Replies
wcilliers
Partner Ambassador
Partner Ambassador
Author

Hi Experts,

Any help please???

Thanks,

Wynand

tamilarasu
Champion
Champion

Hi Wynand,

Have a look at the attached file.

wcilliers
Partner Ambassador
Partner Ambassador
Author

Hi Tamil,

Thanks this is perfect, just need it to fetch the rate the other way around, IE, your script fetches rate for 4/5 March by using 6 March rate, I want to use 3 March rate?

This possible?

Thanks!

tamilarasu
Champion
Champion

Hi Wynand,

The script which I have attached is fetching the 3rd March rate. Please see below screenshot. Kindly correct me if I am wrong.

Capture.PNG

wcilliers
Partner Ambassador
Partner Ambassador
Author

My apologies, was obviously not looking properly... Working perfect, thanks!

tamilarasu
Champion
Champion

No worries Wynand. Cheers!! Have a nice day!!