<?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: How to enter current week as two digits in a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458698#M435653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A better solution could be: &lt;STRONG&gt;=Purgechar(Weekname(today(),-1),'/')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188906_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2018 10:45:02 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-01-04T10:45:02Z</dc:date>
    <item>
      <title>How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458693#M435648</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 have a script where I need to enter the current year and week as fields. The problem is that I need to enter the current week as two digits (08, 09, 10, 11 etc), but now it enters the week as 8, 9, 10, 11 so the end result for this week is 20181 and not 201801.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to set the week standard value as XX and not X?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vWeek=Year(now())&amp;amp;week((now()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTOSTOCK:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DEAL AS [DEALER],&lt;/P&gt;&lt;P&gt;PRIS&lt;SPAN style="font-size: 10pt;"&gt; AS PRICE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$(vWeek) AS Week;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458693#M435648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458694#M435649</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vWeek=Year(now())&amp;amp; &lt;STRONG&gt;Num(&lt;/STRONG&gt; week((now()))&lt;STRONG&gt;, '00')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458694#M435649</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-04T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458695#M435650</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vWeek=Year(now())&amp;amp;Num(week((now())),'00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vWeek=Year(now())&amp;amp;Num(week(now()),'00')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 09:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458695#M435650</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2018-01-04T09:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458696#M435651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response. It worked like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you also know if it is possible to write it as last week so it shows 201752? That is current week minus 1 week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 10:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458696#M435651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T10:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458697#M435652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vWeek=Year(now())&amp;amp; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Num(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt; week((&lt;STRONG&gt;Today()-7&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, '00')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 10:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458697#M435652</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-04T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458698#M435653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A better solution could be: &lt;STRONG&gt;=Purgechar(Weekname(today(),-1),'/')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188906_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 10:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458698#M435653</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-04T10:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to enter current week as two digits in a string</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458699#M435654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beautiful! Works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 11:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-enter-current-week-as-two-digits-in-a-string/m-p/1458699#M435654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-04T11:33:04Z</dc:date>
    </item>
  </channel>
</rss>

