<?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 Average in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310334#M584554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following simplified dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week, Salesrep, #Visit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Hank, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Hank, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, John, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Pete, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Hank, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, John, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Hank, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Pete, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Pete, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, John, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Hank, 7&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;This indicates per week how many visits a salesrep has done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a line chart with an average number of visits per week. In the options of the expression you can select the average trendline to be displayed. I would like to give this line a different look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the reason I have created a second expression that calculates the average. Unfortunately I cannot get my calculated line to match the trend line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the image below for an impression:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Linechart.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7683_Linechart.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;You can see the Visits line in blue and the corresponding trendline. In red the Avg line is just below that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table below displays the numbers that correspond to the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7684_Table.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Visits trendline corresponds to ((6 / 2) + (4 / 2) + (18 / 3) + (9 / 3)) / 4 = 3.5&lt;/P&gt;&lt;P&gt;The Avg trendline corresponds to 37 / 3 / 4 = 3.083&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached qvw file for the formula's I used. I would like to have a formula for the Avg expression that enables me to get the same result as the trendline. I must be missing something really easy here, but I just can't get it to work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2011 09:24:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-04T09:24:36Z</dc:date>
    <item>
      <title>Average in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310334#M584554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following simplified dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week, Salesrep, #Visit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Hank, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Hank, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, John, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Pete, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Hank, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, John, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Hank, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Pete, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Pete, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, John, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, Hank, 7&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;This indicates per week how many visits a salesrep has done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a line chart with an average number of visits per week. In the options of the expression you can select the average trendline to be displayed. I would like to give this line a different look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the reason I have created a second expression that calculates the average. Unfortunately I cannot get my calculated line to match the trend line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the image below for an impression:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Linechart.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7683_Linechart.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;You can see the Visits line in blue and the corresponding trendline. In red the Avg line is just below that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table below displays the numbers that correspond to the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7684_Table.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Visits trendline corresponds to ((6 / 2) + (4 / 2) + (18 / 3) + (9 / 3)) / 4 = 3.5&lt;/P&gt;&lt;P&gt;The Avg trendline corresponds to 37 / 3 / 4 = 3.083&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached qvw file for the formula's I used. I would like to have a formula for the Avg expression that enables me to get the same result as the trendline. I must be missing something really easy here, but I just can't get it to work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 09:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310334#M584554</guid>
      <dc:creator />
      <dc:date>2011-10-04T09:24:36Z</dc:date>
    </item>
    <item>
      <title>Average in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310335#M584557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(total aggr( SUM([#Visit]) / COUNT(DISTINCT Salesrep),Week))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C u,&lt;/P&gt;&lt;P&gt;Stefano.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 09:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310335#M584557</guid>
      <dc:creator />
      <dc:date>2011-10-04T09:38:53Z</dc:date>
    </item>
    <item>
      <title>Average in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310336#M584558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefano! That is exactly what I meant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 10:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-line-chart/m-p/310336#M584558</guid>
      <dc:creator />
      <dc:date>2011-10-04T10:03:05Z</dc:date>
    </item>
  </channel>
</rss>

