<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unexpected filtering behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946753#M957934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s very difficult for me to answer your questions as I don’t know the requirements of your app and I’m not familiar with your data source. I took a look at your script and it’s hard for me to understand the reasons why you setup your script in this way. I’m not saying it’s good or bad, just trying to make clear that it’s hard for me to answer your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nevertheless I give it a go &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your data is about Sales (Vendita), Purchases (Acquisto) and Orders (Commesse).&lt;/P&gt;&lt;P&gt;Normally the relation between those entities is quite simple. On date x you purchase something and sell stuff. Both (sales and purchases) have orders linked (sales order and purchase order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let’s take a look at your data model. You want something with dates and in your data model there are two dates: OVR_ORD_DATA_ORDINE and OAR_ORD_DATA_ORDINE (sales date and purchase date). Both dates should be linked to the master calendar. Therefore create a link table with the following keys:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;A keyfield for sales date to link with the master calendar&lt;/LI&gt;&lt;LI&gt;A keyfield for purchase date to link with the master calendar. This field should have the same name as the sales date key field (like _Date.KEY)&lt;/LI&gt;&lt;LI&gt;A keyfield to link with your sales records&lt;/LI&gt;&lt;LI&gt;A keyfield to link with your purchase records&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This can be achieved by concatenating the OVR and OAR tables into one link table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Order table should link to both Sales and Purchase. As sales orders and purchase orders are different entities, the orders (commesse) should be created twice: one as sales order and one as purchase order. By rename fields you prevent QlikView from creating synthetic tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do it right you don't have to work with two calendars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2015 12:48:58 GMT</pubDate>
    <dc:creator>mvanlutterveld</dc:creator>
    <dc:date>2015-11-09T12:48:58Z</dc:date>
    <item>
      <title>Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946741#M957919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an unexpected behaviour during my filter session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached file where you can find a current selection for "Periodo" field starting from january to june 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select "324" from "Cli" field I expect that Periodo selection limits to only january 2015, not also december 2014. I know there are items on data for "324" value that lie on december 2014, but I don't understand why Periodo selection include also december 2014. If I've previously selected jan-jun 2015 I don't want this other selection include outer items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for support and best regards.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messaggio modificato da Marco Pikiri&#xD;
