<?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 aggr function boundaries in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/class-with-aggr-function-boundaries/m-p/342844#M126627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have table with calculated dimension using class and aggr functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result looks something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19502" class="jive-image" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/19502_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;To obtain this I forced all days lower than -30 in the "-30 &amp;lt;= Days &amp;lt;0" bucket and averything larger than 150 Days in the&lt;/P&gt;&lt;P&gt;"150 &amp;lt;= Days &amp;lt; 180" bucket&lt;/P&gt;&lt;P&gt;So what I really want to display for the first and the last row is&lt;/P&gt;&lt;P&gt;"Days &amp;lt; 0" instead of "-30 &amp;lt;= Days &amp;lt; 0" and&lt;/P&gt;&lt;P&gt;"150 &amp;lt;= Days" instead of "150 &amp;lt;= Days &amp;lt; 180"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension expression is &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Stock&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;lt; 0, -1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Stock&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OutGoing&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*-1)&amp;gt;150,155,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Stock&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OutGoing&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*-1)))),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Warehouse&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;BR /&gt;30, 'Days', -30) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 14:50:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-07T14:50:42Z</dc:date>
    <item>
      <title>class with aggr function boundaries</title>
      <link>https://community.qlik.com/t5/QlikView/class-with-aggr-function-boundaries/m-p/342844#M126627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have table with calculated dimension using class and aggr functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result looks something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19502" class="jive-image" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/19502_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;To obtain this I forced all days lower than -30 in the "-30 &amp;lt;= Days &amp;lt;0" bucket and averything larger than 150 Days in the&lt;/P&gt;&lt;P&gt;"150 &amp;lt;= Days &amp;lt; 180" bucket&lt;/P&gt;&lt;P&gt;So what I really want to display for the first and the last row is&lt;/P&gt;&lt;P&gt;"Days &amp;lt; 0" instead of "-30 &amp;lt;= Days &amp;lt; 0" and&lt;/P&gt;&lt;P&gt;"150 &amp;lt;= Days" instead of "150 &amp;lt;= Days &amp;lt; 180"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension expression is &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Stock&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;lt; 0, -1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Stock&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OutGoing&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*-1)&amp;gt;150,155,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;round&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Stock&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OutGoing&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;*-1)))),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Warehouse&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;BR /&gt;30, 'Days', -30) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 14:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/class-with-aggr-function-boundaries/m-p/342844#M126627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-07T14:50:42Z</dc:date>
    </item>
  </channel>
</rss>

