<?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: Comparing periods in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057338#M465602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt;{&amp;lt;SalesDate = {"&amp;gt;=$(=Date(AddMonths(max(&lt;STRONG&gt;SalesDate&lt;/STRONG&gt;),-23),'DD-MMM'))"}&amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Mar 2016 10:01:45 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-03-12T10:01:45Z</dc:date>
    <item>
      <title>Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057335#M465599</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 need to compare sales periods for a product, for a sale period that crosses 2 subsequent years, in a line chart.&lt;/P&gt;&lt;P&gt;On the X axis i have the sales date in DD-MMM format.&lt;/P&gt;&lt;P&gt;The Year dimension is no good because it will not show the sales for 2 years in the same line.&lt;/P&gt;&lt;P&gt;How can i define the correct period dimension in order to compare them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 20:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057335#M465599</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-03-11T20:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057336#M465600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use set analysis in your expression&amp;nbsp; to filter your date dimension, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt;{&amp;lt;SalesDate = {"&amp;gt;=$(=Date(AddMonths(Today(),-24),'DD-MMM YYYY'))"}&amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(assuming that you also have year YYYY in your SalesDate field format).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't help, then please post a small sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 21:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057336#M465600</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-11T21:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057337#M465601</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;Can you tell your Date Format,It Contains Year or not,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: DD/MM/YYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can have a expression like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14577754919583804 jive_text_macro" jivemacro_uid="_14577754919583804"&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt; Date={‘&amp;gt;=$(=MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(Date)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, -23))&amp;lt;=$(=Date(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(Date)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))’}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 09:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057337#M465601</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-03-12T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057338#M465602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt;{&amp;lt;SalesDate = {"&amp;gt;=$(=Date(AddMonths(max(&lt;STRONG&gt;SalesDate&lt;/STRONG&gt;),-23),'DD-MMM'))"}&amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057338#M465602</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-12T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057339#M465603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear People,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The business case are selling flights which can be done in a previous year and in the current year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So it might be helpful to understand.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In case the user select product from previous years then each sale period would be composed of 2 consecutive years which are joined together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The customer demands that the display on the X-axis would be DD-MMM, because he wants to see a day to day accumulated sales progress.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The original date is DD/MM/YYYY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Attached is a simple model to demonstrate the issue.&lt;/P&gt;&lt;P&gt;I would like to see the sale period as one line, instead of two for each year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057339#M465603</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-03-12T10:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057340#M465604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, can you somehow outline / sketch how you want to show your two year period in this kind of chart, then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe using a hand-made sketch drawing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057340#M465604</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-12T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057341#M465605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be one line as shown in this chart, but the dates would be in descending order:&lt;/P&gt;&lt;P&gt;for example: November, December (of previous year), and then January, February (of the current year):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://screencast.com/t/msOZfqfsZJkX" title="http://screencast.com/t/msOZfqfsZJkX"&gt;http://screencast.com/t/msOZfqfsZJkX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057341#M465605</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-03-12T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057342#M465606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you probably just want to use SalesDate as dimension (not your ResvDayMonth field), maybe formatted as DD-MMM, but keeping the underlying numeric value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then limit your SalesDate using one of the set expressions shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should show you the year range across year bounderies, with SalesDate shown in chronologic correct order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057342#M465606</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-12T10:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057343#M465607</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 still can't figure how the second dimension (Year)&amp;nbsp; would be correctly generated.&lt;/P&gt;&lt;P&gt;As we see, it should be merged to one period (e.g., 2014-2015).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 10:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057343#M465607</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-03-12T10:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057344#M465608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the solution is to use the year of the flight sold instead of the year from the order date.&lt;/P&gt;&lt;P&gt;This way, each line is drawn correctly:&lt;/P&gt;&lt;P&gt;&lt;A href="http://screencast.com/t/BKcZ0aRf03rZ" title="http://screencast.com/t/BKcZ0aRf03rZ"&gt;2016-03-12_1320 - DafnaLe's library&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 11:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057344#M465608</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2016-03-12T11:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing periods in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057345#M465609</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;Check this, is this what you required!!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By creating a Date Field in Script and a Calculated dimension in Chart for only last two years .&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="117768" alt="Sales Progress (1).PNG" class="jive-image image-1" src="/legacyfs/online/117768_Sales Progress (1).PNG" style="height: 266px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14577834196979212 jive_text_macro" jivemacro_uid="_14577834196979212"&gt;
&lt;P&gt;=Aggr(Only({&amp;lt;Year={'$(=Max(Year))','$(=Max(Year)-1)'}&amp;gt;} Year),Year)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 11:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-periods-in-line-chart/m-p/1057345#M465609</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-03-12T11:50:49Z</dc:date>
    </item>
  </channel>
</rss>

