<?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 Aggregate Function Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792386#M1210803</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;All i have a question , i am currently have an expression which is doing a aggregate function over a variable and after that i am doing a calculation . I also have a cyclic group in the chart ( pivot table ) . The problem is aggregate function works for a certain selections and for certain selections it doesn't work (my thinking is&amp;nbsp; &amp;nbsp;because the aggregated dimension has multiple values) and&amp;nbsp; the aggr function cannot understand . Is there any way to solve this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if((aggr($(varibale1 ), dimension1, dimension 2, etc ))=0 or isnull((aggr($(variable 1),&amp;nbsp; dimension1, dimension 2 , etc))),&lt;/P&gt;&lt;P&gt;(SUM({$&amp;lt;YYYY= {'2020'},&amp;gt;} $(variable2 )))*(avg({$&amp;lt;YYYY= {2020}=&amp;gt;} field ))&lt;/P&gt;&lt;P&gt;,$(varibale1 ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;here the dimension in aggr function are same and dimenison2 falls into 2 categories of dimension 1 , so its failing to calculate the logic .&lt;/P&gt;&lt;P&gt;&amp;nbsp;any help would be appreciated&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 00:23:46 GMT</pubDate>
    <dc:creator>Shiva123</dc:creator>
    <dc:date>2021-03-18T00:23:46Z</dc:date>
    <item>
      <title>Aggregate Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792386#M1210803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;All i have a question , i am currently have an expression which is doing a aggregate function over a variable and after that i am doing a calculation . I also have a cyclic group in the chart ( pivot table ) . The problem is aggregate function works for a certain selections and for certain selections it doesn't work (my thinking is&amp;nbsp; &amp;nbsp;because the aggregated dimension has multiple values) and&amp;nbsp; the aggr function cannot understand . Is there any way to solve this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if((aggr($(varibale1 ), dimension1, dimension 2, etc ))=0 or isnull((aggr($(variable 1),&amp;nbsp; dimension1, dimension 2 , etc))),&lt;/P&gt;&lt;P&gt;(SUM({$&amp;lt;YYYY= {'2020'},&amp;gt;} $(variable2 )))*(avg({$&amp;lt;YYYY= {2020}=&amp;gt;} field ))&lt;/P&gt;&lt;P&gt;,$(varibale1 ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;here the dimension in aggr function are same and dimenison2 falls into 2 categories of dimension 1 , so its failing to calculate the logic .&lt;/P&gt;&lt;P&gt;&amp;nbsp;any help would be appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 00:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792386#M1210803</guid>
      <dc:creator>Shiva123</dc:creator>
      <dc:date>2021-03-18T00:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792429#M1210805</link>
      <description>&lt;P&gt;Hi, if you could provide some sample and the expected result, that would be helpful for others to help you. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 08:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792429#M1210805</guid>
      <dc:creator>alex00321</dc:creator>
      <dc:date>2021-03-18T08:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Function Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792604#M1210824</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14854"&gt;@alex00321&lt;/a&gt;&amp;nbsp;Attached is the image , the cyclic group and the dimension 2 values are added in the aggr . If you see the last two lines they are summing up but the first line is not summing up. The&amp;nbsp; expression used for first line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(SUM({$&amp;lt;YYYY= {'2020'},&amp;gt;} $(variable2 )))*(avg({$&amp;lt;YYYY= {2020}=&amp;gt;} field )) because there is no new data for current year and its using previous year data&amp;nbsp; and multiplying with a field .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Function-Issue/m-p/1792604#M1210824</guid>
      <dc:creator>Shiva123</dc:creator>
      <dc:date>2021-03-18T15:11:21Z</dc:date>
    </item>
  </channel>
</rss>

