<?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 Calculated dimension grouping incorrectly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-grouping-incorrectly/m-p/1303223#M843704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Family, I have been battling with grouping values using a calculated dimension. So I created a the dimension and specified a set of values I want displayed, and also created an expression which simply gives me a count of all my customers. The issue is that not all values in my calculated dimension are distributed into their correct buckets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=0 and Aggr(Sum(Amount),[Customer ID]) &amp;lt; 1,Dual('R0 - R0',1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=1 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 10000,Dual('R1 - R10,000',2),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=10001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 50000,Dual('R10,001 - R50,000',3),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=50001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 250000,Dual('R50,001 - R250,000',4),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=250001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 500000,Dual('R250,001 - R500,000',5),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=500001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 3000000,Dual('R500,001 - R3mil',6),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=3000001,Dual('&amp;gt; R3 milllion',7),'')))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count([Customer ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, Some of my amount values that are less than 3 million are showing in the 3 million buckets and visa versa. Urgently need help on this and very much appreciate all the help I can get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Calculated dimension grouping incorrectly</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-grouping-incorrectly/m-p/1303223#M843704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Family, I have been battling with grouping values using a calculated dimension. So I created a the dimension and specified a set of values I want displayed, and also created an expression which simply gives me a count of all my customers. The issue is that not all values in my calculated dimension are distributed into their correct buckets:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=0 and Aggr(Sum(Amount),[Customer ID]) &amp;lt; 1,Dual('R0 - R0',1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=1 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 10000,Dual('R1 - R10,000',2),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=10001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 50000,Dual('R10,001 - R50,000',3),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=50001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 250000,Dual('R50,001 - R250,000',4),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=250001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 500000,Dual('R250,001 - R500,000',5),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=500001 and Aggr(Sum(Amount),[Customer ID]) &amp;lt;= 3000000,Dual('R500,001 - R3mil',6),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Aggr(Sum(Amount),[Customer ID])&amp;gt;=3000001,Dual('&amp;gt; R3 milllion',7),'')))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count([Customer ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, Some of my amount values that are less than 3 million are showing in the 3 million buckets and visa versa. Urgently need help on this and very much appreciate all the help I can get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-grouping-incorrectly/m-p/1303223#M843704</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

