<?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() for 2 different facts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807516#M65732</link>
    <description>&lt;P&gt;I am not sure if I totally understand the requirements but just an idea, what if you do interval match twice by making two bridge tables one with intervalmatch(#Number1) and Intervalmatch(#Number2). I know it would create multiple fact rows out of one single IntervalTable rows which may or may not be impacting other things. You may do resident load further to create type fields in the newly created bridge tables.&lt;/P&gt;&lt;P&gt;I know lots of if and but, thats all I got as of now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 22:41:45 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2021-05-12T22:41:45Z</dc:date>
    <item>
      <title>IntervalMatch() for 2 different facts</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807482#M65727</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I have 2 numbers in my fact table that I just need to compare against an intervals table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IntervalTable:
LOAD
"From",
"To",
"Class"
FROM MyIntervalsDataSource;


FactTable:
LOAD
...
...
#Number1
#Number2
From IntervalTable;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just did this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BridgeTable:
IntervalMatch(#Number1)
LOAD
"From",
"To"
RESIDENT IntervalTable;&lt;/LI-CODE&gt;&lt;P&gt;But now, how do I do the same to #Number2?&lt;/P&gt;&lt;P&gt;And I need to differentiate between my #Number1 and #Number2 in the front-end - that is, I need to add a Type field that tells me that when I'm seeing #Number1, I'm actually seeing a certain type of number, and the same for #Number2. Otherwise, they are just numbers.&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807482#M65727</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2021-05-12T19:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch() for 2 different facts</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807516#M65732</link>
      <description>&lt;P&gt;I am not sure if I totally understand the requirements but just an idea, what if you do interval match twice by making two bridge tables one with intervalmatch(#Number1) and Intervalmatch(#Number2). I know it would create multiple fact rows out of one single IntervalTable rows which may or may not be impacting other things. You may do resident load further to create type fields in the newly created bridge tables.&lt;/P&gt;&lt;P&gt;I know lots of if and but, thats all I got as of now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 22:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807516#M65732</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2021-05-12T22:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch() for 2 different facts</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807757#M65757</link>
      <description>&lt;P&gt;Hi Digvijay,&lt;/P&gt;&lt;P&gt;Thanks for your input. That was actually what I did, but I'm not getting results:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IntervalTable:
LOAD 
"From",
"To",
"Class"
FROM MyIntervalsDataSource;

FactTable:
LOAD
	...
	...
	#Number1,
	#Number2,
       [#Number1]&amp;amp;'|'&amp;amp;[#Number2] AS %ID_Interval
From IntervalTable;

BridgeTable1:
IntervalMatch(#Number1)
LOAD  
"From",
"To"
RESIDENT IntervalTable;

NoConcatenate
BridgeTable2:
IntervalMatch(#Number2)
LOAD  
"From",
"To"
RESIDENT IntervalTable;

NoConcatenate
BridgeTableTmp:
LOAD *
,'Issue'					AS Interval_Type
RESIDENT BridgeTable1;

CONCATENATE(BridgeTableTmp)
LOAD *
,'Payment'					AS Interval_Type
RESIDENT BridgeTable2;

DROP TABLE BridgeTable1;
DROP TABLE BridgeTable2;

BridgeTable:
LOAD 
    [#Number1]&amp;amp;'|'&amp;amp;[#Number2] AS    %ID_Interval,
    Interval_Type,
    From,
    To
RESIDENT BridgeTableTmp;
DROP TABLE BridgeTableTmp;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not linking anything.&lt;/P&gt;&lt;P&gt;My requirement is simple: I just need to locate my two numbers in a range of intervals (0-30, 31-60,..) &lt;STRONG&gt;so I can use the buckets as a dimension in the front-end.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Anything else comes to your mind?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 14:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1807757#M65757</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2021-05-13T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch() for 2 different facts</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1808207#M65813</link>
      <description>&lt;P&gt;I think I would do the following:&lt;/P&gt;&lt;P&gt;m: mapping load (From + iterno() -1), Class&lt;BR /&gt;from Interval while (From + iterno() -1) &amp;lt;= Ende;&lt;/P&gt;&lt;P&gt;facts: load *,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; applymap('m', #Number1, '#NV') as Class1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;applymap('m', #Number2, '#NV') as Class2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from facts;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 10:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1808207#M65813</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-05-16T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch() for 2 different facts</title>
      <link>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1809130#M65909</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IntervalMatch-for-2-different-facts/m-p/1809130#M65909</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2021-05-19T15:30:24Z</dc:date>
    </item>
  </channel>
</rss>

