<?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 problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Intervalmatch-problem/m-p/1665481#M50094</link>
    <description>&lt;P&gt;You need to add&amp;nbsp;&lt;STRONG&gt;distinct&lt;/STRONG&gt; in the load of &lt;STRONG&gt;tr&lt;/STRONG&gt; because org, mindate and maxdate are duplicated on your TransactionTable.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 16:16:52 GMT</pubDate>
    <dc:creator>RicardodelaRosa</dc:creator>
    <dc:date>2020-01-14T16:16:52Z</dc:date>
    <item>
      <title>Intervalmatch problem</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-problem/m-p/1649072#M48391</link>
      <description>&lt;P&gt;Good day!&lt;BR /&gt;There is a problem using the intervalmatch function.&lt;BR /&gt;In short: Having executed the script below,&lt;BR /&gt;despite the fact that the correct values ​​are displayed in the Data manager,&lt;BR /&gt;when you try to use the sum () function in the visualization,&lt;BR /&gt;all values ​​increase exactly 4 times.&lt;BR /&gt;Please tell me what is wrong with the script?&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;TransactionTable:&lt;BR /&gt;load * inline [org,mindate,maxdate,Date1,val&lt;BR /&gt;'rome','2019-01-01','2019-01-30','2019-01-20',200&lt;BR /&gt;'rome','2019-01-01','2019-01-30','2019-01-30',200&lt;BR /&gt;'igi','2019-01-01','2019-01-20','2019-01-10',300&lt;BR /&gt;'igi','2019-01-01','2019-01-20','2019-01-15',300];&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Tr:&lt;BR /&gt;load org,mindate,maxdate&lt;BR /&gt;resident TransactionTable;&lt;BR /&gt;drop table TransactionTable;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;BR /&gt;Load Min(mindate) as MinDate, Max(maxdate) as MaxDate resident Tr;&lt;BR /&gt;Let vMinDate = Peek('MinDate',-1,'MinMaxDate');&lt;BR /&gt;Let vMaxDate = Peek('MaxDate',-1,'MinMaxDate')+1;&lt;BR /&gt;Drop Table MinMaxDate;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;Load Date($(vMinDate) + RecNo() -1) AS Date&lt;BR /&gt;Autogenerate vMaxDate-vMinDate;&lt;BR /&gt;inner join (Tr) intervalmatch (Date) LOAD mindate,maxdate&lt;BR /&gt;resident Tr;&lt;BR /&gt;drop table MasterCalendar;&lt;BR /&gt;NoConcatenate&lt;BR /&gt;result:&lt;BR /&gt;Load org&amp;amp;Date as Key,*&lt;BR /&gt;resident Tr;&lt;BR /&gt;drop table Tr;&lt;BR /&gt;left join&lt;BR /&gt;dat:&lt;BR /&gt;load org1&amp;amp;Date1 as Key,val1;&lt;BR /&gt;load * inline [org1,Date1,val1&lt;BR /&gt;'rome','1/20/2019',200&lt;BR /&gt;'rome','1/30/2019',200&lt;BR /&gt;'igi','1/10/2019',300&lt;BR /&gt;'igi','1/15/2019',300];&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-problem/m-p/1649072#M48391</guid>
      <dc:creator>Ilya_Bobrov</dc:creator>
      <dc:date>2024-11-16T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch problem</title>
      <link>https://community.qlik.com/t5/App-Development/Intervalmatch-problem/m-p/1665481#M50094</link>
      <description>&lt;P&gt;You need to add&amp;nbsp;&lt;STRONG&gt;distinct&lt;/STRONG&gt; in the load of &lt;STRONG&gt;tr&lt;/STRONG&gt; because org, mindate and maxdate are duplicated on your TransactionTable.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Intervalmatch-problem/m-p/1665481#M50094</guid>
      <dc:creator>RicardodelaRosa</dc:creator>
      <dc:date>2020-01-14T16:16:52Z</dc:date>
    </item>
  </channel>
</rss>

