<?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 Aggr () as calculated dimension in Bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-as-calculated-dimension-in-Bar-chart/m-p/1761769#M58891</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble with creating a calculated dimension for a histogram in Qliksense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the image below,&amp;nbsp; I was hoping to create a set of ranges on the x-axis : 0%, 1~5%, 6~10%, 11~15%, etc. However, for some reason, the chart will not generate 1~5%&amp;nbsp; range and instead, those data points are grouped with 0%.&amp;nbsp; For instance, the value of 0.0188 will be grouped into 0% (as shown in the image below in Aggr Expr - Dimension column). Funny thing is that when I put the same expression as a measure (Aggr Expr - Measure), it seems to be working fine.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;What could be happening here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TNAM_0-1605368452839.png" style="width: 549px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44230i14C568BEF2BF356A/image-dimensions/549x161?v=v2" width="549" height="161" role="button" title="TNAM_0-1605368452839.png" alt="TNAM_0-1605368452839.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TNAM_1-1605302980938.png" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44212iE87342FB19E63911/image-dimensions/437x261?v=v2" width="437" height="261" role="button" title="TNAM_1-1605302980938.png" alt="TNAM_1-1605302980938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the expression I used to calculate those ranges:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=aggr(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; only({$} TEST_PERCENTAGE) = 0, dual('0%', 0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , dual(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;num((div(only({$} TEST_PERCENTAGE) - 0.01, 0.05) * 5) + 1, '###0') &amp;amp; '-' &amp;amp; num((div(only({$}&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEST_PERCENTAGE) -&amp;nbsp; 0.01, 0.05) + 1) * 0.05, '###0%')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,&amp;nbsp; div(only({$} TEST_PERCENTAGE) - 0.01, 0.05&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ), TEST_PERCENTAGE&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:06:51 GMT</pubDate>
    <dc:creator>TNAM</dc:creator>
    <dc:date>2024-11-16T01:06:51Z</dc:date>
    <item>
      <title>Aggr () as calculated dimension in Bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-as-calculated-dimension-in-Bar-chart/m-p/1761769#M58891</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble with creating a calculated dimension for a histogram in Qliksense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the image below,&amp;nbsp; I was hoping to create a set of ranges on the x-axis : 0%, 1~5%, 6~10%, 11~15%, etc. However, for some reason, the chart will not generate 1~5%&amp;nbsp; range and instead, those data points are grouped with 0%.&amp;nbsp; For instance, the value of 0.0188 will be grouped into 0% (as shown in the image below in Aggr Expr - Dimension column). Funny thing is that when I put the same expression as a measure (Aggr Expr - Measure), it seems to be working fine.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;What could be happening here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TNAM_0-1605368452839.png" style="width: 549px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44230i14C568BEF2BF356A/image-dimensions/549x161?v=v2" width="549" height="161" role="button" title="TNAM_0-1605368452839.png" alt="TNAM_0-1605368452839.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TNAM_1-1605302980938.png" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44212iE87342FB19E63911/image-dimensions/437x261?v=v2" width="437" height="261" role="button" title="TNAM_1-1605302980938.png" alt="TNAM_1-1605302980938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the expression I used to calculate those ranges:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=aggr(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; only({$} TEST_PERCENTAGE) = 0, dual('0%', 0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , dual(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;num((div(only({$} TEST_PERCENTAGE) - 0.01, 0.05) * 5) + 1, '###0') &amp;amp; '-' &amp;amp; num((div(only({$}&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEST_PERCENTAGE) -&amp;nbsp; 0.01, 0.05) + 1) * 0.05, '###0%')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,&amp;nbsp; div(only({$} TEST_PERCENTAGE) - 0.01, 0.05&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ), TEST_PERCENTAGE&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-as-calculated-dimension-in-Bar-chart/m-p/1761769#M58891</guid>
      <dc:creator>TNAM</dc:creator>
      <dc:date>2024-11-16T01:06:51Z</dc:date>
    </item>
  </channel>
</rss>

