<?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 Week number starting from 1 from a random date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227876#M79964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Hi All,&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I have a date field starting from 26-Nov-2009 . . . . etc.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I have a list box with field called "Week" but it shows actual week number from 48 49 50. . . etc&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I want it as 1 2 3 .&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;How would I achieve this. ? Thanks in Advance&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Ren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2010 10:16:11 GMT</pubDate>
    <dc:creator>renjithpl</dc:creator>
    <dc:date>2010-10-05T10:16:11Z</dc:date>
    <item>
      <title>Week number starting from 1 from a random date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227876#M79964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Hi All,&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I have a date field starting from 26-Nov-2009 . . . . etc.&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I have a list box with field called "Week" but it shows actual week number from 48 49 50. . . etc&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;I want it as 1 2 3 .&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;How would I achieve this. ? Thanks in Advance&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;Ren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 10:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227876#M79964</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2010-10-05T10:16:11Z</dc:date>
    </item>
    <item>
      <title>Week number starting from 1 from a random date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227877#M79965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Assuming your start date is fixed, how about&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=If(Week &amp;gt;=48, Week - 47, Week + 4)&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 11:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227877#M79965</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-05T11:08:40Z</dc:date>
    </item>
    <item>
      <title>Week number starting from 1 from a random date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227878#M79966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey dienst thanks for the solution.&lt;/P&gt;&lt;P&gt;your coding works perfectly, but is there any solution, if my date is not fixed.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 12:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227878#M79966</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2010-10-05T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Week number starting from 1 from a random date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227879#M79967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sure. If the week numbers are based on a field or variable called baseDate:&lt;/P&gt;&lt;P&gt;&lt;B&gt;=Week&lt;/B&gt; &lt;B&gt;- week(baseDate)&lt;/B&gt; &lt;B&gt;+ If(Week &amp;gt;= week(baseDate), 1, 52)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;(refactored slightly to reduce the calculations, but mathematically the same).&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227879#M79967</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-05T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Week number starting from 1 from a random date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227880#M79968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, when i used a variable it worked.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 13:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-starting-from-1-from-a-random-date/m-p/227880#M79968</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2010-10-05T13:29:12Z</dc:date>
    </item>
  </channel>
</rss>

