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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ciaran_mcgowan
Partner - Creator III
Partner - Creator III

Missing Data

Hi all,

Can anyone recommend the best way to fill in missing data? I need to create a daily snapshot of a file that only contains a Start Date & End Date. User's need to see an overview of all employee positions on a given day. I've already groups all values in Order of Person ID & Start Date but I need to fill in the blanks.

Below is an example of what I have:

Employee IDNameLocationStart DateEnd Date
1JohnLondon19/12/201622/12/2016
2RingoLondon20/12/201623/12/2016
1JohnGlasgow23/12/201625/12/2016

What I need to see is:

Employee IDNameLocationDate
1JohnLondon19/12/2016
1JohnLondon20/12/2016
1JohnLondon21/12/2016
1JohnLondon22/12/2016
1JohnGlasgow23/12/2016
1JohnGlasgow24/12/2016
1JohnGlasgow25/12/2016
2RingoLondon23/12/2016
2RingoLondon24/12/2016
2RingoLondon25/12/2016

Any advice is much appreciated!

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Use this

Data:

LOAD [Employee ID],

     Name,

     Location,

     [Start Date],

     [End Date]

FROM

[https://community.qlik.com/thread/246321]

(html, codepage is 1252, embedded labels, table is @1);

Final:

Load [Employee ID],

     Name,

     Location,

     Date([Start Date] + IterNo() - 1) as Date

Resident Data

While Date([Start Date] + IterNo() - 1) <= [End Date];

Drop Table Data;

I think the result table looks wrong to me. Please recheck and update.

View solution in original post

4 Replies
dsharmaqv
Creator III
Creator III

Go to the persentation tab and at the bottom you can define null and missing symbol

MK_QSL
MVP
MVP

Use this

Data:

LOAD [Employee ID],

     Name,

     Location,

     [Start Date],

     [End Date]

FROM

[https://community.qlik.com/thread/246321]

(html, codepage is 1252, embedded labels, table is @1);

Final:

Load [Employee ID],

     Name,

     Location,

     Date([Start Date] + IterNo() - 1) as Date

Resident Data

While Date([Start Date] + IterNo() - 1) <= [End Date];

Drop Table Data;

I think the result table looks wrong to me. Please recheck and update.

ciaran_mcgowan
Partner - Creator III
Partner - Creator III
Author

Thanks, I'll give that a go. You were right about the table, I've fixed that now.

ciaran_mcgowan
Partner - Creator III
Partner - Creator III
Author

I don't think you understand what I'm trying to accomplish here.