<?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: Manipulating the result of intervalMatch() in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162632#M378865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 20:29:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-14T20:29:18Z</dc:date>
    <item>
      <title>Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162626#M378859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing intervalmatch from the post &lt;A href="https://community.qlik.com/thread/225121"&gt;Counting the number of occurrences in between dates&lt;/A&gt; but I face a problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intervalmatch is working ok in the application, but I would like to do some calculation with the results. Acctually, I would like to have the same table of results (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TABLE_OUT&lt;/SPAN&gt;) from previous question in LOAD script. Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 18:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162626#M378859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T18:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162627#M378860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share what you have thus far?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 18:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162627#M378860</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T18:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162628#M378861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;share us your QVW file with sample data . And tell us what output you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 19:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162628#M378861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T19:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162629#M378862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, see below what I have done so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_P:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, REGION, Product, Launch Date, START DATE, END DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, A, pineapple, 10/02/2015, 10/02/2015, 09/02/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, B, pineapple, 10/02/2016, 10/02/2016, 09/02/2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, C, pineapple, 12/02/2018, 12/02/2018, 11/02/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, A, apple, 10/02/2013, 10/02/2013, 09/02/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, B, apple, 15/05/2016, 15/05/2016, 14/05/2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6, C, apple, 16/05/2016, 16/05/2016, 15/05/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, A, pineapple, 05/05/2015, , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, B, apple, 25/02/2018, , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, C, Mango, 22/05/2017, , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, A, Mango, 26/05/2020, , &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_C:&lt;/P&gt;&lt;P&gt;Load REGION as REG_A, &lt;/P&gt;&lt;P&gt;&amp;nbsp; count( DISTINCT ID) as QTY_PROD,&lt;/P&gt;&lt;P&gt;&amp;nbsp; YEAR([Launch Date]) as YR_Launch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;resident TABLE_P group by&amp;nbsp; YEAR([Launch Date]), REGION; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//OUTSIDE_COUNT&lt;/P&gt;&lt;P&gt;TABLE_COUNT:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Previous(REG_A)=REG_A, if(len(peek(QTY_ACC))&amp;gt;0, peek(QTY_ACC), Previous(QTY_PROD)) + QTY_PROD) as QTY_ACC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TABLE_C Order by REG_A, YR_Launch;&lt;/P&gt;&lt;P&gt;drop Table TABLE_C;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR_STT, NUMBER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015, 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017, 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018, 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2019, 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2020, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2021, 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2022, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2023, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2024, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2025, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2026, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2027, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2028, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2029, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2030, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2031, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//INSIDE_COUNT&lt;/P&gt;&lt;P&gt;TABLE_INTERVAL:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; year([START DATE])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as INTERVAL_START,&lt;/P&gt;&lt;P&gt;&amp;nbsp; year([END DATE]) as INTERVAL_END,&lt;/P&gt;&lt;P&gt;&amp;nbsp; REGION as REG_A,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TABLE_P;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;IntervalMatch(YEAR_STT) load&lt;/P&gt;&lt;P&gt;INTERVAL_START, INTERVAL_END&lt;/P&gt;&lt;P&gt;Resident TABLE_INTERVAL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 19:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162629#M378862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T19:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162630#M378863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSIDE_COUNT and ALL_COUNT need to be from the script or front end charts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 19:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162630#M378863</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T19:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162631#M378864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know how to attach a file. I was struggled in doing that in load script to perform better, but I did in chart expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to share the results.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 19:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162631#M378864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T19:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the result of intervalMatch() in script</title>
      <link>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162632#M378865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 20:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Manipulating-the-result-of-intervalMatch-in-script/m-p/1162632#M378865</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T20:29:18Z</dc:date>
    </item>
  </channel>
</rss>

