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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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!