<?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: INTERVALMATCH AND YOY COMPARISON in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/INTERVALMATCH-AND-YOY-COMPARISON/m-p/1761918#M591618</link>
    <description>&lt;P&gt;Hi Dknyalan,&lt;/P&gt;&lt;P&gt;It seems that the YOY analysis in your case need only a Set Analysis over the SALES table (fields SALESDATE, CUSTOMERID and REVENUE), doesn't it?&lt;/P&gt;&lt;P&gt;If so you should not necessarily create 'fake' records in the&amp;nbsp;&lt;SPAN&gt;MANAGEMENT table...&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 13:46:55 GMT</pubDate>
    <dc:creator>Marcos_Ferreira_dos_Santos</dc:creator>
    <dc:date>2020-11-16T13:46:55Z</dc:date>
    <item>
      <title>INTERVALMATCH AND YOY COMPARISON</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVALMATCH-AND-YOY-COMPARISON/m-p/1761587#M591617</link>
      <description>&lt;P&gt;I have two tables.&lt;/P&gt;&lt;P&gt;Sales and Management&lt;/P&gt;&lt;P&gt;SALES:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;SALESDATE, CUSTOMERID, QUANTITY, MODEL, REVENUE, ALLOCTYPE&lt;BR /&gt;1/2/2020, A1, 1, MODA, 100, DYNAMIC&lt;BR /&gt;1/4/2020, A1, 1, MODA, 200, STATIC&lt;BR /&gt;1/7/2020, A1, 2, MODB, 300, STATIC&lt;BR /&gt;1/3/2019, A1, 5, MODC, 1000, STATIC&lt;BR /&gt;1/3/2020, A2, 1, MODA, 500, DYNAMIC&lt;BR /&gt;1/6/2019, A2, 4, MODB, 600, DYNAMIC&lt;BR /&gt;1/4/2020, A2, 10, MODC, 2000, STATIC&lt;BR /&gt;1/5/2020, A3, 50, MODA, 5000, STATIC&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;MANAGEMENT:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;MANAGER, CUSTOMERID, ACCOUNTNAME, STARTDATE, ENDDATE&lt;BR /&gt;ALAN, A1, A1INC, 1/1/2020, 30/5/2020&lt;BR /&gt;FRED, A1, A1INC, 1/6/2020, 31/12/2020&lt;BR /&gt;ALAN, A2, A2INC, 1/1/2020, 30/5/2020&lt;BR /&gt;MARK, A3, A3INC, 1/1/2020, 31/12/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I use INTERVALMATCH to join the two tables on SALESDATE and CUSTOMERID, which then lets me show the data in a pivot table.&amp;nbsp; This shows MANAGER, CUSTOMERID, ACCOUNTNAME, STARTDATE, ENDDATE and REVENUE (During the management period).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// USING INTERVALMATCH AND KEY&lt;BR /&gt;JOIN (SALES)&lt;BR /&gt;INTERVALMATCH (SALESDATE, CUSTOMERID)&lt;BR /&gt;LOAD STARTDATE, ENDDATE, CUSTOMERID&lt;BR /&gt;RESIDENT MANAGEMENT;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;//USING INTERVAL MATCH AND LEFT JOIN&lt;BR /&gt;FINAL_TABLE:&lt;BR /&gt;INTERVALMATCH (SALESDATE) LEFT JOIN LOAD STARTDATE, ENDDATE RESIDENT MANAGEMENT;&lt;BR /&gt;LEFT JOIN (SALES) LOAD DISTINCT * RESIDENT MANAGEMENT;&lt;BR /&gt;DROP TABLE MANAGEMENT;&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;I would like to show YOY performance, to see if the manager has increased sales compared to the year before.&lt;/P&gt;&lt;P&gt;I think I can just reload the MANAGEMENT table, subtract a year from the STARTDATE, ENDDATE and INTERVALMATCH/JOIN the result again.&amp;nbsp; Is this the right way?&amp;nbsp; It seems a bit long winded and in my "real" data I have &amp;gt; 100,000 sales records.&lt;/P&gt;&lt;P&gt;I have attached and example QVW.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVALMATCH-AND-YOY-COMPARISON/m-p/1761587#M591617</guid>
      <dc:creator>Alan_Tilney</dc:creator>
      <dc:date>2024-11-16T17:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: INTERVALMATCH AND YOY COMPARISON</title>
      <link>https://community.qlik.com/t5/QlikView/INTERVALMATCH-AND-YOY-COMPARISON/m-p/1761918#M591618</link>
      <description>&lt;P&gt;Hi Dknyalan,&lt;/P&gt;&lt;P&gt;It seems that the YOY analysis in your case need only a Set Analysis over the SALES table (fields SALESDATE, CUSTOMERID and REVENUE), doesn't it?&lt;/P&gt;&lt;P&gt;If so you should not necessarily create 'fake' records in the&amp;nbsp;&lt;SPAN&gt;MANAGEMENT table...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 13:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/INTERVALMATCH-AND-YOY-COMPARISON/m-p/1761918#M591618</guid>
      <dc:creator>Marcos_Ferreira_dos_Santos</dc:creator>
      <dc:date>2020-11-16T13:46:55Z</dc:date>
    </item>
  </channel>
</rss>

