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

Generate Order No. for those months where there's no record for it

Hi,

I need to generate missing Order Nos. and the filled count for those months where that particular Order No. is not present and generate '0' as filled count. Something as shown in the image. Thanks.

Labels (1)
3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

assuming your table is called Table1 

this script should work 

Table2:
load *,
     if(isnull(OrderNo),peek('FullOrder'),OrderNo) as FullOrder
resident Table1
order by OrderNo,Month;
DataNovice01
Contributor
Contributor
Author

Hi.. tried this but it still does not generate the additional months for a particular OrderNo. if it wasn't there in the month. There's no difference between Orcer and FullOrder.

Brett_Bleess
Former Employee
Former Employee

Finally found the Design Blog post I was looking for on this one, have a look, I believe it may give you an avenue:

https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/14706...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.