Skip to main content
Announcements
Product Release Webinar: Qlik Insider airing December 6! REGISTER TODAY!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

missing date and missing id highlited

in attach excel you get three sheets . each sheet has data daily basis for three different id . my requirement is i have to make a report in ui where i point out that which unit is missing in which date.like ID 1 is missing in 06/01/2015 and ID 2 is misssing in 08/01/2015 and 13/01/2015 and ID 3 is missing 03/01/2015 and 02/01/2015.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You could add the missing combinations for DATE and ID in the script, like

INPUT:

LOAD ID,

     DATE,

     VALUE

FROM

[test (4).xlsx]

(ooxml, embedded labels, table is T);

LOAD ID,

     DATE,

     VALUE

FROM

[test (4).xlsx]

(ooxml, embedded labels, table is U);

LOAD ID,

     DATE,

     VALUE

FROM

[test (4).xlsx]

(ooxml, embedded labels, table is Y);

TMP:

LOAD DISTINCT ID Resident INPUT;

JOIN

LOAD DISTINCT DATE RESIDENT INPUT;

LEFT JOIN (TMP)

LOAD * RESIDENT INPUT;

DROP TABLE INPUT;

Then create a chart with dimensions ID and DATE and expression

=NullCount(VALUE)

ID DATE NullCount(VALUE)
6
106.01.20151
208.01.20151
213.01.20151
302.01.20151
303.01.20151
311.01.20151

View solution in original post

5 Replies
Not applicable
Author

sunindiagwassenaarjaganmohanraomanishkharshmaxgroAnandcharytresescoswuehlMarcoWedel‌  please help me how can i do this.

swuehl
MVP
MVP

You could add the missing combinations for DATE and ID in the script, like

INPUT:

LOAD ID,

     DATE,

     VALUE

FROM

[test (4).xlsx]

(ooxml, embedded labels, table is T);

LOAD ID,

     DATE,

     VALUE

FROM

[test (4).xlsx]

(ooxml, embedded labels, table is U);

LOAD ID,

     DATE,

     VALUE

FROM

[test (4).xlsx]

(ooxml, embedded labels, table is Y);

TMP:

LOAD DISTINCT ID Resident INPUT;

JOIN

LOAD DISTINCT DATE RESIDENT INPUT;

LEFT JOIN (TMP)

LOAD * RESIDENT INPUT;

DROP TABLE INPUT;

Then create a chart with dimensions ID and DATE and expression

=NullCount(VALUE)

ID DATE NullCount(VALUE)
6
106.01.20151
208.01.20151
213.01.20151
302.01.20151
303.01.20151
311.01.20151
Not applicable
Author

its working thank you

Not applicable
Author


@swuehl

this answer is worked but suppose one day(02.01.2015) is missing for all ID s(1,2,3) how can I highlighted  those units also. please reply.

swuehl
MVP
MVP

Instead of this line

JOIN 

LOAD DISTINCT DATE RESIDENT INPUT; 

which reads in the dates from your INPUT table,

use a date field that holds all dates you are interested in, basically a master calendar:

The Master Calendar