<?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: nested IntervalMatch? Is it even possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494764#M483036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you interpret the ranges using radix 36 (see &lt;A class="loading" href="http://en.wikipedia.org/wiki/Base_36"&gt;http://en.wikipedia.org/wiki/Base_36&lt;/A&gt;), you can use intervalmatch. However, you need several intervalmatches joined. The attached script should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One complication is how to interpret a single letter. I have in my solution made all "numbers" 4 characters long, i.e. I have appended several zeros after the single letter, thus converting 'F' to 'F000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jul 2013 13:12:33 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-07-18T13:12:33Z</dc:date>
    <item>
      <title>nested IntervalMatch? Is it even possible?</title>
      <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494763#M483035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Basically I have 3 ranges of organisation structure levels for each user:&lt;/P&gt;&lt;P&gt;UserJoe&lt;/P&gt;&lt;P&gt;Org1 = From AAAA To CCCC&lt;/P&gt;&lt;P&gt;Org2 = From FFFF To KKKK&lt;/P&gt;&lt;P&gt;Org3 = From XXXX To ZZZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserMary&lt;/P&gt;&lt;P&gt;Org1 = From BBBB To CCCC&lt;/P&gt;&lt;P&gt;Org2 = From LLLL To OOOO&lt;/P&gt;&lt;P&gt;Org3 = From XXXX To ZZZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now each record has:&lt;/P&gt;&lt;P&gt;Record&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Org1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Org2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Org3&lt;/P&gt;&lt;P&gt;1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Z&lt;/P&gt;&lt;P&gt;1002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help in finding a way to link the Users to the Records where only they have the permission, ie, the record falls in their organisation structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas please? I thought of the IntervalMatch and then realised I might need to nest the 3 levels together but I dont know the syntax for it and cannot find it online &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Melody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 08:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494763#M483035</guid>
      <dc:creator />
      <dc:date>2013-07-18T08:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: nested IntervalMatch? Is it even possible?</title>
      <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494764#M483036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you interpret the ranges using radix 36 (see &lt;A class="loading" href="http://en.wikipedia.org/wiki/Base_36"&gt;http://en.wikipedia.org/wiki/Base_36&lt;/A&gt;), you can use intervalmatch. However, you need several intervalmatches joined. The attached script should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One complication is how to interpret a single letter. I have in my solution made all "numbers" 4 characters long, i.e. I have appended several zeros after the single letter, thus converting 'F' to 'F000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 13:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494764#M483036</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-07-18T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: nested IntervalMatch? Is it even possible?</title>
      <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494765#M483037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million, Henric!!&lt;/P&gt;&lt;P&gt;That really gave us a massive leg up &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However we still have one unresolved issue I did not outline correctly before ... A record should only be correct if the org levels IN ORDER OF 1 - 2 - 3 are satisfied.&lt;/P&gt;&lt;P&gt;So if both 1001 and 1002 satisfy level 1, but only 1001 satisfies level 2, then only 1001 should show up in my data set for that user &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I need to create something on the lines of this algorithm:&lt;/P&gt;&lt;P&gt;if Org1 IntervalMatch returns True then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if Org2 IntervalMatch returns True then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if Org3 IntervalMatch returns True then&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; DISPLAY CLAIM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realise that what we are trying to achieve is complicated and we really appreciate your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Melody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I attached the Sample Databse we are trying to use &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494765#M483037</guid>
      <dc:creator />
      <dc:date>2013-07-19T03:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: nested IntervalMatch? Is it even possible?</title>
      <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494766#M483038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure this is the most optimal solution, but I think it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 12:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494766#M483038</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-07-19T12:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: nested IntervalMatch? Is it even possible?</title>
      <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494767#M483039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Henric ... you have been wonderful and helped us so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine for us and shall be adopting it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Melody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 00:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494767#M483039</guid>
      <dc:creator />
      <dc:date>2013-07-22T00:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: nested IntervalMatch? Is it even possible?</title>
      <link>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494768#M483040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the side, I am also trying to now join the THIRD table (PolicyGroup), but somehow as soon as I add the table everything goes haywire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now spent the last 7 hours trying to find a way to join the UserName and Policy_Group in this table successfully without disturbing the already perfect logic there, but with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is in the Sample Db I posted earlier &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate your help!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Melody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 07:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-IntervalMatch-Is-it-even-possible/m-p/494768#M483040</guid>
      <dc:creator />
      <dc:date>2013-07-22T07:38:28Z</dc:date>
    </item>
  </channel>
</rss>