&#xD;
Data integration on file 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946741#M957919</guid>
      <dc:creator />
      <dc:date>2015-11-05T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946742#M957920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There no connection between periods or master calendar with your data.Looks like data model is incomplete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946742#M957920</guid>
      <dc:creator>chaper</dc:creator>
      <dc:date>2015-11-05T15:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946743#M957921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Renamed Order date field to connect with your data. Reload this app and check whether it worked or not.use .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946743#M957921</guid>
      <dc:creator>chaper</dc:creator>
      <dc:date>2015-11-05T15:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946744#M957922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your filtering is exactly as you programmed it:&lt;/P&gt;&lt;P&gt;‘Cli’ is an expression:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Month&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OVR_ORD_DATA_ORDINE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Month&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Periodo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;OVR_ORD_DATA_ORDINE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Periodo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)), &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CLIENTE_VEN_ORD_KEY&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at CLIENTE_VEN_ORD_KEY and make a selection in that field (value 324), it returns 31/12/2014 and 30/01/2015 as OVR_ORD_DATA_ORDINE. &lt;/P&gt;&lt;P&gt;As Chaiperi stated: your Periods table is not connected to any other tables in your data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946744#M957922</guid>
      <dc:creator>mvanlutterveld</dc:creator>
      <dc:date>2015-11-05T15:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946745#M957923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know there are no connections, the file you're seeing is a deep simplification of original where I can't link periods to other entities, otherwise I'll get circular reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried also to duplicate master calendar tables (one for each entity), but then &lt;SPAN style="font-size: 13.3333px;"&gt;I have to ask &lt;/SPAN&gt;to the final user to select just one of them and reflect selection to the others, but can't handle correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making connection between entities and unique master calendar using field expressions as you can see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to handle this behaviour?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946745#M957923</guid>
      <dc:creator />
      <dc:date>2015-11-05T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946746#M957927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;based on the data mode&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104058_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;there is no link between periods to mastercalendar and mastercalendar to any of the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946746#M957927</guid>
      <dc:creator />
      <dc:date>2015-11-05T16:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946747#M957928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand, but is there any way to handle this behaviour "forcing" selection to not include outer values? Perhaps with set analysis? As a newbie I've started to read now about them, it seems a big world, but at now I need to synthesize to what I need now and satisfy my customer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for pressing and thanks for your support!&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946747#M957928</guid>
      <dc:creator />
      <dc:date>2015-11-05T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946748#M957929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With out making any link in data I think it won't work in expression even if you write it.May be you should look into getting rid of Circular reference while making links in data model with different data sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946748#M957929</guid>
      <dc:creator>chaper</dc:creator>
      <dc:date>2015-11-05T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946749#M957930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, you can dive into set analysis. There are tons of posts on this forum about set analysis. &lt;A _jive_internal="true" href="https://community.qlik.com/people/hic"&gt;Henric Cronström&lt;/A&gt; has some excellent readings about this topic. I'm sure you can go a long way with set analysis to reach your requirements.&lt;/P&gt;&lt;P&gt;But IMHO first start with mastering the skills of data modelling. Without a good data model you never get a good QlikView app.The data model is the engine of your app, set analysis isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 07:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946749#M957930</guid>
      <dc:creator>mvanlutterveld</dc:creator>
      <dc:date>2015-11-06T07:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946750#M957931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Michiel says, you need to get your data model right.&amp;nbsp; Set Analysis is a very powerful tool in QlikView but it is not a fix-all for an incorrect data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post by &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ on Canonical dates may help in getting a correct calendar into your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-blog-small" data-containerid="2588" data-containertype="37" data-objectid="3585" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 15:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946750#M957931</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-11-06T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946751#M957932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But please find attached new version of file (Qlik_Date_Filter2.qvw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added data for another entity: its name is 'For' and it's parallel to 'Cli' entity. Each entity has its own date field to put in connection with master calendar: OVR_ORD_DATA_ORDINE for 'Cli' and OAR_ORD_DATA_ORDINE for 'For'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I achieved successfully at now is to leave master calendar unlinked with model and link it virtually just on final chart/select objects. So you have seen my formulas to sum OVR/OAR values depending if its corresponding date falls on master calendar period range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linking master calendar to model and getting rid of circular reference implies (as far as I know) to build another master calendar, so that I link the first one to 'Cli' entity and the second one to 'For': is it correct? Then have I to ask to my customer to select the same date range twice or&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I can avoid this working on&lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;triggers events&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 16:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946751#M957932</guid>
      <dc:creator />
      <dc:date>2015-11-06T16:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946752#M957933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you have the opportunity to see my second attached qvw file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, regards.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 10:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946752#M957933</guid>
      <dc:creator />
      <dc:date>2015-11-09T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946753#M957934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s very difficult for me to answer your questions as I don’t know the requirements of your app and I’m not familiar with your data source. I took a look at your script and it’s hard for me to understand the reasons why you setup your script in this way. I’m not saying it’s good or bad, just trying to make clear that it’s hard for me to answer your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nevertheless I give it a go &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your data is about Sales (Vendita), Purchases (Acquisto) and Orders (Commesse).&lt;/P&gt;&lt;P&gt;Normally the relation between those entities is quite simple. On date x you purchase something and sell stuff. Both (sales and purchases) have orders linked (sales order and purchase order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let’s take a look at your data model. You want something with dates and in your data model there are two dates: OVR_ORD_DATA_ORDINE and OAR_ORD_DATA_ORDINE (sales date and purchase date). Both dates should be linked to the master calendar. Therefore create a link table with the following keys:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;A keyfield for sales date to link with the master calendar&lt;/LI&gt;&lt;LI&gt;A keyfield for purchase date to link with the master calendar. This field should have the same name as the sales date key field (like _Date.KEY)&lt;/LI&gt;&lt;LI&gt;A keyfield to link with your sales records&lt;/LI&gt;&lt;LI&gt;A keyfield to link with your purchase records&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This can be achieved by concatenating the OVR and OAR tables into one link table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Order table should link to both Sales and Purchase. As sales orders and purchase orders are different entities, the orders (commesse) should be created twice: one as sales order and one as purchase order. By rename fields you prevent QlikView from creating synthetic tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do it right you don't have to work with two calendars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 12:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946753#M957934</guid>
      <dc:creator>mvanlutterveld</dc:creator>
      <dc:date>2015-11-09T12:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946754#M957935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;think about "Commesse" as "Project".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My customer starts analyzing the model selecting a project or a collection of projects. This is the reason why this "Commesse" entity is the center of my star model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then he sets a range period on master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this selection he wants to see simultaneously sales, purchases, customers and suppliers implied with, going deeper selecting specific customers/suppliers. In this phase we notice the unexpected behaviour on date filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your suggestion I'll go to read twice project entity, ok, but the problem simply moves from a side to another: I'll have to manage two parallel "Commesse" rather than two parallel calendars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then which could be the best approach I should follow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, I appreciate your support, regards.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 14:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946754#M957935</guid>
      <dc:creator />
      <dc:date>2015-11-09T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946755#M957936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to alter my previous post a bit as I didn’t understand the meaning of Commesse. Google Translate came up with Orders, but as you stated Project is more appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the way you are describing the requirements of your app, you’re actually almost there in realising the data model. A good understanding of what the requirements are is half the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First the Commesse and date selections:&lt;/P&gt;&lt;P&gt;These should result in a set of sales and purchase records filtered by the selections made. Customers and suppliers should be associated automatically. This means that every sales record should link to a data value and a Commesse value. This must be done by using a central link table (synonym: fact table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First read your sales records. Expand this table with a key field to the calendar (_Date.KEY) and Commesse (_Commesse.KEY). Create a temporary table with your purchase records and also add the _Date.Key and _Commesse.KEY. Concatenate the two tables.&lt;/P&gt;&lt;P&gt;Load your Commesse table and add the key field _Commesse.KEY. Load the master calendar and add the _Date.KEY key field.&lt;/P&gt;&lt;P&gt;Now both purchases and sales are linked to the calendar and commesse tables.&lt;/P&gt;&lt;P&gt;If needed you can create a Sales Detail table and Purchase Detail table to reduce the number of fields in the central link table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For customers and suppliers I have to make an assumption and that is: &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Customers link only to the sales table&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Suppliers link only to the purchase table&lt;/P&gt;&lt;P&gt;So add a key field to the customer table in the sales table (_Customer.KEY) and do the same for the supplier in the purchase table (_Supplier.KEY). &lt;/P&gt;&lt;P&gt;Please take note that a selection in Supplier means that only purchase records are associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added an example of a data model to this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 11:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946755#M957936</guid>
      <dc:creator>mvanlutterveld</dc:creator>
      <dc:date>2015-11-10T11:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946756#M957937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for late, but finally this is the desired behaviour, I have to thank you a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made it a fast try and I already see the difference with previous version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm going to apply this concept to the final data model and hoping that other anomalies don't arise...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Marco Pikiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 10:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946756#M957937</guid>
      <dc:creator />
      <dc:date>2015-11-13T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected filtering behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946757#M957938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad I could help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 12:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-filtering-behaviour/m-p/946757#M957938</guid>
      <dc:creator>mvanlutterveld</dc:creator>
      <dc:date>2015-11-13T12:19:23Z</dc:date>
    </item>
  </channel>
</rss>

