<?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 Class with variable intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031969#M348302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;So I have a simple class function for a calculated dimension which works fine:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KeyBoBBStratification&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),5000) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However what happens if I don't want the increments to be 5,000 but actually need intervals like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;0 - 5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;5,000-10,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;10,000-25,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;25,000-50,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Greater than 50,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 22:37:18 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2016-01-19T22:37:18Z</dc:date>
    <item>
      <title>Class with variable intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031969#M348302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;So I have a simple class function for a calculated dimension which works fine:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KeyBoBBStratification&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),5000) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However what happens if I don't want the increments to be 5,000 but actually need intervals like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;0 - 5000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;5,000-10,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;10,000-25,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;25,000-50,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Greater than 50,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 22:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031969#M348302</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2016-01-19T22:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Class with variable intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031970#M348303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you can't use the class() function, you would need a set of embedded if() statements (if you need to use the calculated dimension), or use an INTERVALMATCH&amp;nbsp; with a custom bucket table in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 22:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031970#M348303</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-19T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Class with variable intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031971#M348304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for verifying.&amp;nbsp; Already tried the if statements but was taking too long for the end users to refresh and need the felxibility to have the buckets change based on filtered data so can't pre-code in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 23:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031971#M348304</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2016-01-19T23:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Class with variable intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031972#M348305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &lt;STRONG&gt;IntervalMatch&lt;/STRONG&gt; capability to create the custom buckets. IF function may degrade your load performance. So go with IntervalMatch function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempBuckets:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;START, END , BUCKET&lt;/P&gt;&lt;P&gt;0, 5000, '0-5000'&lt;/P&gt;&lt;P&gt;5001, 10000, '5001-10000'&lt;/P&gt;&lt;P&gt;10001, 25000, '&lt;SPAN style="font-size: 13.3333px;"&gt;10001&lt;/SPAN&gt;-25000'&lt;/P&gt;&lt;P&gt;25001, 50000, '25001-50000'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempBridge:&lt;/P&gt;&lt;P&gt;IntervalMatch(FieldName)&lt;/P&gt;&lt;P&gt;Load START. END Resident &lt;SPAN style="font-size: 13.3333px;"&gt;TempBuckets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(&lt;SPAN style="font-size: 13.3333px;"&gt;TempBridge)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load * resident &lt;SPAN style="font-size: 13.3333px;"&gt;TempBuckets;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table &lt;SPAN style="font-size: 13.3333px;"&gt;TempBuckets ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(FactTable)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bucket&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;TempBridge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table &lt;SPAN style="font-size: 13.3333px;"&gt;TempBridge;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 02:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-with-variable-intervals/m-p/1031972#M348305</guid>
      <dc:creator />
      <dc:date>2016-01-20T02:39:58Z</dc:date>
    </item>
  </channel>
</rss>

