<?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 Adding complexity to Intervalmatch function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240235#M90781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help John, I'll let you know how I get on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 02:38:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-19T02:38:58Z</dc:date>
    <item>
      <title>Adding complexity to Intervalmatch function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240233#M90779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am building a P&amp;amp;L using a format spreadsheet.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 171px;" width="391"&gt;&lt;COL span="3" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt; width: 48pt;" width="64"&gt;ReportRowPL&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;Start2_4&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;End2_4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt;"&gt;Operating Costs&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;400000&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;559999&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;Mine Administration&lt;/TD&gt;&lt;TD align="right"&gt;400000&lt;/TD&gt;&lt;TD align="right"&gt;409999&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;Mining&lt;/TD&gt;&lt;TD align="right"&gt;410000&lt;/TD&gt;&lt;TD align="right"&gt;419999&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;Ore Haulage&lt;/TD&gt;&lt;TD align="right"&gt;500000&lt;/TD&gt;&lt;TD align="right"&gt;509999&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;Ore Processing&lt;/TD&gt;&lt;TD align="right"&gt;555567&lt;/TD&gt;&lt;TD align="right"&gt;555567&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;Processing Penalty&lt;/TD&gt;&lt;TD align="right"&gt;5569&lt;/TD&gt;&lt;TD align="right"&gt;5569&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an intervalmatch to join the Report Row's back to the 'GLSegment2_4' (segment 2 and 4 of the GL account code).&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;match:&lt;BR /&gt;Intervalmatch (GLSegment2_4)&lt;BR /&gt; Load&lt;BR /&gt; Start2_4,&lt;BR /&gt; End2_4&lt;BR /&gt;resident PLRow;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;My problem is that not all of the report row's are categorised on segment 2 and 4 of the account code.&lt;/P&gt;&lt;P&gt;In the spreadsheet above, you will see that 'Processing Penalty' has only 4 characters. It needs to exist for all segment 2 combinations where the segment 4 matches to 5569.&lt;/P&gt;&lt;P&gt;Ideally Qlikview would read * as an automatic wildcard and as a result I could use **5569 and **5569 as a wildcard intervalmatch, but clearly this is not the case. Is there a method I can use which achieves the same result with minimal script or spreadsheet input complexity?&lt;/P&gt;&lt;P&gt;I'd love to hear your thoughts on how I can solve this problem.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 109px;" width="64"&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2010 08:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240233#M90779</guid>
      <dc:creator />
      <dc:date>2010-02-17T08:22:32Z</dc:date>
    </item>
    <item>
      <title>Adding complexity to Intervalmatch function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240234#M90780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a basic outline, here's how I might approach it.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Break your report row table into two tables. One table with only ranges, one mapping table with "match last 4".&lt;/LI&gt;&lt;LI&gt;Intervalmatch with the range table to establish ReportRowPL1.&lt;/LI&gt;&lt;LI&gt;Left join to yourself, adding field applymap('match last 4',right(GeneralLedger,4)) as ReportRowPL2.&lt;/LI&gt;&lt;LI&gt;Left join to yourself, adding field if(len(trim(ReportRowPL1)),ReportRowPL1,ReportRowPL2) as ReportRowPL.&lt;/LI&gt;&lt;LI&gt;Drop all the fields and tables you no longer need.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That's assuming there's no specific sequence to the rows in the report row table.&lt;/P&gt;&lt;P&gt;(EDIT: Ah, I seem to have missed that a general ledger code can have more than one report row, in which case you want ALL of the report rows that match. So a 405569 general ledger code should be in Operating Costs, Mine Administration, AND Processing Penalty. I'm not picking up the Processing Penalty in the rough outline above.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 01:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240234#M90780</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-18T01:23:39Z</dc:date>
    </item>
    <item>
      <title>Adding complexity to Intervalmatch function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240235#M90781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help John, I'll let you know how I get on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 02:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240235#M90781</guid>
      <dc:creator />
      <dc:date>2010-02-19T02:38:58Z</dc:date>
    </item>
    <item>
      <title>Adding complexity to Intervalmatch function</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240236#M90782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;I facing same issues that your facing. Can you please help me out if you can please.&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/31125.aspx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 11:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-complexity-to-Intervalmatch-function/m-p/240236#M90782</guid>
      <dc:creator />
      <dc:date>2010-07-05T11:10:02Z</dc:date>
    </item>
  </channel>
</rss>

