Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
BI_Dev
Creator II
Creator II

add next 4 years to existing year

Hi - I have table as below.

IDEnd Date20212022202320242025
112/31/2021100    
212/31/2023100200   

 

Here ID '1' has the End date of 12/31/2021 - so, we want to assume it has the end date of  2025 and add $100 to 2022, 2023, 2024,2025

and ID '2' has the end date of  2023 - so want to assume it has the end date of 2025 and add $150 (pick the last available amount) to 2024 and 2025.

The output will be as below.

IDEnd Date20212022202320242025
112/31/2021100100100100100
212/31/2023100200150150150

 

Is this doable ?

Labels (4)
10 Replies
BI_Dev
Creator II
Creator II
Author

@stevejoyce  Beautiful. Thank you much 🙏