<?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: Clarification regarding Weekend() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356932#M416347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco. problem got resolved as you and sunny suggested. Carelessness on my part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 12:41:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-10T12:41:37Z</dc:date>
    <item>
      <title>Clarification regarding Weekend()</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356928#M416343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using Qlikview 11 and wanted&amp;nbsp; clarification regarding &lt;STRONG&gt;weekend()&lt;/STRONG&gt; function. below is the expression and it's results. i am really confused about the results and need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date format is&amp;nbsp; m/d/yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weekend('1/3/2017',1,-1), result is 1/14/2017. Why is its so?. Here i am asking the weekend date of the previous week, which should be 1/2/2017 as i am using offset 1(Tuesday is the first day of the current week right? and 3rd January is Tuesday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also is there anyway to know the value of the variable firstweekday already loaded in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be glad to get some help from you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356928#M416343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-10T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding Weekend()</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356929#M416344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have misplaced -1 and 1, try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;WeekEnd('1/3/2017',&lt;SPAN style="color: #ff0000;"&gt;-1&lt;/SPAN&gt;,&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356929#M416344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-10T12:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding Weekend()</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356930#M416345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The arguments are like:&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt;WeekEnd(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="bnf_token"&gt;date [, period_no = 0 [, first_week_day=0]]&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to get your desired result you should try&lt;STRONG&gt; exchanging your parameters&lt;/STRONG&gt;, like :&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt;=weekend(&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;'1/3/2017'&lt;/SPAN&gt;,&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;-1,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356930#M416345</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-07-10T12:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding Weekend()</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356931#M416346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny. it worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356931#M416346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-10T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding Weekend()</title>
      <link>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356932#M416347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco. problem got resolved as you and sunny suggested. Carelessness on my part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clarification-regarding-Weekend/m-p/1356932#M416347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-10T12:41:37Z</dc:date>
    </item>
  </channel>
</rss>

