Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
saivina2920
Creator
Creator

How to make it as blank if source field like "01/01/0001"

I am receiving date field as "01/01/0001" from source database (Oracle).

But, we don't want to maintain this field in Qlikview Report. If we are receiving like "01/01/0001" then we need to format the field as blank.

my current LOAD statement below.

LOAD Date(Floor([EMP_JOIN_DATE]), 'DD/MM/YYYY') as [EMP_JOIN_DATE]

How to check the condition here if "01/01/0001" and make it as blank..

Labels (1)
1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

May be try this..

Map_Date_Blank:
Mapping
LOAD
Text(Date(MakeDate(01,1,01),'DD/MM/YYYY')) as Date
,'' as Blank
AutoGenerate 1;

MAP [EMP_JOIN_DATE] using Map_Date_Blank;

LOAD
Date(Floor([EMP_JOIN_DATE]), 'DD/MM/YYYY') as [EMP_JOIN_DATE]
From Table;

View solution in original post

3 Replies
MayilVahanan

HI @saivina2920 

Try like below

LOAD If(Right([EMP_JOIN_DATE] ,4)<>'0001', Date(Floor([EMP_JOIN_DATE]), 'DD/MM/YYYY')) as [EMP_JOIN_DATE]

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
saivina2920
Creator
Creator
Author

Thanks.

It's working in List Box or individual displaying. When mapping with Table list, again it's showing "01/01/0001".

what is the problem...

settu_periasamy
Master III
Master III

May be try this..

Map_Date_Blank:
Mapping
LOAD
Text(Date(MakeDate(01,1,01),'DD/MM/YYYY')) as Date
,'' as Blank
AutoGenerate 1;

MAP [EMP_JOIN_DATE] using Map_Date_Blank;

LOAD
Date(Floor([EMP_JOIN_DATE]), 'DD/MM/YYYY') as [EMP_JOIN_DATE]
From Table;