<?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: Pivot table sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602058#M1106716</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;If you are using straight table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to chart Properties-&amp;gt;Expression-&amp;gt;select Expression-&amp;gt;Total Mode-&amp;gt;select (Sum) of Rows.&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, 20 Mar 2014 14:12:40 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-03-20T14:12:40Z</dc:date>
    <item>
      <title>Pivot table sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602056#M1106714</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'm trying to make a table showing the amount of money we save for our customer, by showing the amount of money they spent on a lane (from a certain city to another city)&amp;nbsp; in 2012, and what they are spending now we are arranging their transports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the table has the following content:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average paid rate 2012: what the customer paid in 2012, before we arranged their transport&lt;/P&gt;&lt;P&gt;Average freight spend SWL: what we the customer paid since we arranged their transports&lt;/P&gt;&lt;P&gt;# of loads: number of loads we shipped for them on the specific lane.&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Savings by lane.bmp" class="jive-image" src="/legacyfs/online/55469_Savings by lane.bmp" style="width: 620px; height: 189px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data comes from two datasets; one set with all the shipment data from my company, and one file with the 2012 rates of the customer. I have Flagged our own data (because there are also many 2012 lanes in the file which are not relevant anymore), and made the connection between the files based on "Lane".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the outer right column, I want to show what the customer would have paid on these lanes if they would have arranged their transports themselves. I do this, by multiplying their rate, with the number of loads shipped. Where there is no data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;FlagA={'A'}&amp;gt;}TotalFreight)=0&lt;/P&gt;&lt;P&gt;,0,Avg({&amp;lt;FlagA={'A'}&amp;gt;}[Rates 2012 in Eur])*&lt;/P&gt;&lt;P&gt;count({&amp;lt;FlagA={'A'}={0}&amp;gt;}TMWO))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the picture, this formula works perfectly for the separate lanes, but my totals get all messed up. Can anybody tell me, how I can get the same numbers per lane, but the correct total? (=3144+3110,40+900+294=7418,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602056#M1106714</guid>
      <dc:creator />
      <dc:date>2014-03-20T13:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602057#M1106715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Perhaps an extra aggregation over the dimensions will help:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;STRONG&gt;sum(aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum({&amp;lt;FlagA={'A'}&amp;gt;}TotalFreight)=0&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,0,Avg({&amp;lt;FlagA={'A'}&amp;gt;}[Rates 2012 in Eur])*&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;FlagA={'A'}={0}&amp;gt;}TMWO))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;, &lt;EM&gt;ConsigneeCount...something...&lt;/EM&gt; , Lane)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602057#M1106715</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-20T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602058#M1106716</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;If you are using straight table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to chart Properties-&amp;gt;Expression-&amp;gt;select Expression-&amp;gt;Total Mode-&amp;gt;select (Sum) of Rows.&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, 20 Mar 2014 14:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602058#M1106716</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-20T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602059#M1106717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that worked. Thank you Max!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602059#M1106717</guid>
      <dc:creator />
      <dc:date>2014-03-20T14:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602060#M1106718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You Welcome,&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, 20 Mar 2014 14:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-sum/m-p/602060#M1106718</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-20T14:18:26Z</dc:date>
    </item>
  </channel>
</rss>

