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

linking dates problem

Hello,

i'm trying to develop a calendar like this oneLinking to two or more dates

but i can't understand why my data doesn't apply the month correctly, it gets null on the feb month,

in this dataset contains the process, create date, completed date and status. I'm following the steps in the link but i can't understand what is wrong.

Please see the attached file.

1 Solution

Accepted Solutions
Not applicable
Author

This comment gave me a light, the problem was in the SQL statement, on the conversion from datetime to date. Thank you all!

View solution in original post

10 Replies
whiteline
Master II
Master II

Hi.

You don't have any records for Feb dates in your DateLink table.

You should have all kinds of dates there, not only create Dates.

Concatenate the rest ones.

Not applicable
Author

As you can see in the link tab i do have the COMPLETED_CALENDAR and the CREATE_CALENDAR concatenated to build the DateLink, and there are feb records. I'm i doing it wrong?

Anonymous
Not applicable
Author

Something's wrong with the calendar.  You have each date multiple times, and most of the dates are not associated with months and years.

Try to create table box with calendar fields, you'll see.

Not applicable
Author

i know, and don't know caused this 

Gysbert_Wassenaar

Something is wrong with the subroutine you use to create the calendar. Try this instead on your last script tab:

DROP TABLE TMP;

//CALL CalendarFromField('Date', 'CommonCalendar', '');

Calendar:

Load Date, Year(Date) as Year, Month(Date) as Month, day(Date) as Day, weekday(Date) as Weekday

resident DateLink;


talk is cheap, supply exceeds demand
Not applicable
Author

This comment gave me a light, the problem was in the SQL statement, on the conversion from datetime to date. Thank you all!

Not applicable
Author

the subroutine is ok! thanks!

Anonymous
Not applicable
Author

You have a problem with Date in the DateLink table - it is timestamp

Use
floor(CREATE) as Date

floor(COMPLETED) as Date

There is something else besides this...

Anonymous
Not applicable
Author

Edit - no, that's it I guess