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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
razvan_brais
Creator III
Creator III

Complete missing rows with 0 value

Hello,

I would like to add 0 values for some ID`s that are missing in one day.

So the values that I`m loading would look something like this :

DATEDEP_IDVALUE
27-Feb-2018110
27-Feb-2018211
27-Feb-201839
27-Feb-2018412
26-Feb-201812
26-Feb-201825
26-Feb-2018313
26-Feb-2018412
26-Feb-2018520
26-Feb-2018621

What I want to achieve is in this table

DATEDEP_IDVALUE
27-Feb-2018110
27-Feb-2018211
27-Feb-201839
27-Feb-2018412
27-Feb-2018(added)5(added)0(added)
27-Feb-2018(added)6(added)0(added)
26-Feb-201812
26-Feb-201825
26-Feb-2018313
26-Feb-2018412
26-Feb-2018520
26-Feb-2018621

As you can see I need to add missing DEP_ID`s for a DATE with values 0.

Can you please help me?

Thank you.

2 Replies
YoussefBelloum
Champion
Champion

Hi,

what do you mean by missing ID ?

the ID's are always from 1 to 6 ?

razvan_brais
Creator III
Creator III
Author

Yes , I need the list to be static , but in some days ,from database , are brought only 3, or 4 etc. And when there are fewer than the static list , to add missing ID`s with value 0