<?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 () in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170626#M885847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression looks over complicated. Wouldn't the belwo expression give the same result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if ( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 100000, 0.000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 250000 , 0.125,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 500000 , 0.310 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if ((sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 1000000, 0.625,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if ((sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 2500000 , 1.25 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3.100 )))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend that you try and add your calculated dimension to the data model during application reload, so that you get a real dimension in your chart. Then you can create a column total by using Aggr(), where you list all dimensions in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&amp;lt;the expression above&amp;gt;, Dim1, Dim2, ... DimN))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 08:39:16 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2016-09-09T08:39:16Z</dc:date>
    <item>
      <title>Aggr () in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170623#M885844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table. The points expression is not giving the sum of rows. I understand that I need to use the aggr() to get the correct sum of rows but I am not able to correctly place that function. Can anyone please help? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension is a calculated dimension :&amp;nbsp; If((isnull(WinLossDate) or num#(WinLossFiscalYear&amp;amp;num(WinLossFiscalQuarter,00))&amp;lt;'201201'),null(),Owner)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points expression :&amp;nbsp; &lt;/P&gt;&lt;P&gt;if ( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 100000, 0.000, &lt;/P&gt;&lt;P&gt;if( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;gt;= 100000 and (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 250000 , 0.125, &lt;/P&gt;&lt;P&gt;if( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;gt;= 250000 and (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 500000 , 0.310 , &lt;/P&gt;&lt;P&gt;if ( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;gt;= 500000 and (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 1000000, 0.625, &lt;/P&gt;&lt;P&gt;if ( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;gt;= 1000000 and (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 2500000 , 1.25 ,3.100 )))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136871_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170623#M885844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170624#M885845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you test ..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sum ( Aggr ( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if ( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={' ......... ), [Project Owner], Dimension2, dimension3, ...&lt;BR /&gt;&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 18:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170624#M885845</guid>
      <dc:creator>GabrielAraya</dc:creator>
      <dc:date>2016-09-08T18:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170625#M885846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(sum(Expression1)&amp;lt;60000,1,10),Dim2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Dim2 = hidden dimension ( + )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Fernando V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 18:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170625#M885846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T18:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr () in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170626#M885847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression looks over complicated. Wouldn't the belwo expression give the same result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if ( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 100000, 0.000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 250000 , 0.125,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if( (sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 500000 , 0.310 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if ((sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 1000000, 0.625,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if ((sum({&amp;lt;FunnelStamp2={'Current'},Stage={'5.0-Closed Design Win','5.0-Closed Project Win','5.0-Closed Booked'}&amp;gt;}Amount)) &amp;lt; 2500000 , 1.25 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3.100 )))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend that you try and add your calculated dimension to the data model during application reload, so that you get a real dimension in your chart. Then you can create a column total by using Aggr(), where you list all dimensions in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&amp;lt;the expression above&amp;gt;, Dim1, Dim2, ... DimN))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 08:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-pivot-table/m-p/1170626#M885847</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T08:39:16Z</dc:date>
    </item>
  </channel>
</rss>

