Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Members,
I am new to qlikview, i want to know if there is any way to display "Unknown" for any missing date.
ex: in my table i have two fields
name, dob
a,5/12/1990
b,9/02/1995
c,
d,
if i want to show dob unknown for c and d in a list box how can i achieve this ?
DATA:
LOAD
name,
if(LEN(TRIM(dob))=0 or IsNull(dob), 'Unknown',dob) as dob;
LOAD
name,
Date(dob) as dob
FROM
[New Microsoft Office Excel Worksheet.xlsx]
(ooxml, embedded labels, table is Sheet1);
in a listbox you can select under "formula" the symbols for null and missing values. there you can define "unknown"
in a Chart the same under presentation
or u can simply use if (dob='','unknown',dob) as dob;
i tried the thing replace - by "unknown" in null values but it is not displaying in list box.any suggestions
Try setting set NullDisplay='Unknown'; before loading the table (Haven't tested it).
i tried this one also but no use..
here is my script..
LOAD name,
date(if(dob='','Unknown',dob),'MM/DD/YYYY') as dob1
FROM
[..\New Microsoft Office Excel Worksheet.xlsx]
not working
hi ,
Try Like this ,
if (len(trim(dob))=0,'unknown',dob) as dob;
Thanks !!!
Load
name,
if(LEN(TRIM(dob))=0 or IsNull(dob), 'Unknown',dob) as dob;
Load
name,
Date(Date#(dob,'M/DD/YYYY')) as dob
Inline
[
name, dob
a, 5/12/1990
b, 9/02/1995
c,
d,
];
Try this:
=If( dob <>0, dob, ' Unknown')
Thanks,
AS