<?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 Qlikview and week 53 year 2016? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063052#M523770</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 having a big trouble with my QlikView viz.&lt;/P&gt;&lt;P&gt;The viz is showing now weekly based trendlines and we are compering lines between years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the year 2016 line continues all the way to the week 53, that obviously has not yet reached for this year.&lt;/P&gt;&lt;P&gt;This is some ISO-date problems within the program.. Is there any solutions how this can be fixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the &lt;A _jive_internal="true" href="https://community.qlik.com/thread/48693"&gt;QlikView Mastercalendar&lt;/A&gt; code to generate dates based on my own datefield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="week.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119256_week.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The orange line is the problem here... The straight line from week 11 to the week 53 should not be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 08:34:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-24T08:34:48Z</dc:date>
    <item>
      <title>Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063052#M523770</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 having a big trouble with my QlikView viz.&lt;/P&gt;&lt;P&gt;The viz is showing now weekly based trendlines and we are compering lines between years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the year 2016 line continues all the way to the week 53, that obviously has not yet reached for this year.&lt;/P&gt;&lt;P&gt;This is some ISO-date problems within the program.. Is there any solutions how this can be fixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the &lt;A _jive_internal="true" href="https://community.qlik.com/thread/48693"&gt;QlikView Mastercalendar&lt;/A&gt; code to generate dates based on my own datefield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="week.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119256_week.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;The orange line is the problem here... The straight line from week 11 to the week 53 should not be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 08:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063052#M523770</guid>
      <dc:creator />
      <dc:date>2016-03-24T08:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063053#M523771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should use a year field for your graph created with WeekYear() function, instead of just Year():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor473"&gt;&lt;/A&gt;&lt;A name="weekyear"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;weekyear(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;date&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;/P&gt;&lt;P&gt;The year to which the week number belongs. The week number ranges between 1 and approximately 52. Some years week #1 starts in December, e.g. December 1997. Other years start with week #53 of previous year, e.g. January 1999. For those few days when the week number belongs to another year, the functions &lt;SPAN class="Bold"&gt;year&lt;/SPAN&gt; and &lt;SPAN class="Bold"&gt;weekyear&lt;/SPAN&gt; will return different values. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;weekyear( '1996-12-30' )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;1997&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;weekyear( '1997-01-02' )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;1997&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;weekyear( '1997-12-30' )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;1997&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;weekyear( '1999-01-02' )&lt;/SPAN&gt; returns &lt;SPAN class="Italic"&gt;1998&lt;/SPAN&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 10:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063053#M523771</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T10:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063054#M523772</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;Thank you for your input, I will look on to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have two dimensions for time and they are as follows in this order:&lt;/P&gt;&lt;P&gt;=if(len(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WeekYear&lt;/SPAN&gt;)=6,left(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WeekYear&lt;/SPAN&gt;,1),left(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WeekYear&lt;/SPAN&gt;,2))&lt;/P&gt;&lt;P&gt;=right(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WeekYear&lt;/SPAN&gt;,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WeekYear is a field from the MasterCalendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Niko&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 12:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063054#M523772</guid>
      <dc:creator />
      <dc:date>2016-03-24T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063055#M523773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is WeekYear created in the script, i.e. is the Year based on Year(Date) or WeekYear(Date)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063055#M523773</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T13:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063056#M523774</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;It is generated like Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;WeekYear&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;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063056#M523774</guid>
      <dc:creator />
      <dc:date>2016-03-24T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063057#M523775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't reproduce the issue with some simple data, the line only gets to week 53 in year 2016 when the 'standard' year is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Attached my sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063057#M523775</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-24T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063058#M523776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, thank you for your sample workbook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also having 3 different expressions on my chart, may that 'cause the false line on the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is expression for the line that shows two years back:&lt;/P&gt;&lt;P&gt;=if(isNull(GetFieldSelections(Year)),sum({&amp;lt;Year={"$(vMaxYearMinus2)"}, Week=&amp;gt;} #1), sum({&amp;lt;Year={$(=Max(Year-2))}, Week=&amp;gt;}#1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these expressions 3 times, for each "year". Current, current-1 and current-2.&lt;/P&gt;&lt;P&gt;And this is for that the lines will dynamically change when user makes selections. And as a default we show the value with variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe not the best way to do it, but it works for the purpose &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063058#M523776</guid>
      <dc:creator />
      <dc:date>2016-03-29T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063059#M523777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, when I removed the 3 custom expressions, it showed the year 2016 without the long line to the week 53.&lt;/P&gt;&lt;P&gt;But this removes my filtering for 3 top years ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063059#M523777</guid>
      <dc:creator />
      <dc:date>2016-03-29T07:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063060#M523778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well actually when selecting year 2016 from the filters, it will show a dot on the timeline for week 53 alltho' it is colored for year 2015. Odd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063060#M523778</guid>
      <dc:creator />
      <dc:date>2016-03-29T07:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063061#M523779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you update my sample file that it matches your setting and demonstrates your issue?&lt;/P&gt;&lt;P&gt;Then upload it to this thread, please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 13:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063061#M523779</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-29T13:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063062#M523780</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 attached a new file. On this file you can find on the right upper corner my issue with the three expressions. It just continues to the the week 53.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 05:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063062#M523780</guid>
      <dc:creator />
      <dc:date>2016-03-30T05:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063063#M523781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression you are still referring to the Year (based on month) instead of the Year of the week (in your example defined as WeekYear2) for your Set Analysis. If you are referring to WeekYear2 instead, everything should work fine:&lt;/P&gt;&lt;P&gt;=if(isNull(GetFieldSelections(WeekYear2)),sum({&amp;lt;WeekYear2={"$(vMaxYear)"}, Week=&amp;gt;} Value), sum({&amp;lt;WeekYear2={$(=Max(Vuosi))}, Week=&amp;gt;} Value))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 08:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063063#M523781</guid>
      <dc:creator />
      <dc:date>2016-03-30T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063064#M523782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should also use a WeekYear field in your set expression field modiifer then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(isNull(GetFieldSelections(Year)),sum({&amp;lt;&lt;STRONG&gt;WeekYear2&lt;/STRONG&gt;={"$(vMaxYear)"}, Week=&amp;gt;} Value), sum({&amp;lt;&lt;STRONG&gt;WeekYear2&lt;/STRONG&gt;={$(=Max(Vuosi))}, Week=&amp;gt;} Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe your GetFieldSelections should also check on a WeekYear field, not sure what this expression should actually do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 10:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063064#M523782</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-30T10:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063065#M523783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well that indeed does the trick! Now I have to wonder should I use that to all my expressions and calculations or only in this chart.. There would be many expressions to change here, but that truly did change it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to create WeekYear field on the editor load for this just from the temdate, just like you had done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The if(isnull) check is just for there if user has done any selections or not. If not, then we show max year and if he makes year selections we show the max year from those selections. For example the selection is 2002-2005, we show 2005 on this line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Niko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 10:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063065#M523783</guid>
      <dc:creator />
      <dc:date>2016-03-30T10:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview and week 53 year 2016?</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063066#M523784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;num(Week(DateNum), '00') as CalWeek52,&lt;/P&gt;&lt;P&gt;num(if(Week(DateNum) = 1 and Month(DateNum) = 12, 53, if(Week(DateNum) = 53 and Month(DateNum) = 1, 1,Week(DateNum))), '00') as CalWeek53,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-and-week-53-year-2016/m-p/1063066#M523784</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2016-09-29T16:06:33Z</dc:date>
    </item>
  </channel>
</rss>

