<?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 multiple years in line chart with range selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572918#M546771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a line chart I want to display the trend over &lt;STRONG&gt;multiple&lt;/STRONG&gt; &lt;STRONG&gt;years &lt;/STRONG&gt;plus a range selection the user can set.&lt;/P&gt;&lt;P&gt;I have to distinguish between &lt;EM&gt;CalendarWeek&lt;/EM&gt; and &lt;EM&gt;CalendarMonth&lt;/EM&gt;. They are mutually exclusive so I show/hide them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've concatenated Year &amp;amp;'-'&amp;amp; CalendarWeek AS &lt;STRONG&gt;YearWeek&lt;/STRONG&gt; and Year &amp;amp;'-'&amp;amp; CalendarMonth AS &lt;STRONG&gt;YearMonth&lt;/STRONG&gt; but&amp;nbsp; this doesn't work with the variable I use to select the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;CalendarWeek={"&amp;gt;=$(=Max(CalendarWeek)- ($(vSetCalendarRange)-1))&amp;lt;=$(=Max(CalendarWeek))"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course Max(YearWeek) doesn't return a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to fix this so that the range selection works over more than one year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 13:11:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-26T13:11:28Z</dc:date>
    <item>
      <title>multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572918#M546771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a line chart I want to display the trend over &lt;STRONG&gt;multiple&lt;/STRONG&gt; &lt;STRONG&gt;years &lt;/STRONG&gt;plus a range selection the user can set.&lt;/P&gt;&lt;P&gt;I have to distinguish between &lt;EM&gt;CalendarWeek&lt;/EM&gt; and &lt;EM&gt;CalendarMonth&lt;/EM&gt;. They are mutually exclusive so I show/hide them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've concatenated Year &amp;amp;'-'&amp;amp; CalendarWeek AS &lt;STRONG&gt;YearWeek&lt;/STRONG&gt; and Year &amp;amp;'-'&amp;amp; CalendarMonth AS &lt;STRONG&gt;YearMonth&lt;/STRONG&gt; but&amp;nbsp; this doesn't work with the variable I use to select the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;CalendarWeek={"&amp;gt;=$(=Max(CalendarWeek)- ($(vSetCalendarRange)-1))&amp;lt;=$(=Max(CalendarWeek))"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course Max(YearWeek) doesn't return a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to fix this so that the range selection works over more than one year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 13:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572918#M546771</guid>
      <dc:creator />
      <dc:date>2014-02-26T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572919#M546772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly create a CalenderWeek in script like Wee(date) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CalendarWeek&lt;/SPAN&gt; then used expession like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CalendarWeek&lt;/SPAN&gt;={"&amp;lt;=$(=max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CalendarWeek&lt;/SPAN&gt;))&amp;gt;=$(=max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CalendarWeek&lt;/SPAN&gt;)-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;($(vSetCalendarRange)-1)&lt;/SPAN&gt;)"}},Qtr=&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Amount&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got somthing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 13:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572919#M546772</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-02-26T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572920#M546773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@sunil: this looks like what I already have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 13:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572920#M546773</guid>
      <dc:creator />
      <dc:date>2014-02-26T13:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572921#M546774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you concatenated like..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Week(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;'-'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TempDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572921#M546774</guid>
      <dc:creator />
      <dc:date>2014-02-26T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572922#M546775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a master calendar in use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use a master calendar and you create a slider variable for the desired master calendar object your selection will show the range you set. Then you do not even need your set analysis. The date range selected will calculate the sum(amount).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572922#M546775</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2014-02-26T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572923#M546776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not have a master calendar in use. I already get the week, month and year numbers from the db-table.&lt;/P&gt;&lt;P&gt;Can I build a master calendar based on those three fields or is there a simpler approach I could try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 06:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572923#M546776</guid>
      <dc:creator />
      <dc:date>2014-02-27T06:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: multiple years in line chart with range selection</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572924#M546777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Build a master caledner on the deepest date you use. From your fact table build a master calender on the date.&lt;/P&gt;&lt;P&gt;If you want to build a master calender with the mentioned fields you can use the makedate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(year, month,day). If you do not give the field for day, 1 is presumed and you will get a date: 2014-02-01 for february 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link your master calender to this date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this forum are many examples to be found for master calendars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 13:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-years-in-line-chart-with-range-selection/m-p/572924#M546777</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2014-02-27T13:10:36Z</dc:date>
    </item>
  </channel>
</rss>

