<?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 Set analysis vs. IntervalMatch function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-vs-IntervalMatch-function/m-p/714019#M256977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folk!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather complex datamodel where each entity has a VALID_FROM and VALID_TO (no overlapping periods) field and share a common KEY_FIELD which is the PARTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task which i have to accomplish is to reduce the data on the VALID_FROM and VALID_TO field for each entity and what it makes more difficult is that the entity data should be shown not in different rows but near each other (like a cross product and reduce it through the filter VALID_FROM and VALID_TO):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Table Partner&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;PARTNO &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PARTNAME&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PART_VALID_FROM&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PART_VALID_TO&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JAMES&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01.01.2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15.01.2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;JAMES ARTUR&lt;/TD&gt;&lt;TD&gt;15.01.2010&lt;/TD&gt;&lt;TD&gt;31.01.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Table Address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADRESSNO&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADDR_STREET&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PARTNO&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADDR_VALID_FROM&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADDR_VALID_TO&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;helvetia 5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01.01.2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.01.2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;londonstreet 10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;05.01.2010&lt;/TD&gt;&lt;TD&gt;31.12.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview GUI Filter and chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter: FROM: 06.01.2010&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;nbsp;&amp;nbsp;&amp;nbsp; TO: 10.01.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart (Straight Table):&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Partner No.&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adressno&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Street&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;James&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;londonstrett 10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; INTERVALMATCH function for each entity, to create a calendartable, where i extract from each entity involved the days from the FROM - TO interval and link them togheter with a KEY_ENTITY_FROM_TO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) On the GUI create a FROM - TO filter (two variables vStartDate and vEndDate) which filters the DATELIST from new created ENTITY_CALENDAR for each entity (i used the variable triggers to do that). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution works but is too RAM expensive and slow. You can imagine, every entity table is linked together with a calendar table, where i extract&amp;nbsp; the single days of each period (FROM - TO). It is absolutely not a practicable solutions. I have a lot of entities involved as u can see from the datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question, can I use set analysis or an expression to achieve what i want without using intervalmatch function?&lt;/P&gt;&lt;P&gt;The requirements are to use a FROM - TO filter and accordingly to this filter reduce the data of each entity. Important as u see from the example above the data of each entity should be shown near each other.&lt;/P&gt;&lt;P&gt;I wonder if there is the possibility to use set analysis to reduce the data.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the Datamodel with all entities involved (the calendars for each entity are missing here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IMG_20140619_170015.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/60890_IMG_20140619_170015.jpg" style="width: 620px; height: 501px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 19:10:01 GMT</pubDate>
    <dc:creator>pamaxeed</dc:creator>
    <dc:date>2014-06-19T19:10:01Z</dc:date>
    <item>
      <title>Set analysis vs. IntervalMatch function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-vs-IntervalMatch-function/m-p/714019#M256977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folk!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather complex datamodel where each entity has a VALID_FROM and VALID_TO (no overlapping periods) field and share a common KEY_FIELD which is the PARTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task which i have to accomplish is to reduce the data on the VALID_FROM and VALID_TO field for each entity and what it makes more difficult is that the entity data should be shown not in different rows but near each other (like a cross product and reduce it through the filter VALID_FROM and VALID_TO):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Table Partner&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;PARTNO &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PARTNAME&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PART_VALID_FROM&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PART_VALID_TO&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JAMES&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01.01.2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15.01.2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;JAMES ARTUR&lt;/TD&gt;&lt;TD&gt;15.01.2010&lt;/TD&gt;&lt;TD&gt;31.01.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Table Address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADRESSNO&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADDR_STREET&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;PARTNO&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADDR_VALID_FROM&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ADDR_VALID_TO&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;helvetia 5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01.01.2010&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.01.2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;londonstreet 10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;05.01.2010&lt;/TD&gt;&lt;TD&gt;31.12.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview GUI Filter and chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter: FROM: 06.01.2010&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;nbsp;&amp;nbsp;&amp;nbsp; TO: 10.01.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart (Straight Table):&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Partner No.&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Adressno&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Street&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;James&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;londonstrett 10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; INTERVALMATCH function for each entity, to create a calendartable, where i extract from each entity involved the days from the FROM - TO interval and link them togheter with a KEY_ENTITY_FROM_TO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) On the GUI create a FROM - TO filter (two variables vStartDate and vEndDate) which filters the DATELIST from new created ENTITY_CALENDAR for each entity (i used the variable triggers to do that). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution works but is too RAM expensive and slow. You can imagine, every entity table is linked together with a calendar table, where i extract&amp;nbsp; the single days of each period (FROM - TO). It is absolutely not a practicable solutions. I have a lot of entities involved as u can see from the datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question, can I use set analysis or an expression to achieve what i want without using intervalmatch function?&lt;/P&gt;&lt;P&gt;The requirements are to use a FROM - TO filter and accordingly to this filter reduce the data of each entity. Important as u see from the example above the data of each entity should be shown near each other.&lt;/P&gt;&lt;P&gt;I wonder if there is the possibility to use set analysis to reduce the data.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the Datamodel with all entities involved (the calendars for each entity are missing here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IMG_20140619_170015.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/60890_IMG_20140619_170015.jpg" style="width: 620px; height: 501px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 19:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-vs-IntervalMatch-function/m-p/714019#M256977</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2014-06-19T19:10:01Z</dc:date>
    </item>
  </channel>
</rss>

