<?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 intervalmatch vs. applymap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/intervalmatch-vs-applymap/m-p/141976#M21550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find using applymap over intervalmatch function better.As we know intervalmatch creates couple of tables (includes a synthetic table-which we should try to avoid).&lt;/P&gt;&lt;P&gt;As I am not very experienced QV professional,just wondering if you can always replace intervalmatch with applymap.(unless we want to display start,end of categories on sheet objects).&lt;/P&gt;&lt;P&gt;//if you have fewer buckets,use inline wizard otherwise dump your data onto an excel file.&lt;BR /&gt;//Tenure&lt;BR /&gt;TenureCategoryfn:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt; Tenure, TenureCategory&lt;BR /&gt; 0, New&lt;BR /&gt; 1, 1 to 3&lt;BR /&gt; 2, 1 to 3&lt;BR /&gt; 3, 3 to 5&lt;BR /&gt; 4, 3 to 5&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;EmployeeData:&lt;BR /&gt;Load&lt;BR /&gt; // ..other fields,&lt;BR /&gt; applymap('TenureCategoryfn',age(termdate,joindate),'&amp;gt;5') as TenureCategory&lt;BR /&gt;from [.\datasource\HR Data.txt]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;////Tenure - commented out&lt;BR /&gt;//TenureCategoryfn:&lt;BR /&gt;//LOAD * INLINE [&lt;BR /&gt;// Start, End, AgeCategory&lt;BR /&gt;// 0, 0, New&lt;BR /&gt;// 1, 2, 1 to 3&lt;BR /&gt;// 3, 4, 3 to 5&lt;BR /&gt;// 5, 500, &amp;gt;5&lt;BR /&gt;//];&lt;BR /&gt;//intervalmatch(Tenure) load Start,End resident TenureCategoryfn;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2009 00:42:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-22T00:42:07Z</dc:date>
    <item>
      <title>intervalmatch vs. applymap</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch-vs-applymap/m-p/141976#M21550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find using applymap over intervalmatch function better.As we know intervalmatch creates couple of tables (includes a synthetic table-which we should try to avoid).&lt;/P&gt;&lt;P&gt;As I am not very experienced QV professional,just wondering if you can always replace intervalmatch with applymap.(unless we want to display start,end of categories on sheet objects).&lt;/P&gt;&lt;P&gt;//if you have fewer buckets,use inline wizard otherwise dump your data onto an excel file.&lt;BR /&gt;//Tenure&lt;BR /&gt;TenureCategoryfn:&lt;BR /&gt;mapping LOAD * INLINE [&lt;BR /&gt; Tenure, TenureCategory&lt;BR /&gt; 0, New&lt;BR /&gt; 1, 1 to 3&lt;BR /&gt; 2, 1 to 3&lt;BR /&gt; 3, 3 to 5&lt;BR /&gt; 4, 3 to 5&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;EmployeeData:&lt;BR /&gt;Load&lt;BR /&gt; // ..other fields,&lt;BR /&gt; applymap('TenureCategoryfn',age(termdate,joindate),'&amp;gt;5') as TenureCategory&lt;BR /&gt;from [.\datasource\HR Data.txt]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;////Tenure - commented out&lt;BR /&gt;//TenureCategoryfn:&lt;BR /&gt;//LOAD * INLINE [&lt;BR /&gt;// Start, End, AgeCategory&lt;BR /&gt;// 0, 0, New&lt;BR /&gt;// 1, 2, 1 to 3&lt;BR /&gt;// 3, 4, 3 to 5&lt;BR /&gt;// 5, 500, &amp;gt;5&lt;BR /&gt;//];&lt;BR /&gt;//intervalmatch(Tenure) load Start,End resident TenureCategoryfn;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 00:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch-vs-applymap/m-p/141976#M21550</guid>
      <dc:creator />
      <dc:date>2009-04-22T00:42:07Z</dc:date>
    </item>
    <item>
      <title>intervalmatch vs. applymap</title>
      <link>https://community.qlik.com/t5/QlikView/intervalmatch-vs-applymap/m-p/141977#M21551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Raj wrote:&lt;BR /&gt;includes a synthetic table-which we should try to avoid).&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can eliminate the extra table and synthetic key by usng JOIN in the IntervalMatch. For example:&lt;/P&gt;&lt;P&gt;JOIN (mytab) IntervalMatch (Date) LOAD RangeStart, RangeEnd&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Raj wrote:&lt;BR /&gt;...,just wondering if you can always replace intervalmatch with applymap.(unless we want to display start,end of categories on sheet objects).&lt;BR style="CLEAR:both;" /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;No, they are not interchangeable. applyMap creates a 1:1 relationship. intervalMatch creates a 1:n relationship.&lt;/P&gt;&lt;P&gt;Your example above correctly uses mapping. IntervalMatch would be unnecessary unless Tenure could map into multiple Categories.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 02:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/intervalmatch-vs-applymap/m-p/141977#M21551</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-04-22T02:08:37Z</dc:date>
    </item>
  </channel>
</rss>

