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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
domiho123
Partner - Contributor II
Partner - Contributor II

Where exists : field not found

Gents, Ladies,

I'm trying to add missing months in a table using CONCATENATE LOAD and a Where Exists() clause. The message I am receiving that a field is missing (see screenshot).

ScreenHunter_01 Apr. 18 08.45.gif

The version is 9.00.7646.9 SR6 and cannot upgrade.

The code is:

***************************************************************************************************************

LET varMinDate     = Num(MakeDate(2010,01,01));

LET varMaxDate     = Num(Today());

DateField_Temp:

LOAD  $(varMinDate) + RowNo() -1       as Num,

      Date($(varMinDate) + RowNo() -1) as TempDate

AutoGenerate

      $(varMaxDate) - $(varMinDate) + 1;

// load months of each year (by choosing first of the month)

DateField:

LOAD

           TempDate

Resident DateField_Temp where Day(TempDate) = '1';

drop table DateField_Temp;

     

BE_Team:

LOAD

          MEDEWERKER_NR as %EMPLOYEE_Key,

    UNIT,

    PRCTR,

    IN,   // Date format is DD-MM-YYYY (system setting is DD-MM-YYYY)

    UIT,

    TEAM,

    PM_NR,

    PM_VOORNAAM,

    PM_NAAM,

    LEVEL,

    [INTERN/EXTERN],

    MonthStart(IN) as INMonthStart

FROM $(vDirEmp)\BE_Team - Employee.qvd (qvd);

concatenate

LOAD

          TempDate as IN

Resident DateField Where Exists (IN);

***************************************************************************************************************

Please advice.

Dominique.

1 Solution

Accepted Solutions
Not applicable

Try

LOAD

          TempDate as IN

Resident DateField Where Exists (IN,TempDate);

View solution in original post

2 Replies
Not applicable

Try

LOAD

          TempDate as IN

Resident DateField Where Exists (IN,TempDate);

domiho123
Partner - Contributor II
Partner - Contributor II
Author

Thanks al lot Matthew! I simply works.

I have tried probably everything except that one