Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
robert99
Specialist III
Specialist III

Null to appear when two tables are joined not blank

This si just an example to try and achieve what I can not achieve with a much larger file

Script is shown below

Ive tried every option I can from the manuals but this is the best so far that I can achieve

I just want null to appear instead of blank in the LU column (so that I can select by null. Blank of course is not a selectable field)

I have just been dumpinmg into excel and sorting but can be done in qlikview?

SET ThousandSep=',';SET DecimalSep='.';SET MoneyThousandSep=',';SET MoneyDecimalSep='.';SET MoneyFormat='£#,##0.00;-£#,##0.00';SET TimeFormat='hh:mm:ss';SET DateFormat='DD/MM/YYYY';SET TimestampFormat='DD/MM/YYYYhh:mm:ss[.fff]';SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';SET NullValue= 'Null';

abc:LOAD

Ser_Num

FROM
D:\QlikView\TestSerialRH.xlsx
(
ooxml, embedded labels, table is Sheet1);


xyz:

LEFT JOIN

LOAD Ser_Num,
    
LUFROM
D:\QlikView\TestSerialRH.xlsx
(
ooxml, embedded labels, table is Sheet2);

NULLASVALUE LU;

lOAD LU,Ser_Num

Resident abc;

1 Solution

Accepted Solutions
robert99
Specialist III
Specialist III
Author

OK DONE

NULLASVALUE LU2;

lOAD

LU as LU2,

Ser_Num

Resident abc;

GIVES

Ser_NumLULU2
AARHRH
BBRHRH
CCDHDH
DDDHDH
EE Null
FF Null
GG Null
HH Null
II Null
JJ Null
KK Null
LL Null
MM Null
Null

View solution in original post

2 Replies
robert99
Specialist III
Specialist III
Author

And what I goit from thsi

But I only want the null field to appear as NULL not null and blank

I can seelct the null values in column LU based on thsi approach but I would rather the blank column were not included

Thanks for any help

Ser_NumLU
AARH
BBRH
CCDH
DDDH
EENull
EE
FFNull
FF
GGNull
GG
HHNull
HH
IINull
II
JJNull
JJ
KKNull
KK
LLNull
LL
MMNull
MM
Null
robert99
Specialist III
Specialist III
Author

OK DONE

NULLASVALUE LU2;

lOAD

LU as LU2,

Ser_Num

Resident abc;

GIVES

Ser_NumLULU2
AARHRH
BBRHRH
CCDHDH
DDDHDH
EE Null
FF Null
GG Null
HH Null
II Null
JJ Null
KK Null
LL Null
MM Null
Null