<?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 Previous Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195454#M55942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This week:&lt;BR /&gt;vStart = weekstart(today(),0,-1)&lt;BR /&gt;vEnd = today()&lt;/P&gt;&lt;P&gt;Last week:&lt;BR /&gt;vStart = weekstart(today(),-1,-1)&lt;BR /&gt;vEnd = weekend(today(),-1,-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 21:15:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-04T21:15:37Z</dc:date>
    <item>
      <title>Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195451#M55939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have 2 variables vStart and vEnd, i need to give an expression so that i display Last week and This Week,Week should start on Sunday , When i click on This Week button , Date value should set such that , vStart = Sunday of this week adn vEnd = today&lt;/P&gt;&lt;P&gt;2Button :&lt;/P&gt;&lt;P&gt;Last Week :&lt;/P&gt;&lt;P&gt;vStart = Sunday of last Week&lt;/P&gt;&lt;P&gt;vEnd = Saturday of Last Week.&lt;/P&gt;&lt;P&gt;Can any body please help me in writing the expression for the above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 23:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195451#M55939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-01T23:51:45Z</dc:date>
    </item>
    <item>
      <title>Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195452#M55940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;vEnd=today() // for current week&lt;/P&gt;&lt;P&gt;vStart=Date(Num(today()) - weekday(today())) // for current week Sunday&lt;/P&gt;&lt;P&gt;OR, Date(Num(today()) - weekday(today()) &lt;STRONG&gt;- 1&lt;/STRONG&gt;) // i don't remeber what is the weekday value for sunday, so may be this -1 adjusment be required. just try both of them which works.&lt;/P&gt;&lt;P&gt;implement the same logic for last week with concept Week=week-1;&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2011 05:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195452#M55940</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-04-02T05:04:05Z</dc:date>
    </item>
    <item>
      <title>Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195453#M55941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , i able to get this week by using the expression for&lt;/P&gt;&lt;P&gt;vStart = =Date(Num(today()) - weekday(today()) - 1)&lt;/P&gt;&lt;P&gt;vEnd = today()&lt;/P&gt;&lt;P&gt;But by replacing Today() by Week - 1 did not work , could any body please help me in getting the revious week , previous week should start from Sunday of last week&lt;/P&gt;&lt;P&gt;and End on Sat of Last Week.&lt;/P&gt;&lt;P&gt;Please Help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 18:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195453#M55941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-04T18:15:33Z</dc:date>
    </item>
    <item>
      <title>Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195454#M55942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This week:&lt;BR /&gt;vStart = weekstart(today(),0,-1)&lt;BR /&gt;vEnd = today()&lt;/P&gt;&lt;P&gt;Last week:&lt;BR /&gt;vStart = weekstart(today(),-1,-1)&lt;BR /&gt;vEnd = weekend(today(),-1,-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 21:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Week/m-p/195454#M55942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-04T21:15:37Z</dc:date>
    </item>
  </channel>
</rss>

