<?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: WeekDay Confusement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682611#M450194</link>
    <description>&lt;P&gt;The num of weekday () range from 0 to 6, 6 is the last day of the week.&lt;/P&gt;&lt;P&gt;If you set Sunday to be the first day of the week then Saturday will become the last, therefore the underlying num of Saturday will become 6 and the num of Sunday will become 0.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Mar 2020 07:56:20 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-03-07T07:56:20Z</dc:date>
    <item>
      <title>WeekDay Confusement</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682606#M450193</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have difficulties in understanding the behavior of the WeekDay function.&lt;/P&gt;&lt;P&gt;Today is Saturday. But I don't get the correct weekday.&lt;/P&gt;&lt;P&gt;Both in Sense &amp;amp; View, the settings are:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;SET FirstWeekDay=6;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;In View:&amp;nbsp;&lt;/FONT&gt;&lt;FONT&gt;WeekDay(Today())&amp;nbsp; shows Wed,&amp;nbsp;Num(WeekDay(Today())) shows 3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;In Sense:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WeekDay(Today())&amp;nbsp; shows Thu,&lt;/FONT&gt;&lt;FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Num(WeekDay(Today())) shows 4&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Edit:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;In View, I Updated to&amp;nbsp;&amp;nbsp;WeekDay(Today&lt;FONT color="#FF0000"&gt;(1)&lt;/FONT&gt;) and now I get Sat, as expected, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;but the Num(WeekDay(Today&lt;FONT color="#FF0000"&gt;(1)&lt;/FONT&gt;)) shows 6, instead of 5.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Can someone please help me in better understanding this function?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682606#M450193</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2024-11-16T01:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: WeekDay Confusement</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682611#M450194</link>
      <description>&lt;P&gt;The num of weekday () range from 0 to 6, 6 is the last day of the week.&lt;/P&gt;&lt;P&gt;If you set Sunday to be the first day of the week then Saturday will become the last, therefore the underlying num of Saturday will become 6 and the num of Sunday will become 0.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 07:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682611#M450194</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-07T07:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: WeekDay Confusement</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682614#M450195</link>
      <description>&lt;P&gt;Thanks for clarifying..&lt;/P&gt;&lt;P&gt;Now the Help is clearer:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The integer returned by the function will now use the first day of the week that you set with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;first_week_day&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp;as base (0)."&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 08:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682614#M450195</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2020-03-07T08:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: WeekDay Confusement</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682617#M450196</link>
      <description>&lt;P&gt;This is done to get the sort order right on weekdays.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 09:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-Confusement/m-p/1682617#M450196</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-07T09:13:06Z</dc:date>
    </item>
  </channel>
</rss>

