<?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 WeekDay giving incorrect results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263067#M1206168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there's no way to achieve this using QlikView's available function (I wasn't even aware you could do it in Oracle until I read your post). Some alternatives might include:&lt;/P&gt;&lt;P&gt;1) Write a custom function (such as the one suggested in the post above mine, which was added while I was writing this)&lt;/P&gt;&lt;P&gt;2) Get the WeekInMonth value via database query&lt;/P&gt;&lt;P&gt;3) Create a flat file / Excel sheet with a list of dates and their responding WeekInMonth values (this can be auto-generated easily), add it to your load script, and join with your existing data (We use this solution for customized week numbers and working day counts)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jun 2010 15:40:56 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2010-06-21T15:40:56Z</dc:date>
    <item>
      <title>WeekDay giving incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263063#M1206164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that weeday(date_column) should give values 1 thru 5. But It gives me Mon, Tues....Sun. How can I get the same result as Oracle function TO_CHAR(date_column,'W')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 18:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263063#M1206164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-19T18:46:04Z</dc:date>
    </item>
    <item>
      <title>WeekDay giving incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263064#M1206165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wrap it with the num() function.&lt;/P&gt;&lt;P&gt;num(weekday(date_column))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2010 19:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263064#M1206165</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-06-19T19:24:21Z</dc:date>
    </item>
    <item>
      <title>WeekDay giving incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263065#M1206166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I was looking for is the Week of Month. The Week function gives Week of the Year. How do I achieve this? Same as Oracle TO_CHAR(DATE,'W').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 15:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263065#M1206166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-21T15:16:06Z</dc:date>
    </item>
    <item>
      <title>WeekDay giving incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263066#M1206167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;= floor(day(date#('6/30/2010')) / 7)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 15:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263066#M1206167</guid>
      <dc:creator />
      <dc:date>2010-06-21T15:31:23Z</dc:date>
    </item>
    <item>
      <title>WeekDay giving incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263067#M1206168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there's no way to achieve this using QlikView's available function (I wasn't even aware you could do it in Oracle until I read your post). Some alternatives might include:&lt;/P&gt;&lt;P&gt;1) Write a custom function (such as the one suggested in the post above mine, which was added while I was writing this)&lt;/P&gt;&lt;P&gt;2) Get the WeekInMonth value via database query&lt;/P&gt;&lt;P&gt;3) Create a flat file / Excel sheet with a list of dates and their responding WeekInMonth values (this can be auto-generated easily), add it to your load script, and join with your existing data (We use this solution for customized week numbers and working day counts)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 15:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WeekDay-giving-incorrect-results/m-p/263067#M1206168</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-06-21T15:40:56Z</dc:date>
    </item>
  </channel>
</rss>

