<?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: Problem with 53rd week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015573#M525473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pekka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.6667px;"&gt;weekyear() &lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;instead of&lt;/SPAN&gt; year() &lt;SPAN style="font-size: 10pt;"&gt;to have the corerect year corresponding to each week.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week(&lt;EM style="color: #999999;"&gt;date&lt;/EM&gt;) &amp;amp; '/' &amp;amp; WeekYear(&lt;EM style="color: #999999;"&gt;date&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 11:19:14 GMT</pubDate>
    <dc:creator>sfatoux72</dc:creator>
    <dc:date>2016-01-04T11:19:14Z</dc:date>
    <item>
      <title>Problem with 53rd week</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015571#M525469</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 a chart in my app which has weeks as a time dimension. 2015 had 53 weeks and week 53 spans the end of 2015 and beginning of 2016. Now, the weeks in 2015 are sorted correctly (49,50,51.. etc.) but the weeks in 2016 are not. Week 53, which in this case is before the first week of the year should come first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110460_Capture.PNG" style="height: 201px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I sort the time dimension so that the weeks appear in correct order? In addition, this would also cause problems if year 2016 would have 53 weeks. Luckily it doesn't, but is there something I could do to handle these kind of exceptions correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 07:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015571#M525469</guid>
      <dc:creator />
      <dc:date>2016-01-04T07:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 53rd week</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015572#M525471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to create a week sequence number in the load script using the week number and the year - it seems you are doing that so just tweak the definition to make a dual value with the correct sort sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOAD Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual(WeekNo &amp;amp; "\" &amp;amp; Year, Year * 100 + WeekNo) As WeekSeq,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use WeekSeq&amp;nbsp; as the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 11:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015572#M525471</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-04T11:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 53rd week</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015573#M525473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pekka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;SPAN style="color: #444444; font-family: 'Lucida Console', Monaco, monospace; font-size: 10.6667px;"&gt;weekyear() &lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;instead of&lt;/SPAN&gt; year() &lt;SPAN style="font-size: 10pt;"&gt;to have the corerect year corresponding to each week.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week(&lt;EM style="color: #999999;"&gt;date&lt;/EM&gt;) &amp;amp; '/' &amp;amp; WeekYear(&lt;EM style="color: #999999;"&gt;date&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 11:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015573#M525473</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2016-01-04T11:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 53rd week</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015574#M525475</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;BR /&gt;Thank you very much! Both were working solutions. I ended up using the one suggested by Jonathan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 12:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-53rd-week/m-p/1015574#M525475</guid>
      <dc:creator />
      <dc:date>2016-01-04T12:55:27Z</dc:date>
    </item>
  </channel>
</rss>

