<?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 How to create intervalmatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-intervalmatch/m-p/1187319#M626452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a intervalmatch for employee Yearly Sales Target. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have created Inline Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval_Sales_Target_Percentage_Grade:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Year,Min_Sales ,Max_Sales,Grade&lt;/P&gt;&lt;P&gt;2015,85.01,95, Average&lt;/P&gt;&lt;P&gt;2015,95.01,100,Good&lt;/P&gt;&lt;P&gt;2015,100.01,999.9,Excellent&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch:&lt;/P&gt;&lt;P&gt;IntervalMatch (Sales)&lt;/P&gt;&lt;P&gt;Load distinct Min_Sales, Max_Sales &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Interval_Sales_Target_Percentage_Grade&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is... i think the intervalmatch should not be "Sales". My orders and sales_target table is 2 diff table. But i think i need to create an expression, such as (total_sales/target)*100 as percentage_achieved. Then in my intervalmatch table, i should interval match(percentage_achieved).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both tables rite now are linked with orders_key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="target.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137827_target.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Sep 2016 21:30:52 GMT</pubDate>
    <dc:creator>jim_chan</dc:creator>
    <dc:date>2016-09-18T21:30:52Z</dc:date>
    <item>
      <title>How to create intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervalmatch/m-p/1187319#M626452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a intervalmatch for employee Yearly Sales Target. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have created Inline Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval_Sales_Target_Percentage_Grade:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Year,Min_Sales ,Max_Sales,Grade&lt;/P&gt;&lt;P&gt;2015,85.01,95, Average&lt;/P&gt;&lt;P&gt;2015,95.01,100,Good&lt;/P&gt;&lt;P&gt;2015,100.01,999.9,Excellent&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch:&lt;/P&gt;&lt;P&gt;IntervalMatch (Sales)&lt;/P&gt;&lt;P&gt;Load distinct Min_Sales, Max_Sales &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Interval_Sales_Target_Percentage_Grade&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is... i think the intervalmatch should not be "Sales". My orders and sales_target table is 2 diff table. But i think i need to create an expression, such as (total_sales/target)*100 as percentage_achieved. Then in my intervalmatch table, i should interval match(percentage_achieved).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both tables rite now are linked with orders_key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="target.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137827_target.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 21:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervalmatch/m-p/1187319#M626452</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2016-09-18T21:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-intervalmatch/m-p/1187320#M626453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a mapping table approach (using MAPPING LOAD prefix and ApplyMap() ) or a JOIN to create a single table with Total_Sales and Target values. Then do a resident LOAD to create your percentage column and use IntervalMatch() to match against your grades (maybe using year as key field in the IntervalMatch() extended syntax?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 21:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-intervalmatch/m-p/1187320#M626453</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-18T21:36:35Z</dc:date>
    </item>
  </channel>
</rss>

