Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Folks,
i got a question, my table does look like:
Produkt | Month | Value |
a | 1 | 2 |
a | 2 | 4 |
b | 1 | 20 |
b | 2 | 25 |
b | 3 | 30 |
i want to create a new row with in a table:
Produkt | Month | Value |
a | 1 | 2 |
a | 2 | 4 |
a | 3 | 0 |
b | 1 | 20 |
b | 2 | 25 |
b | 3 | 30 |
My product a has no month =3, so I wanted to ask if there is a way to add the missing month and column: Value with the value = 0.
Does anybode have any idea?
thanks a lot
Hello,
I am not 100% sure that your use case scenario is possible to be achieved in Qlik Sense load script. The issue here is a bit more complex than it looks and you need to take into consideration a lot of factors. For example here are some of the most important considerations:
Note: I mean that the above considerations need to be implemented in the script's logic
Because ideally you could just do the following:
Note: Those are just some of the steps that you need to take into consideration
As you can see, the concept above, is a bit complicated and it will take you more time to find the right functions to achieve the use case scenario, if it is even possible. However, if somebody can't share with you a workaround here, then I would recommend to process the data (generate missing values) with a script (Python ideally) and then import the new dataset in Qlik Sense for analysis.
I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members.
if I got you,
try to load from your table to temp table only the Month field,
after that load to table temp2 only the product field and after that make a cross join between two temp tables.
after that make the right join and this field - " '0' as Value ",
let me know if that resolves the problem
Hello,
I am not 100% sure that your use case scenario is possible to be achieved in Qlik Sense load script. The issue here is a bit more complex than it looks and you need to take into consideration a lot of factors. For example here are some of the most important considerations:
Note: I mean that the above considerations need to be implemented in the script's logic
Because ideally you could just do the following:
Note: Those are just some of the steps that you need to take into consideration
As you can see, the concept above, is a bit complicated and it will take you more time to find the right functions to achieve the use case scenario, if it is even possible. However, if somebody can't share with you a workaround here, then I would recommend to process the data (generate missing values) with a script (Python ideally) and then import the new dataset in Qlik Sense for analysis.
I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members.
if I got you,
try to load from your table to temp table only the Month field,
after that load to table temp2 only the product field and after that make a cross join between two temp tables.
after that make the right join and this field - " '0' as Value ",
let me know if that resolves the problem