<?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: Expression calculation in bar chart with group by in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820615#M67271</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I really appreciated your post for the new user I really like this .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.acesetm.me/" target="_self"&gt;&lt;SPAN&gt;ACES ETM&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 04:22:27 GMT</pubDate>
    <dc:creator>Stephenson6</dc:creator>
    <dc:date>2021-07-09T04:22:27Z</dc:date>
    <item>
      <title>Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820424#M67255</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a straight table where I put a expression like&amp;nbsp;&lt;BR /&gt;No. of Decleration = Count( distinct reg_num)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I have&amp;nbsp; selected the radio button sum of rows in the expression tab of chart property.&lt;/P&gt;&lt;P&gt;it is showing result =2090&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narender123_0-1625665612899.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58182iC2A63584BE2C287A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narender123_0-1625665612899.png" alt="narender123_0-1625665612899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to show the same result in bar chart. I am using the same expression like&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = Count( distinct reg_num)&amp;nbsp;&lt;/P&gt;&lt;P&gt;But getting wrong data in the chart as it is not applying group by on dimensions office_code and section.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narender123_1-1625665865572.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58183i45379DC2BD7DB59A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narender123_1-1625665865572.png" alt="narender123_1-1625665865572.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How to apply group by on chart level and get the same total amount as in straight table?&lt;/P&gt;&lt;P&gt;I used aggr function but did not get result.&lt;/P&gt;&lt;P&gt;aggr(distinct reg_num,section,off_cod)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Narender&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820424#M67255</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2021-07-07T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820440#M67256</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25710"&gt;@narender123&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum(aggr(Count( distinct reg_num) ,&amp;nbsp;section,off_cod))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 14:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820440#M67256</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-07T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820612#M67270</link>
      <description>&lt;P&gt;Hi Kush,&lt;BR /&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Point 1: This works fine for the 1 year like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;=sum(aggr(Count({&amp;lt;Year={$(=max(Year))}&amp;gt;} distinct reg_num) ,&amp;nbsp;section,off_cod))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narender123_0-1625728502910.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58229i151A091C5CBF2BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narender123_0-1625728502910.png" alt="narender123_0-1625728502910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Point 2: But I need to show last five count. so it is not showing the last 5 years, also showing the wrong data for 2021.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;=sum(aggr(Count({&amp;lt;Year={'&amp;gt;=$(=max(Year)-4)'}&amp;gt;} distinct reg_num) ,&amp;nbsp;section,off_cod))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narender123_1-1625728681757.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58230iEF61E098A19D3036/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narender123_1-1625728681757.png" alt="narender123_1-1625728681757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Point 3: My last 5 year count works when I don't use aggr but getting wrong data count&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count({&amp;lt;Year={'&amp;gt;=$(=max(Year)-4)'}&amp;gt;} distinct reg_num)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narender123_2-1625728882821.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58232iEDCA0ECE8B0FAEBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narender123_2-1625728882821.png" alt="narender123_2-1625728882821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me, how to show last 5 year count with aggr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 07:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820612#M67270</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2021-07-08T07:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820615#M67271</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I really appreciated your post for the new user I really like this .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.acesetm.me/" target="_self"&gt;&lt;SPAN&gt;ACES ETM&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 04:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820615#M67271</guid>
      <dc:creator>Stephenson6</dc:creator>
      <dc:date>2021-07-09T04:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820625#M67272</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HI&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Might be, try like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum(aggr(Count( {&amp;lt;Year={'&amp;gt;=$(=max(Year)-4)'}&amp;gt;} distinct reg_num) , Year, section,off_cod))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820625#M67272</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-07-08T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820630#M67273</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935" target="_self"&gt;&lt;SPAN class="login-bold"&gt;MayilVahanan&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried it already,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But it shows only 2021 year count which is right count for 2021 but it need to show 2017,2018,20199,2020 count also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820630#M67273</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2021-07-08T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression calculation in bar chart with group by</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820645#M67275</link>
      <description>&lt;P&gt;It is working fine now.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={'&amp;gt;=$(=max(Year) -4) '}&amp;gt;} aggr(count ({&amp;lt;Year={'&amp;gt;=$(=max(Year) -4) '}&amp;gt;}distinct reg_num) , section, off_cod, year))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Guys for your reply.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-calculation-in-bar-chart-with-group-by/m-p/1820645#M67275</guid>
      <dc:creator>narender123</dc:creator>
      <dc:date>2021-07-08T08:58:40Z</dc:date>
    </item>
  </channel>
</rss>

