<?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: Define ranges within a numeric field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314969#M618411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had in fact been looking at class, but it doesn't quite get me that neat string with the €- sign and all that, does it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above that, below € 100 K the ranges differ (requirement from the business).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2017 13:16:08 GMT</pubDate>
    <dc:creator>hansdevr</dc:creator>
    <dc:date>2017-04-25T13:16:08Z</dc:date>
    <item>
      <title>Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314967#M618409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO there has GOT to be a more clever way of doing this in stead of a nested 'if':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161164_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone here found a more elegant trick to accomplish the same? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314967#M618409</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2017-04-25T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314968#M618410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Class maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/class.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/class.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314968#M618410</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-04-25T13:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314969#M618411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had in fact been looking at class, but it doesn't quite get me that neat string with the €- sign and all that, does it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above that, below € 100 K the ranges differ (requirement from the business).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314969#M618411</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2017-04-25T13:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314970#M618412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe with an interval match, something like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1100702"&gt;Re: Extend variable classes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314970#M618412</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-04-25T13:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314971#M618413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that is not what I'm after. I need to get a new field which contains the ranges of the other field.&lt;/P&gt;&lt;P&gt;Class indeed comes close, but below € 100,000, the ranges get more refined...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314971#M618413</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2017-04-25T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314972#M618414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not? look at the attachment, bucket is the new field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161177_1.jpg" style="height: 429px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FactTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Ceil(rand()*1000000) as Tot_res_grp AutoGenerate 100;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmpBuckets:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;START, END , bucket&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0, 4999, '0-5000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5000, 9999, '5000-10000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;10000,15000, '10000-15000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;15000,100000, '15000-100000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;100000,200000, '100000-200000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;200000,300000, '200000-300000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;300000,400000, '300000-400000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;400000,500000, '400000-500000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;500000,99999999,'&amp;gt;500000'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;left join (FactTable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IntervalMatch(Tot_res_grp)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load START, END Resident tmpBuckets;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left join (FactTable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD START, END, bucket&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident tmpBuckets;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table tmpBuckets;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314972#M618414</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-04-25T13:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314973#M618415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whoa, this looks a LOT like what I am after.. And it does indeed look elegant.. &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;Two questions though:&lt;/P&gt;&lt;P&gt;- is this faster than my nested if?&lt;/P&gt;&lt;P&gt;- doesn't the interval match create a huge table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314973#M618415</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2017-04-25T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314974#M618416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;And it does indeed look elegant..&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, elegant, but I don't know if it's faster than nested if.&lt;/P&gt;&lt;P&gt;You have to check with your data.&lt;/P&gt;&lt;P&gt;I would choose the if: simple to write, simple to understand &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314974#M618416</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-04-25T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314975#M618417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevertheless, I will do some experimenting with this. And you're right - the nested if IS simple to read. &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;Thnx very much for the effort you put into this, Massimo! Much appreciated!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314975#M618417</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2017-04-25T13:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314976#M618418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/121191"&gt;Custom Filter(unusual range)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 20:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314976#M618418</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-04-25T20:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Define ranges within a numeric field</title>
      <link>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314977#M618419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx Marco! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Your solution looks a lot like Massimo's, BTW.&lt;/P&gt;&lt;P&gt;Still, suppose I have a table with some 500,000 records and I try an interval match to the ranges table - would the nested if be more slow than the match table? I will do the experiment today.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 05:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-ranges-within-a-numeric-field/m-p/1314977#M618419</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2017-04-26T05:51:22Z</dc:date>
    </item>
  </channel>
</rss>

