<?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: Leading Zero for Calendarweeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71549#M11754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(&lt;/STRONG&gt;Week(Date),&lt;STRONG&gt;'00')&lt;/STRONG&gt; as TwoDigitWeek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 10:19:34 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-02-08T10:19:34Z</dc:date>
    <item>
      <title>Leading Zero for Calendarweeks</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71548#M11753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am generating a Year &amp;amp; Calendarweek Field with the help of my date field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From week 1-9 the leading Zero is missing, which I need and I am adding it artificially with following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;weekYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&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;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))=1,0 &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;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&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;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) )) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year_Week &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Now I wonder, if there is a better way to force QlikView to put a leading Zero to the Week String?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 10:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71548#M11753</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2018-02-08T10:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero for Calendarweeks</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71549#M11754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(&lt;/STRONG&gt;Week(Date),&lt;STRONG&gt;'00')&lt;/STRONG&gt; as TwoDigitWeek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 10:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71549#M11754</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-08T10:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Leading Zero for Calendarweeks</title>
      <link>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71550#M11755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I tried it with num(Week(date),'##') but this did not work....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 10:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Leading-Zero-for-Calendarweeks/m-p/71550#M11755</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2018-02-08T10:45:06Z</dc:date>
    </item>
  </channel>
</rss>

