<?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 Sorry, Again: AVERAGE OF SUM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523100#M601101</link>
    <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry I know there are a few threads foe this topic but I did not manage to find a solution so maybe you can help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show the average of&amp;nbsp;staff-costs on a monthly basis.&lt;/P&gt;&lt;P&gt;For each employee there are different cost centers (like "wage" or "car" or "other payro costs" or "travel-expenses").&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show the average over all cost centers and all months, so every month should have the same amount of staff costs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;field names: "employee", "cost center", "month" and "amount".&lt;BR /&gt;&lt;BR /&gt;I already tried:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Avg( Aggr(Sum(amount), month))&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg( Aggr(Sum(amount), month, year))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg( Aggr(Sum(amount), month, cost center))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and all solutions with Sum(amount) as variable $(vTotalAmount)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone knows where my mistake is?&lt;BR /&gt;&lt;BR /&gt;I would appreciate help very much.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Jakob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2018 15:48:59 GMT</pubDate>
    <dc:creator>jakobjosef</dc:creator>
    <dc:date>2018-12-20T15:48:59Z</dc:date>
    <item>
      <title>Sorry, Again: AVERAGE OF SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523100#M601101</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry I know there are a few threads foe this topic but I did not manage to find a solution so maybe you can help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show the average of&amp;nbsp;staff-costs on a monthly basis.&lt;/P&gt;&lt;P&gt;For each employee there are different cost centers (like "wage" or "car" or "other payro costs" or "travel-expenses").&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show the average over all cost centers and all months, so every month should have the same amount of staff costs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;field names: "employee", "cost center", "month" and "amount".&lt;BR /&gt;&lt;BR /&gt;I already tried:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Avg( Aggr(Sum(amount), month))&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg( Aggr(Sum(amount), month, year))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Avg( Aggr(Sum(amount), month, cost center))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and all solutions with Sum(amount) as variable $(vTotalAmount)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone knows where my mistake is?&lt;BR /&gt;&lt;BR /&gt;I would appreciate help very much.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Jakob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 15:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523100#M601101</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-20T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sorry, Again: AVERAGE OF SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523110#M601102</link>
      <description>&lt;P&gt;Hi Jakob -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Average can be a tricky topic and not sure if you have already seen this or not -&amp;gt;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Average-Which-average/ba-p/1466654" target="_blank"&gt;Average - Which average&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But without seeing some snippet of your data and the output you are looking to get, it would be very difficult to give you an expression which will work right away for you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523110#M601102</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorry, Again: AVERAGE OF SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523111#M601103</link>
      <description>&lt;P&gt;Hi Sunny,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your hint, I'll read it, maybe it brings me further!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523111#M601103</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-20T16:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sorry, Again: AVERAGE OF SUM</title>
      <link>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523177#M601104</link>
      <description>Adding to sunny's reply.&lt;BR /&gt;i tend to distrust avg function. i would rather calculate it myself like hic mentions as&lt;BR /&gt;"Sum( Amount ) / Count( distinct MonthID &amp;amp; '|' &amp;amp; CustomerID )"</description>
      <pubDate>Thu, 20 Dec 2018 17:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorry-Again-AVERAGE-OF-SUM/m-p/1523177#M601104</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-12-20T17:50:56Z</dc:date>
    </item>
  </channel>
</rss>

