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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Strange linking in Qlikview file

Hi All,

I have a problem in qlikview, it seems that qlikview makes an impossible connection between 2 tables through the Calendar component.

Table1:

YearWeek,

Locatie

Table2

Date,

Kas

Calendar

YearWeek,

Date,

Month

Somehow Qlikview makes an connection between Table1 and Table2 through Calenar which allows impossible connections.

Because when i select a value in Table1 Locatie, i should not be able to select something in Table2.

But somehow i can select anything.

1 Solution

Accepted Solutions
Not applicable
Author

I eventually solved the problem by converting the YearWeek to a date and connecting it to the Master Calendar, thank you for the help.

View solution in original post

8 Replies
Not applicable
Author

Hm, now i think a little bit more about it, it is actually very logical. because the Calendar acts as a Link Table in this case so it makes the values available.

sudeepkm
Specialist III
Specialist III

You are right. your date field is making an association between multiple tables.

Now if you select any value for another field in a table then the corresponding value of other fields from other table based on the date selected will only appear. In your case if you do not want to associate multiple tables based on date field then you need to change it in your script and update the data model.

Not applicable
Author

How could i best achieve this? because i want them linked to the Calendar so i can select Years, months etc. but not that it acts as a link table.

Not applicable
Author

You need to make a master calendar to solve this issue.

Please read below

Creating A Master Calendar

Not applicable
Author

I have created a Master Calendar. see file.

sudeepkm
Specialist III
Specialist III

I would suggest to read the blog on Master Calendar.

http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar

One quick question. Are the date field in Omzet, Ranges and Uren table different date.

I mean are they like one is order date then another is shipment date. If the date represents two or more different fields then better to keep it separate and create master calendar based on the date which you want the end user to use as filter selection.

hic
Former Employee
Former Employee

You can do this using Generic Keys. Read more on

http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity

Generic keys

The idea is to have a two-column table between the calendar and the other three tables, the first containing a date (linking to the master calendar) and the second a Generic Key, like in the following

GenericBridge:

Load Date, 'Date:' & Date as %Date Resident xxx ; // Linking to Omzet and Ranges

Load Date, 'YearWeek:' & YearWeek as %Date Resident yyy; // Linking to Uren

And then define the corresponding %Date field in Omzet, Ranges and Uren.

HIC

Not applicable
Author

I eventually solved the problem by converting the YearWeek to a date and connecting it to the Master Calendar, thank you for the help.