<?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: Averages in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624602#M1107828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 11:13:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-26T11:13:05Z</dc:date>
    <item>
      <title>Averages in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624598#M1107824</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 ant a straight table, on the pivot table i got a wrong averages on total line, on stright table ist calculate ok. I need get the same values (total averages) on pivot as i have on straight table. please help.( on strigt table, in expression tab i can select avg on total mode, but in pivot table this selection is not available.)&lt;/P&gt;&lt;P&gt;my expresions is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;} Invoice.RevenueLT/Currency.Rate)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;}Invoice.Tons)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624598#M1107824</guid>
      <dc:creator />
      <dc:date>2014-03-26T10:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Averages in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624599#M1107825</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;Write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;} Invoice.RevenueLT) / Currency.Rate)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;}Invoice.Tons)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624599#M1107825</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-26T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Averages in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624600#M1107826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not working.. i think i need use aggr function, but dont know how...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624600#M1107826</guid>
      <dc:creator />
      <dc:date>2014-03-26T11:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Averages in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624601#M1107827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be very careful around averages in QlikView. As you can see it is very easy to get the wrong answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem appears to be a standard average of averages problem, but your expression 'should' be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I would tend to use an aggr statement so that I have more control over the context of the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tested this, but try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;} Invoice.RevenueLT/Currency.Rate)&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;sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;}Invoice.Tons),Customer,Product))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624601#M1107827</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-03-26T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Averages in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624602#M1107828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624602#M1107828</guid>
      <dc:creator />
      <dc:date>2014-03-26T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Averages in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624603#M1107829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr( Avg( sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;} Invoice.RevenueLT/Currency.Rate)&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;sum({$&amp;lt;Invoice.InvoiceStatus = {'$(vInvoiceApprove)'}&amp;gt;}Invoice.Tons)),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Customer&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-in-pivot-table/m-p/624603#M1107829</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-26T11:16:14Z</dc:date>
    </item>
  </channel>
</rss>

