Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem with Master Calendar

Hi guys,

I am creating a second Master Calendar but I'm having trouble. I already have one for Transactions, and now I want one for Actions.

Actions is loaded into QlikView via SQL:

LOAD

       `action_datetime`                               as [Action Datetime],

       date(floor(`action_datetime`))            as [Action Date],

        .....

SQL SELECT

....

And "Action Datetime" has this look in the database:

Captura de pantalla 2015-10-23 a las 10.38.24 AM.png

So I created a Master Calendar for actions in a text file (and I call it with Include$...). Find it attached (Actions_Calendar.txt).

[Action Date] is primary key, linked to other tables. When I do the preview in the table viewer it's correct:

previw.png

But when I create a multitable in a sheet, looks like it is not working (The expression below is evaluated, though):

doc.png

Does anyone know what's going on?

Thanks!

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Your calendar looks incorrect based on the presence of the 1899 date -- means you are starting at Day 0. I think the problem is in your calendar script at:

TempActionCal:

LOAD

  date($(vMinDate)+ rowno() -1) AS TempActionDate

That should be $(vMinActionDate)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Your calendar looks incorrect based on the presence of the 1899 date -- means you are starting at Day 0. I think the problem is in your calendar script at:

TempActionCal:

LOAD

  date($(vMinDate)+ rowno() -1) AS TempActionDate

That should be $(vMinActionDate)

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

Anonymous
Not applicable
Author

Thanks! That was it!