Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

when function

SORRY for double posting! I had a "server-timeout" and pushed the refresh button obviously far too often!

Dear all,

when using the following code in the script, an error (table cannot be found left join (Data1)...) occurs.

Data1:
when Value1 = 'OK'
Load
ID,
Value1
Resident OriginalData1;

left join (Data1)
LOAD
ID,
CountID,
Month,
Weekday,
Start,
End,
Date
RESIDENT OriginalData2;


Is the placement of the when function correct?

Thankx for helping!

Nico

1 Solution

Accepted Solutions
Not applicable
Author

I used a "WHERE"-clause in my script.

<blockquote><pre>Data1:
Load
ID,
Value1
Resident OriginalData1
where Value 1 = 'OK';

left join (Data1)
LOAD
ID,
CountID,
Month,
Weekday,
Start,
End,
Date
RESIDENT OriginalData2;

View solution in original post

3 Replies
Not applicable
Author

Hi,

it should look like this:

Data1:
Load
ID,
Value1
Resident OriginalData1

when Value1 = 'OK'
;

Good luck!

Rainer

Not applicable
Author

good idea, but it is not working.

a script error occurs:

Error in Syntax
Data1:
Load
ID,
Value1
Resident OriginalData1
When Value1 = 'OK'

The "when" does not turn into blue color in the script?!

Maybe the where function is a better choice?

Not applicable
Author

I used a "WHERE"-clause in my script.

<blockquote><pre>Data1:
Load
ID,
Value1
Resident OriginalData1
where Value 1 = 'OK';

left join (Data1)
LOAD
ID,
CountID,
Month,
Weekday,
Start,
End,
Date
RESIDENT OriginalData2;