Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
I eventually solved the problem by converting the YearWeek to a date and connecting it to the Master Calendar, thank you for the help.
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.
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.
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.
I have created a Master Calendar. see file.
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.
You can do this using Generic Keys. Read more on
http://community.qlik.com/blogs/qlikviewdesignblog/2012/10/26/mixed-granularity
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
I eventually solved the problem by converting the YearWeek to a date and connecting it to the Master Calendar, thank you for the help.