<?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: Trendline AVG Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443039#M432774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your formula gives 15 as result (and It is the right result...I Know it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I'm not able to explain what is my question....I'd like to know if anybody can explai to me the formula used by QV to calculate the Average Trendline because it seems wrong to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2017 15:36:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-26T15:36:01Z</dc:date>
    <item>
      <title>Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443035#M432770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the attached example shows the worked hours made by some employees; in the chart is shown the calculated AVG (the green reference line) and the Average trend line (the red one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum of the hours is 60 (according to the hours line of the graph), so the right result for the average is 15 (as shown by the AVG formula).&lt;/P&gt;&lt;P&gt;Could be someone so kind to explain me the average 20 result by the trendline calculation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443035#M432770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443036#M432771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that George has 2 imputations of 10 hours. So the avg is (10 + 10 + 20+ 20)/4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need is this: AVG(aggr(sum(Hours),Employ)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181080_Screenshot_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sorin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443036#M432771</guid>
      <dc:creator>isorinrusu</dc:creator>
      <dc:date>2017-10-26T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443037#M432772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sorin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the prompt replay; the average is (25+15+10+10)=60/4=15, in fact my question was about the wrong average trendline which shows 20, not about the AVG formula shown in the reference one (which shows 15, correctly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443037#M432772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443038#M432773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use an expression to create a line for average may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(TOTAL Hours)/Count(TOTAL Employ)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443038#M432773</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-26T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443039#M432774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your formula gives 15 as result (and It is the right result...I Know it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I'm not able to explain what is my question....I'd like to know if anybody can explai to me the formula used by QV to calculate the Average Trendline because it seems wrong to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443039#M432774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443040#M432775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's summing the hours which equals 60.&amp;nbsp; And dividing by unique employs which is 3.&lt;/P&gt;&lt;P&gt;60/3 = 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think using a trendline is erroneous when you have that kind of dimension.&amp;nbsp; typically you would use a trendline over a chronological time period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually using a line chart is appropriate either.&amp;nbsp; you should probably use a bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443040#M432775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443041#M432776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think QV is calculating it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Hours) = 60&lt;/P&gt;&lt;P&gt;Count(&lt;SPAN style="font-size: 13.3333px;"&gt;DISTINCT &lt;/SPAN&gt;Employee) = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Hours)/Count(DISTINCT Employee) = 20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443041#M432776</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-26T15:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443042#M432777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with you, Wallo....but what kind of average is this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443042#M432777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443043#M432778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my edited reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443043#M432778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443044#M432779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your axis was a date, I think that kind of average trendline would work out perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443044#M432779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443045#M432780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attached example I used a bar chart, but the average results are the same. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443045#M432780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443046#M432781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope if you have two dates equal themselves with two different hour values &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443046#M432781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443047#M432782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know you are not satisfied with the average which is calculated, but that is how it is... to read more on the topic of averages, you can read here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3208"&gt;Average – Which average?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443047#M432782</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-26T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443048#M432783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's because you shouldn't really use a 'trendline'.&amp;nbsp; for that kind of dimension, you should use a reference line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it may not be what you want it to do, but it's summing your expression total (60) and dividing by your unique dimension values.&amp;nbsp; Which if you look at the values in the chart display, that is what you're presenting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443048#M432783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T15:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443049#M432784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does what the aggr(...) formula does. It calculates the mean for Employee &lt;STRONG&gt;after&lt;/STRONG&gt; summing the hours (i.e. your expression) for each Employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the trendline is calculated there as (15+20+25)/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your expression was &lt;STRONG&gt;avg&lt;/STRONG&gt;(Hours), the trending line would be calculated as (15+10+25)/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sorin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 16:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443049#M432784</guid>
      <dc:creator>isorinrusu</dc:creator>
      <dc:date>2017-10-26T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trendline AVG Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443050#M432785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everybody for your explanations!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 06:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trendline-AVG-Calculation/m-p/1443050#M432785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-27T06:05:51Z</dc:date>
    </item>
  </channel>
</rss>

