<?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: Aggr issue kindly help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-issue-kindly-help/m-p/2070668#M1223605</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135519"&gt;@Akhil1995&lt;/a&gt; , of what do you want to calculate the totals? Because if you want to do it for every store, or every store and every year / month, you can just use those as dimensions?&lt;/P&gt;
&lt;P&gt;Are you trying to do this in script or in chart? For in chart you can try this:&lt;/P&gt;
&lt;P&gt;So use the following dimensions: Month, StoreCode&lt;BR /&gt;and the following expression: Sum(Val)&lt;/P&gt;
&lt;P&gt;You can also incorporate selections in your expression:&lt;BR /&gt;Sum( {$&amp;lt; Storecode = {"*"}, Region={"*"}&amp;gt;} Val)&lt;BR /&gt;&lt;BR /&gt;I tried to interpret what you want to select from you selection, but it's not completely clear to me. Please give some more context for additional help.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 13:37:44 GMT</pubDate>
    <dc:creator>Marijn</dc:creator>
    <dc:date>2023-05-12T13:37:44Z</dc:date>
    <item>
      <title>Aggr issue kindly help</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-issue-kindly-help/m-p/2069897#M1223594</link>
      <description>&lt;P&gt;&lt;STRONG&gt;hello folks, hope you are well.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I have been facing issue while applying aggregations on this below scenario.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Due to some sensitive information, im not able put exact scenario here, instead im trying put in my own way.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I have table like this.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Load* inline&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;[Month,StoreCode, Region, Val&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Jan-23,AA,, 10&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Jan-23,BB,B1, 20&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Jan-23,BB,,20&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;My desired output is&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Month&amp;nbsp; StoreCode&amp;nbsp; Region Sum(Val)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Jan-23&amp;nbsp; AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Jan-23&amp;nbsp; BB B1 20&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;I have tried with below aggr but no luck&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;If(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;Count(total &amp;lt;StoreCode&amp;gt;StoreCode)=1 or Len(Trim(Region))&amp;gt;0, Sum(Val)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-family: inherit;"&gt;But not showing totals.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I request you to help me out on this.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Looking forward to hearing from you!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 21:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-issue-kindly-help/m-p/2069897#M1223594</guid>
      <dc:creator>Akhil1995</dc:creator>
      <dc:date>2023-05-10T21:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr issue kindly help</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-issue-kindly-help/m-p/2070668#M1223605</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/135519"&gt;@Akhil1995&lt;/a&gt; , of what do you want to calculate the totals? Because if you want to do it for every store, or every store and every year / month, you can just use those as dimensions?&lt;/P&gt;
&lt;P&gt;Are you trying to do this in script or in chart? For in chart you can try this:&lt;/P&gt;
&lt;P&gt;So use the following dimensions: Month, StoreCode&lt;BR /&gt;and the following expression: Sum(Val)&lt;/P&gt;
&lt;P&gt;You can also incorporate selections in your expression:&lt;BR /&gt;Sum( {$&amp;lt; Storecode = {"*"}, Region={"*"}&amp;gt;} Val)&lt;BR /&gt;&lt;BR /&gt;I tried to interpret what you want to select from you selection, but it's not completely clear to me. Please give some more context for additional help.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-issue-kindly-help/m-p/2070668#M1223605</guid>
      <dc:creator>Marijn</dc:creator>
      <dc:date>2023-05-12T13:37:44Z</dc:date>
    </item>
  </channel>
</rss>

