Hello, everyone.
I'd like to insert missing months for each Product_ID in table below.
Product_ID | State | Country | Date |
1 | Added | Spain | 01.12.2020 |
1 | Modified | Germany | 01.02.2021 |
1 | Deleted | Germany | 01.04.2021 |
2 | Added | Spain | 01.02.2021 |
I want to see at which dates product stayed in a country. E.g. Product 1 stayed in Spain since 01.12.2020 till 01.02.2021
Products have 3 states. And if it's not deleted then I want to extend it to monthstart(today()).
Expected result: (added rows colored blue)
Product_ID | Country | Date |
1 | Spain | 01.12.2020 |
1 | Spain | 01.01.2021 |
1 | Germany | 01.02.2021 |
1 | Germany | 01.03.2021 |
1 | Germany | 01.04.2021 |
2 | Spain | 01.02.2021 |
2 | Spain | 01.03.2021 |
2 | Spain | 01.04.2021 |
Thanks for help.
I found solution in Generating Missing Data In QlikView post by Henric_Cronström
Forgot to mention that I want to achieve this in load script.
So, is it not possible to do such thing in Qlik?
I found solution in Generating Missing Data In QlikView post by Henric_Cronström