<?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 Problem with missing data generation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-missing-data-generation/m-p/1649077#M48393</link>
    <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="MessageSubjectIcons "&gt;&lt;DIV class="lia-message-subject"&gt;Intervalmatch problem&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&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;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:37:52 GMT</pubDate>
    <dc:creator>Ilya_Bobrov</dc:creator>
    <dc:date>2024-11-16T19:37:52Z</dc:date>
    <item>
      <title>Problem with missing data generation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-missing-data-generation/m-p/1649077#M48393</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="MessageSubjectIcons "&gt;&lt;DIV class="lia-message-subject"&gt;Intervalmatch problem&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&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;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-missing-data-generation/m-p/1649077#M48393</guid>
      <dc:creator>Ilya_Bobrov</dc:creator>
      <dc:date>2024-11-16T19:37:52Z</dc:date>
    </item>
  </channel>
</rss>

