<?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 Need WeekEnd Friday, instead of Sunday in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126499#M370731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a field within my load script for "Week Ending" where our weeks end at the end of every Friday.&lt;/P&gt;&lt;P&gt;I'm able to use the WeekEnd function and get a "Week Ending"&amp;nbsp; date in my tables using the following load statement, but it returns the standard "Week Ending" date of end of every Sunday.&amp;nbsp; Does anyone know how I can modify the script to subtract 2 days to get my weeks to end on Friday?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the load statement that has worked for me so far to get Week Ending as of end of Sunday:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'MM/DD/YY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Week Ending] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NOTE:&amp;nbsp; "D"=my date field (which is not in MM/DD/YY format)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 17:06:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-11T17:06:22Z</dc:date>
    <item>
      <title>Need WeekEnd Friday, instead of Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126499#M370731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a field within my load script for "Week Ending" where our weeks end at the end of every Friday.&lt;/P&gt;&lt;P&gt;I'm able to use the WeekEnd function and get a "Week Ending"&amp;nbsp; date in my tables using the following load statement, but it returns the standard "Week Ending" date of end of every Sunday.&amp;nbsp; Does anyone know how I can modify the script to subtract 2 days to get my weeks to end on Friday?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the load statement that has worked for me so far to get Week Ending as of end of Sunday:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'MM/DD/YY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Week Ending] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NOTE:&amp;nbsp; "D"=my date field (which is not in MM/DD/YY format)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126499#M370731</guid>
      <dc:creator />
      <dc:date>2016-05-11T17:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need WeekEnd Friday, instead of Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126500#M370732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;May be like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;STRONG&gt;(WeekEnd(D, 0, 5), 'MM/DD/YY') as &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;STRONG style=": ; color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;[Week Ending]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126500#M370732</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T17:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need WeekEnd Friday, instead of Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126501#M370733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that worked!&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-WeekEnd-Friday-instead-of-Sunday/m-p/1126501#M370733</guid>
      <dc:creator />
      <dc:date>2016-05-11T17:54:38Z</dc:date>
    </item>
  </channel>
</rss>

