<?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 return different values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835083#M68961</link>
    <description>&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;mentionned, you're using the week() function with a wrong parameter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_0-1631217699382.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61670iCB11001C9B87DF72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_0-1631217699382.png" alt="mikaelsc_0-1631217699382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;using 'DD MM YYYY' as second parameter is just as useful as using 'Mikael' as second parameter.&lt;/P&gt;&lt;P&gt;it expects the "first_week_day"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_1-1631217732824.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61671iC2243F1E928D9ECC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_1-1631217732824.png" alt="mikaelsc_1-1631217732824.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;maybe qlik could/should return an empty or null or other error value, but at the basis, you're using a wrong parameter value...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to store qvd's with week info, maybe use something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(weekstart(today()),'YYYY-MM-DD')&amp;nbsp;&lt;/P&gt;&lt;P&gt;(that should remove the "W1, W53, issues that may appear around New Year...)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 20:13:31 GMT</pubDate>
    <dc:creator>mikaelsc</dc:creator>
    <dc:date>2021-09-09T20:13:31Z</dc:date>
    <item>
      <title>Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1784100#M61119</link>
      <description>&lt;P&gt;Could anyone explain me this behavior? Today() = 19.02.2021&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waszcma1_0-1613727771157.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49424iA092D85A4968C8B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="waszcma1_0-1613727771157.png" alt="waszcma1_0-1613727771157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1784100#M61119</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2024-11-16T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1784115#M61120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42737"&gt;@waszcma1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In week, we can't assign the date format. Generally, 2nd parameter of Week in Qlik takes the firstweekday.&lt;/P&gt;&lt;P&gt;FYR:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/week.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/week.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 10:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1784115#M61120</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-02-19T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1784647#M61168</link>
      <description>&lt;P&gt;Hi, I know that syntax with week( today(),'DD-MM-YYYY') is wrong.&lt;BR /&gt;&lt;BR /&gt;I have discover this in some apps handover to me and noticed that this is have a huge impact of indexing of qvd files where this week calculation is used in naming conventions.&amp;nbsp; i.e.: store table into file_$(vWeek)_$(vYear).qvd(qvd);&lt;BR /&gt;&lt;BR /&gt;The most odd thing is that&lt;BR /&gt;- this syntax&amp;nbsp;&lt;STRONG&gt;week( today(),'DD-MM-YYYY')&lt;/STRONG&gt; is not returning any error,&lt;BR /&gt;- it is returning different value for 15-17.02.2021. value is 8&lt;BR /&gt;- while on 18-19.02.2021 value is 9&lt;BR /&gt;&lt;BR /&gt;I have discovered this when I have been asked to force reload and loading app referring to load * file_$(vWeek)_$(vYear).qvd(qvd) failed, I have debug variables and noticed that on Friday&amp;nbsp; 19.02.2021&lt;BR /&gt;&lt;BR /&gt;application was trying load the file with the name&amp;nbsp;file_9_2021.qvd(qvd)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I think this is a Qlik Sense bug&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 12:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1784647#M61168</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-02-22T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1799980#M64798</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;week(today()) | = 15 | 16.04.2021&lt;BR /&gt;week(today()),'DDMMYYYY') | = 17&amp;nbsp; | 16.04.2021&lt;BR /&gt;week(today()-1,'DDMMYYYY') | = 17 | 15.04.2021&lt;BR /&gt;week(today()-2,'DDMMYYYY') | = 16 | 14.04.2021&lt;BR /&gt;week(today()-3,'DDMMYYYY') | = 16 | 13.04.2021&lt;BR /&gt;week(today()-4,'DDMMYYYY')&amp;nbsp;| = 16 | 12.04.2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone who is more advanced&amp;nbsp; than me explain me why the syntax is working but showing wrong week number?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The interesting behaviur is that week number is +2 for Friday and Thursday but +1 for Mon-Wed&lt;BR /&gt;Is it kind of managing&amp;nbsp;BrokenWeeks ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found this in one of my client and have no idea why it was used in such way for indexing week snapshots ,do you have any idea?&amp;nbsp;&lt;BR /&gt;I think this is really bad approach as the manual reload on Friday or Thursday could casue the issue with generating snapshot file under wrong week number.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 07:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1799980#M64798</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-04-16T07:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1799991#M64799</link>
      <description>&lt;P&gt;and some more examples:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Week issue.PNG" style="width: 654px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53140iD9F8B2AD1946F565/image-size/large?v=v2&amp;amp;px=999" role="button" title="Week issue.PNG" alt="Week issue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 08:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1799991#M64799</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-04-16T08:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835077#M68959</link>
      <description>&lt;P&gt;Can anyone explain me why week() function is behaving like this with used 'DDMMYYYY' ?&lt;BR /&gt;&lt;BR /&gt;it is becouse of global settings?&lt;BR /&gt;&lt;BR /&gt;SET FirstWeekDay=0;&lt;BR /&gt;SET BrokenWeeks=0;&lt;BR /&gt;SET ReferenceDay=4;&lt;BR /&gt;SET FirstMonthOfYear=1;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835077#M68959</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-09-09T19:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835083#M68961</link>
      <description>&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;mentionned, you're using the week() function with a wrong parameter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_0-1631217699382.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61670iCB11001C9B87DF72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_0-1631217699382.png" alt="mikaelsc_0-1631217699382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;using 'DD MM YYYY' as second parameter is just as useful as using 'Mikael' as second parameter.&lt;/P&gt;&lt;P&gt;it expects the "first_week_day"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikaelsc_1-1631217732824.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61671iC2243F1E928D9ECC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikaelsc_1-1631217732824.png" alt="mikaelsc_1-1631217732824.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;maybe qlik could/should return an empty or null or other error value, but at the basis, you're using a wrong parameter value...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to store qvd's with week info, maybe use something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(weekstart(today()),'YYYY-MM-DD')&amp;nbsp;&lt;/P&gt;&lt;P&gt;(that should remove the "W1, W53, issues that may appear around New Year...)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 20:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835083#M68961</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2021-09-09T20:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Week return different values</title>
      <link>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835085#M68962</link>
      <description>&lt;P&gt;Thanks for putting more lights on this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 20:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-return-different-values/m-p/1835085#M68962</guid>
      <dc:creator>waszcma1</dc:creator>
      <dc:date>2021-09-09T20:31:54Z</dc:date>
    </item>
  </channel>
</rss>

