<?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: Compare YoY Sales in the same line graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942326#M973025</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;In the expression use this formula&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={'2014'}&amp;gt;}Sales)&amp;nbsp; for the YOY for 2014&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({&amp;lt;Year={'2015'}&amp;gt;}Sales) for YOY for 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 06:19:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-14T06:19:22Z</dc:date>
    <item>
      <title>Compare YoY Sales in the same line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942325#M973024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to see a simple line graph that shows a line for FY14 sales and a separate line for FY15 sales on the same line graph.&amp;nbsp; Data is ordered sequentially and example graph below.&amp;nbsp;&amp;nbsp; I've read a few forums with very complicated suggestions for complicated datasets, but mine is simple - 2 cuts of the same dataset.&amp;nbsp;&amp;nbsp;&amp;nbsp; I assume I create an Expression with a formula&amp;nbsp; (e.g. Sales&amp;nbsp; where Year = 2014) and another Expression (&lt;SPAN style="font-size: 13.3333px;"&gt; Sales&amp;nbsp; where Year = 2015), so what's the syntax to show only a limited selection of the same data ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="224"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Year&lt;/TD&gt;&lt;TD width="80"&gt;Month&lt;/TD&gt;&lt;TD width="80"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;January&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;65%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;February&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;72%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;March&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;66%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;April&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;May&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;60%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;January&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;70%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;February&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;73%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;March&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;April&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;70%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl66"&gt;May&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;65%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="98772" alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98772_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And second question is - how do I then add a singular line that represents the target ?&amp;nbsp; So if Target is 80% across the year, can I do this another way that doesn't involve adding it line by line in to the source data ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942325#M973024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T06:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare YoY Sales in the same line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942326#M973025</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;In the expression use this formula&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={'2014'}&amp;gt;}Sales)&amp;nbsp; for the YOY for 2014&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({&amp;lt;Year={'2015'}&amp;gt;}Sales) for YOY for 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942326#M973025</guid>
      <dc:creator />
      <dc:date>2015-09-14T06:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare YoY Sales in the same line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942327#M973026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={2015}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={2014}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942327#M973026</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-14T06:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare YoY Sales in the same line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942328#M973027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a variable lik&lt;/P&gt;&lt;P&gt;vYear= max(Year)-1&lt;/P&gt;&lt;P&gt;then create a input box with variable vYear&lt;/P&gt;&lt;P&gt;create chart with expressions&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;Year={$(=Max(Year))}&amp;gt;} Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({$&amp;lt;Year={$(=Max(Year)-vYear)}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;you can compare 2015 with 2014 and also with more previous years by changing values in input box&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942328#M973027</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-09-14T06:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compare YoY Sales in the same line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942329#M973028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone - I especially like the input box variable idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also just worked out how simple my second question is to answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A third Expression with =80%&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 06:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942329#M973028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T06:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare YoY Sales in the same line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942330#M973029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your second question, you could also just add a Reference Line on the bottom right of the Presentation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Reference Line.PNG" class="jive-image image-1" src="/legacyfs/online/143002_Reference Line.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 20:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-YoY-Sales-in-the-same-line-graph/m-p/942330#M973029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-04T20:42:36Z</dc:date>
    </item>
  </channel>
</rss>

