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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
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.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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!