<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861285#M470555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with a conditional expresion, one of the calculations is an Aggr function, the expression works, but when i'm going to do drilldown for a different dimension, the value of the dimensions are the same, only shows the total value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i create this expression?, i need to do drilldown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(MIS_KPI_ID='LF',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt; Sum(TOTAL &amp;lt;MONTH&amp;gt; Aggr(Sum(TOTAL &amp;lt;MONTH,MIS_KPI_ID,CIA_KPI&amp;gt; {&amp;lt;MIS_KPI_ID = {'RPK'}&amp;gt;} VALUE),MIS_KPI_ID,MONTH,CIA_KPI))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(TOTAL &amp;lt;MONTH&amp;gt; Aggr(Sum(TOTAL &amp;lt;MONTH,MIS_KPI_ID,CIA_KPI&amp;gt; {&amp;lt;MIS_KPI_ID = {'ASK'}&amp;gt;} VALUE),MIS_KPI_ID,MONTH,CIA_KPI))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum(VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and this the result of the pivot table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="KPI_data2.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86559_KPI_data2.jpg" style="height: 566px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 13:17:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-14T13:17:37Z</dc:date>
    <item>
      <title>Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861285#M470555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table with a conditional expresion, one of the calculations is an Aggr function, the expression works, but when i'm going to do drilldown for a different dimension, the value of the dimensions are the same, only shows the total value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i create this expression?, i need to do drilldown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(MIS_KPI_ID='LF',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt; Sum(TOTAL &amp;lt;MONTH&amp;gt; Aggr(Sum(TOTAL &amp;lt;MONTH,MIS_KPI_ID,CIA_KPI&amp;gt; {&amp;lt;MIS_KPI_ID = {'RPK'}&amp;gt;} VALUE),MIS_KPI_ID,MONTH,CIA_KPI))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(TOTAL &amp;lt;MONTH&amp;gt; Aggr(Sum(TOTAL &amp;lt;MONTH,MIS_KPI_ID,CIA_KPI&amp;gt; {&amp;lt;MIS_KPI_ID = {'ASK'}&amp;gt;} VALUE),MIS_KPI_ID,MONTH,CIA_KPI))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum(VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and this the result of the pivot table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="KPI_data2.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86559_KPI_data2.jpg" style="height: 566px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861285#M470555</guid>
      <dc:creator />
      <dc:date>2015-05-14T13:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861286#M470556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to play around with the second total within Aggr(Sum( Total....)) to get it to give you the proper result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try removing and adding them one by one and see if that makes any difference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(MIS_KPI_ID='LF',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Sum(TOTAL &amp;lt;MONTH&amp;gt; Aggr(Sum(TOTAL &amp;lt;&lt;SPAN style="color: #ff0000;"&gt;MONTH,MIS_KPI_ID,CIA_KPI&lt;/SPAN&gt;&amp;gt; {&amp;lt;MIS_KPI_ID = {'RPK'}&amp;gt;} VALUE),MIS_KPI_ID,MONTH,CIA_KPI))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(TOTAL &amp;lt;MONTH&amp;gt; Aggr(Sum(TOTAL &amp;lt;&lt;SPAN style="color: #ff0000;"&gt;MONTH,MIS_KPI_ID,CIA_KPI&lt;/SPAN&gt;&amp;gt; {&amp;lt;MIS_KPI_ID = {'ASK'}&amp;gt;} VALUE),MIS_KPI_ID,MONTH,CIA_KPI))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; )&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Sum(VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;We might be able to give you a better solution if you can share a sample app.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861286#M470556</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-14T13:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861287#M470557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;, thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot make it work, see attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 15:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861287#M470557</guid>
      <dc:creator />
      <dc:date>2015-05-14T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861288#M470558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this expression (PFA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(MIS_KPI_ID='LF',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; (&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(TOTAL &amp;lt;MONTH, CIA_KPI&amp;gt; Aggr(Sum({&amp;lt;MIS_KPI_ID = {'RPK'}&amp;gt;} VALUE),MONTH, CIA_KPI, MIS_KPI_ID)) /&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(TOTAL &amp;lt;MONTH, CIA_KPI&amp;gt; Aggr(Sum({&amp;lt;MIS_KPI_ID = {'ASK'}&amp;gt;} VALUE),MONTH, CIA_KPI, MIS_KPI_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(VALUE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 15:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861288#M470558</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-14T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861289#M470559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌ &lt;/P&gt;&lt;P&gt;Thanks for your workaround, the solution works but has a strange behavior when you're going to do drilldown on the kpi calculated. If you're going to do drilldown in &lt;STRONG&gt;LF&lt;/STRONG&gt;... disappears. &lt;/P&gt;&lt;P&gt;If you click on "show all"... reappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 15:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861289#M470559</guid>
      <dc:creator />
      <dc:date>2015-05-18T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861290#M470560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is strange. I have never seen this kind of behavior like this before and not sure what is causing this. I might have to play around with it to see the potential cause of this. Maybe you can create another pivot chart and see if the behavior is repeated or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 15:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861290#M470560</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-18T15:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861291#M470561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌, the cause is because it's marked the option to delete nulls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-function/m-p/861291#M470561</guid>
      <dc:creator />
      <dc:date>2015-06-09T15:19:06Z</dc:date>
    </item>
  </channel>
</rss>

