<?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: Weeknumber with two digits in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100455#M906430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jharke,&lt;/P&gt;&lt;P&gt;however You can Use WeekName() function&lt;/P&gt;&lt;P&gt;WeekName(Date) -&amp;gt; 2016/04&lt;/P&gt;&lt;P&gt;This is Dual Field (Text and Number)&lt;/P&gt;&lt;P&gt;So, no problem with sort.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 14:07:24 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2016-06-23T14:07:24Z</dc:date>
    <item>
      <title>Weeknumber with two digits</title>
      <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100451#M906426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goodafternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field 'printingdate' which gives the date of making an invoice. I want to make a variable / field that gives the year + weeknumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With CTRL + ALT + V&amp;nbsp; I have defined: &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;[Print Date]&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;week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Print Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But if I sort descending. I get 2016_3 above 2016_25.&lt;/P&gt;&lt;P&gt;So I like to get every weeknumber with 2 digits --&amp;gt; 2016_3 should be 2016_03.&lt;/P&gt;&lt;P&gt;How do I get this right?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128981_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100451#M906426</guid>
      <dc:creator>jharke</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weeknumber with two digits</title>
      <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100452#M906427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Num(Week([Print Date]),'00')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100452#M906427</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-06-23T13:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Weeknumber with two digits</title>
      <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100453#M906428</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;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Print Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;amp;'_'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Print Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;nbsp; please make this as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Print Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&amp;amp;'_'&amp;amp;num(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Print Date]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;)&amp;nbsp; ,'00')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But not sure of&amp;nbsp;&amp;nbsp; 'sorting oder' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If the problem still persists, i think you should go for DUAL function for the correct SORTING .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100453#M906428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-23T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Weeknumber with two digits</title>
      <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100454#M906429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alluraiah Allu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer of Antonio Mancini was first and ok.&lt;/P&gt;&lt;P&gt;But about the DUAL function: how would it look like if I use that one?&lt;/P&gt;&lt;P&gt;If I don't use the NUM function, the value 2016_3 is seen as text, i guess?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100454#M906429</guid>
      <dc:creator>jharke</dc:creator>
      <dc:date>2016-06-23T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weeknumber with two digits</title>
      <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100455#M906430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jharke,&lt;/P&gt;&lt;P&gt;however You can Use WeekName() function&lt;/P&gt;&lt;P&gt;WeekName(Date) -&amp;gt; 2016/04&lt;/P&gt;&lt;P&gt;This is Dual Field (Text and Number)&lt;/P&gt;&lt;P&gt;So, no problem with sort.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100455#M906430</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-06-23T14:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Weeknumber with two digits</title>
      <link>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100456#M906431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, the result is the same indeed, and easier (only the '_' becomes a '/' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeknumber-with-two-digits/m-p/1100456#M906431</guid>
      <dc:creator>jharke</dc:creator>
      <dc:date>2016-06-23T14:13:26Z</dc:date>
    </item>
  </channel>
</rss>

