<?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: Segmented Average Lines in Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457034#M558438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to display a line for the monthly average for each year? See attached. It would be something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=aggr(NODISTINCT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;avg(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;aggr(NODISTINCT Sum(TOTAL&amp;lt;Year,[Month-Year]&amp;gt;Sales),[Month-Year])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 22:16:56 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-06-10T22:16:56Z</dc:date>
    <item>
      <title>Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457028#M558432</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;I am pretty new with QlikView and now developing some dashboard for my organization. Currently, the line chart has total sale by month-year for 3 years and I would like to add an line for average sale. This average line is not the grand average across all years. For each year, the average line is the average for that year. For example, from Jan-2010 to Dec-2010, the average line is the average value for Year 2010, and from Jan-2011 to Dec-2011, the line is the average for Year 2011. Is there a way to do it. I assume this can be done with set analysis? But can someone let me know what would be the correct expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 16:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457028#M558432</guid>
      <dc:creator />
      <dc:date>2013-06-10T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457029#M558433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this video will give you some ideas how to start doing this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="https://www.youtube.com/watch?v=ruyfe1Mq0iU"&gt;https://www.youtube.com/watch?v=ruyfe1Mq0iU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some examples of what the Expression Definition might look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #f5f5f5;"&gt;avg({&amp;lt;Year={2011}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #f5f5f5; font-family: Arial;"&gt;avg({&amp;lt;Year={2012}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #f5f5f5; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #f5f5f5;"&gt;avg({&amp;lt;Year={2013}&amp;gt;} Value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 18:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457029#M558433</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-06-10T18:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457030#M558434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alan; however, in this case, we need to specify the year. The data will change yearly, so is there any dynamic way that would automatically change the average calculation based on available data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jihan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 21:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457030#M558434</guid>
      <dc:creator />
      <dc:date>2013-06-10T21:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457031#M558435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alan; however, in this case, we need to specify the year. The data will change yearly, so is there any dynamic way that would automatically change the average calculation based on available data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jihan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 21:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457031#M558435</guid>
      <dc:creator />
      <dc:date>2013-06-10T21:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457032#M558436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Year (today ()) for this year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year (today ())-1 for last year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that that what you mean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 21:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457032#M558436</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-06-10T21:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457033#M558437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Expressions would be wriiten like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;Year={$(=Year(Today()))}&amp;gt;}Value) for this Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;Year={$(=Year(Today())-1)}&amp;gt;}Value) for last Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;Year={$(=Year(Today())-2)}&amp;gt;}Value) for previous Year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 21:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457033#M558437</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-06-10T21:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457034#M558438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to display a line for the monthly average for each year? See attached. It would be something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=aggr(NODISTINCT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;avg(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;aggr(NODISTINCT Sum(TOTAL&amp;lt;Year,[Month-Year]&amp;gt;Sales),[Month-Year])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 22:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457034#M558438</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-06-10T22:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented Average Lines in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457035#M558439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rob. It works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 01:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Segmented-Average-Lines-in-Chart/m-p/457035#M558439</guid>
      <dc:creator />
      <dc:date>2013-06-13T01:32:49Z</dc:date>
    </item>
  </channel>
</rss>

