<?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: how to get weekend date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653238#M238758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't even see those extra parameters to Weekend function haha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 12 weeks, you just want to generate the dates of those weekending dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do an autogenerate like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weeks:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date(floor(WeekEnd(today(),0,5))-7*(13-Iterno())) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate(1)&lt;/P&gt;&lt;P&gt;while Iterno() &amp;lt;=13;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't want you wanted, can you explain it a little more? Is there some linking you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 16:17:05 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-06-10T16:17:05Z</dc:date>
    <item>
      <title>how to get weekend date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653233#M238753</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 having a date filed from it I got month quarter and year but unable to get weekend date&lt;/P&gt;&lt;P&gt;my weekend date will Friday in every week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example today is 6/10/2014 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my week end date will be 6/13/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after getting the week end day i need to create a filed for calculating current 12 weeks i.e 6/13/2014 - 12 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me in this thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 15:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653233#M238753</guid>
      <dc:creator />
      <dc:date>2014-06-10T15:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to get weekend date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653234#M238754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like below ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date('01/01/2014') as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date('31/12/2014') as MaxDate&lt;/P&gt;&lt;P&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = NUM(PEEK('MinDate',0,'Temp'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = NUM(PEEK('MaxDate',0,'Temp'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(WeekDay(Date)=4,Date) as FridayDate;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vMinDate) + IterNo() - 1) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;While $(vMinDate) + IterNo() - 1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 15:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653234#M238754</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-10T15:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get weekend date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653235#M238755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Weekend function and subtract it by 2 to get friday like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(floor(WeekEnd(DateField))-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how you want to implement your 12 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(floor(WeekEnd(today()))-2-7*12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the date 12 weeks from the end of this week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Actually this would depend on how you calculate weekend. What would Sundays weekend be? what about Saturday? or will these values not be included?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 15:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653235#M238755</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-10T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to get weekend date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653236#M238756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thank you for the response &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Weekend function worked for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;but here in the recent 12 weeks i need to show all the two weeks which are in that &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;is12weeks (filedname)&lt;/P&gt;&lt;P&gt;3/21/2014&lt;/P&gt;&lt;P&gt;3/28/2014&lt;/P&gt;&lt;P&gt;4/4/2014&lt;/P&gt;&lt;P&gt;4/11/2014&lt;/P&gt;&lt;P&gt;4/18/2014&lt;/P&gt;&lt;P&gt;4/25/2014&lt;/P&gt;&lt;P&gt;5/2/2014&lt;/P&gt;&lt;P&gt;5/9/2014&lt;/P&gt;&lt;P&gt;5/16/2014&lt;/P&gt;&lt;P&gt;5/23/2014&lt;/P&gt;&lt;P&gt;5/30/2014&lt;/P&gt;&lt;P&gt;6/6/2014&lt;/P&gt;&lt;P&gt;6/13/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=date(floor(WeekEnd(today()))-2-7*12)&lt;/SPAN&gt; i am getting only 3/21/2014 in the filed.&lt;/P&gt;&lt;P&gt;can you help how can i get all the current 12 weeks in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the same way i need to get the YTD and QTD functions.&lt;/P&gt;&lt;P&gt;thank you very much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 15:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653236#M238756</guid>
      <dc:creator />
      <dc:date>2014-06-10T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to get weekend date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653237#M238757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thank you for your response. &lt;/P&gt;&lt;P&gt;I did not try your method actually i got for the weekdate by using WeekEnd([Date],0,5) as WeekDate,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 15:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653237#M238757</guid>
      <dc:creator />
      <dc:date>2014-06-10T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get weekend date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653238#M238758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't even see those extra parameters to Weekend function haha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 12 weeks, you just want to generate the dates of those weekending dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do an autogenerate like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weeks:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;date(floor(WeekEnd(today(),0,5))-7*(13-Iterno())) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate(1)&lt;/P&gt;&lt;P&gt;while Iterno() &amp;lt;=13;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't want you wanted, can you explain it a little more? Is there some linking you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 16:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-get-weekend-date/m-p/653238#M238758</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-10T16:17:05Z</dc:date>
    </item>
  </channel>
</rss>

