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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Help With Date

Hi,

I am joining two tables, TableA and TableB, and need to create a single date for all records.  This data field also needs to join onto my master calendar:

Im trying to use this expression:

if(IsNull(DateA),date(DateB,'DD/MM/YYYY'),DateA) as DATE,

But this doesn't link to my master calendar

But if I just use ;

DateA as DATE

Then these only those records from Table A link to my master calendar.

Can anyone advise please?

Phil.

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Is DateB maybe a timestamp?

Then use

if(IsNull(DateA),date(floor(DateB),'DD/MM/YYYY'),DateA) as DATE,

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Is DateB maybe a timestamp?

Then use

if(IsNull(DateA),date(floor(DateB),'DD/MM/YYYY'),DateA) as DATE,

prees959
Creator II
Creator II
Author

Perfect Thank you!