<?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: Multiple lines in a line graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330473#M1172143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;avg(cigarette_sales) shows the average per week for your current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2012 you can use: &lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={2012}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={$(=Year(Today()))}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2011 you can use:&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={2011}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={$(=Year(addmonths(Today(),-12)))}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={$(=Year(Today())-1)}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might have missed a character here or there in my untested set anaysis &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 04:59:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-03T04:59:51Z</dc:date>
    <item>
      <title>Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330472#M1172142</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;I have created one line graph by week for the amount of Cigarette Sales. I have a requirement to plot the graph in such a way so that it plots for the weeks of the current year and also plots another line for the same weeks of previous year. So, that we can have a current year vs last year comparison. My dimension is weeknumber and my expression uses avg(cigarette_sales). My Current year is 2012 and my previous year is 2011. Week is a field defined according to my calender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to accomplish this? I would necessarily need 2 Line graphs to be displayed for 2 years in a single Line chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 04:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330472#M1172142</guid>
      <dc:creator />
      <dc:date>2012-07-03T04:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330473#M1172143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;avg(cigarette_sales) shows the average per week for your current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2012 you can use: &lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={2012}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={$(=Year(Today()))}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2011 you can use:&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={2011}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={$(=Year(addmonths(Today(),-12)))}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;avg({$&amp;lt;Year={$(=Year(Today())-1)}&amp;gt;} cigarette_sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might have missed a character here or there in my untested set anaysis &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 04:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330473#M1172143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-03T04:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330474#M1172144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done that already, but this only plots one graph in the Line chart. i.e. when I select Year as 2011 in the Year list box, it plots for 2011. Similarly for 2012. So, I have 2 line graphs which are seperate. I want both the line graphs together in one single chart, may be one displaying in green, the other in red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my X-Axis has Week numbers&lt;/P&gt;&lt;P&gt;Y Axis has the Sales figures&lt;/P&gt;&lt;P&gt;I should have 2 graphs plotted between these 2 axes for current year and previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 05:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330474#M1172144</guid>
      <dc:creator />
      <dc:date>2012-07-03T05:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330475#M1172145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tutan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For two lines in a line chart you create two expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I'm missing something here. Maybe you can attach an example app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 05:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330475#M1172145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-03T05:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330476#M1172146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tutan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As told by Johannes, you will have to create two different expressions if you want to have two lines in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample file.&lt;/P&gt;&lt;P&gt;That might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 11:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330476#M1172146</guid>
      <dc:creator>manisha_uit</dc:creator>
      <dc:date>2012-07-03T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330477#M1172147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance a new qvw file for solution can be added that allows me to open in personal edition of Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 14:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330477#M1172147</guid>
      <dc:creator />
      <dc:date>2012-07-09T14:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple lines in a line graph</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330478#M1172148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personal edition can only open files you've created yourself. It can't be used to open any file made by someone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 14:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-lines-in-a-line-graph/m-p/330478#M1172148</guid>
      <dc:creator />
      <dc:date>2012-07-09T14:52:33Z</dc:date>
    </item>
  </channel>
</rss>

