<?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: Week number past 52 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814123#M287201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same issue earlier last week,&lt;/P&gt;&lt;P&gt;In the below i have current week as vWeek_0, previous week as vWeek_1.&lt;/P&gt;&lt;P&gt;You will also have additional date field of WeekName() format, lets call that field "fld_YearWeek".&lt;/P&gt;&lt;P&gt;I assumed Week starts on Monday(which is today, 2015/01/05) and to go previous week is -7 days:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWeek_0 =Weekname(Date( Today() - 0 , 'YYYY/MM/DD')) , this gives 2015/02&lt;/P&gt;&lt;P&gt;Week_1 =Weekname(Date( Today() - 7 , 'YYYY/MM/DD')) , this gives 2015/01...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the expression:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;fld_YearWeek={'$(=(vWeek_0))''}&amp;nbsp; &amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can expand from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 14:18:33 GMT</pubDate>
    <dc:creator>jpenuliar</dc:creator>
    <dc:date>2015-01-05T14:18:33Z</dc:date>
    <item>
      <title>Week number past 52</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814121#M287199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, since the new year began I would need to show the % change between week 53 (in a new year) and week 52. However the week number resets to 0 for a new year. Is there a way to make the week number continue past week 52? My formula for % change is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;DAY =,MONTH =,WEEK =,WEEKNUMBER ={$(=max(WEEKNUMBER ))}&amp;gt;} Sales)-&lt;/P&gt;&lt;P&gt;count({&amp;lt;DAY =,MONTH =,WEEK =,WEEKNUMBER ={$(=max(WEEKNUMBER )-1)}&amp;gt;}&amp;nbsp; Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 07:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814121#M287199</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2015-01-05T07:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Week number past 52</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814122#M287200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write an if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vPrevWeekNumber= if(max(WEEKNUMBER)=1,52,max(WEEKNUMBER)-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;DAY =,MONTH =,WEEK =,WEEKNUMBER ={$(=max(WEEKNUMBER ))}&amp;gt;} Sales)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;DAY =,MONTH =,WEEK =,WEEKNUMBER ={$(=vPrevWeekNumber)}&amp;gt;}&amp;nbsp; Sales))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If its getting restricted by year, add year=year-1&amp;nbsp; in set analysis condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 09:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814122#M287200</guid>
      <dc:creator />
      <dc:date>2015-01-05T09:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Week number past 52</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814123#M287201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same issue earlier last week,&lt;/P&gt;&lt;P&gt;In the below i have current week as vWeek_0, previous week as vWeek_1.&lt;/P&gt;&lt;P&gt;You will also have additional date field of WeekName() format, lets call that field "fld_YearWeek".&lt;/P&gt;&lt;P&gt;I assumed Week starts on Monday(which is today, 2015/01/05) and to go previous week is -7 days:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWeek_0 =Weekname(Date( Today() - 0 , 'YYYY/MM/DD')) , this gives 2015/02&lt;/P&gt;&lt;P&gt;Week_1 =Weekname(Date( Today() - 7 , 'YYYY/MM/DD')) , this gives 2015/01...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the expression:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;fld_YearWeek={'$(=(vWeek_0))''}&amp;nbsp; &amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can expand from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814123#M287201</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-01-05T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Week number past 52</title>
      <link>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814124#M287202</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;have you looked at this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3545"&gt;Redefining the Week Numbers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Gomes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-number-past-52/m-p/814124#M287202</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2015-01-05T14:51:37Z</dc:date>
    </item>
  </channel>
</rss>

