<?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: get the sum of rows from pivot table (and not total of expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456440#M170382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression doesn't look logically correct.&amp;nbsp; Try this in both table and text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 16:34:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-21T16:34:47Z</dc:date>
    <item>
      <title>get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456439#M170381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I need to get sum of rows from a pivot table and put it in a text object. I have joined qvw doc to show you my problem.&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;P&gt;Sorry my newbie question!&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25438" class="jive-image-thumbnail jive-image" onclick="" alt="SumExpression.png" src="https://community.qlik.com/legacyfs/online/25438_SumExpression.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456439#M170381</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2012-11-21T16:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456440#M170382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression doesn't look logically correct.&amp;nbsp; Try this in both table and text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456440#M170382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-21T16:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456441#M170383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your reply. Your expression gives 590!! and not 880 as should be! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456441#M170383</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2012-11-21T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456442#M170384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know - and looking t the data I belive that 590 is the correct result, not the 880.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456442#M170384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-21T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456443#M170385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but I need the multiplication between the column sum(SalesQty) and Sum(Cost) and not Sum(SalesQty * Cost). It gives completly different results. the first table is&amp;nbsp; what i want. &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25448" class="jive-image-thumbnail jive-image" onclick="" alt="SalesExpression2.png" src="https://community.qlik.com/legacyfs/online/25448_SalesExpression2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I need to get the result in a text object, can you help me.? &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456443#M170385</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2012-11-21T17:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456444#M170386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe, if you convince me that your logic is correct...&amp;nbsp; So far I cannot get it.&lt;/P&gt;&lt;P&gt;Look at the store #1.&amp;nbsp; In your data, you have 4 sales with cost =2, and five sale with cost =1.&amp;nbsp; The store sales is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4*2 + 5*1 = 13&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is wrong with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression for store #1 &lt;STRONG&gt;(4+5)*(2+1) = 27&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is the meaning of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456444#M170386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-21T17:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456445#M170387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to first sum sales and cost and then make a multiplication between them.&amp;nbsp; But, I dont' understand why you consider that is not logical. &lt;/P&gt;&lt;P&gt;As is possible the pivot table give the 880 as result, it also should be possible make&amp;nbsp; expression (i think) to give that result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456445#M170387</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2012-11-21T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456446#M170388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible, and it is simple, &lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesQty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;store&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but multiplying sum by sum doesn't make sense, sorry.&amp;nbsp; Isn't it obviuos that the store 1 sales is 13 not 27?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456446#M170388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-21T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: get the sum of rows from pivot table (and not total of expression)</title>
      <link>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456447#M170389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank very much. i understand that it could make less sense view from outside. but for me make me total sense. And the expression that you gave me now works perfectly. So, thanks again.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;cafc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 18:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-the-sum-of-rows-from-pivot-table-and-not-total-of-expression/m-p/456447#M170389</guid>
      <dc:creator>cafcptg2011</dc:creator>
      <dc:date>2012-11-21T18:05:00Z</dc:date>
    </item>
  </channel>
</rss>

