<?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 Report Previous Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431895#M430580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to offer the ability that when a user clicks a button it only shows the previous Monday to Sunday information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could I set a flag for this in the script while the data is loading eg Prev_Mon_Sun_Flag ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 20:47:56 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2017-11-07T20:47:56Z</dc:date>
    <item>
      <title>Report Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431895#M430580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to offer the ability that when a user clicks a button it only shows the previous Monday to Sunday information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could I set a flag for this in the script while the data is loading eg Prev_Mon_Sun_Flag ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 20:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431895#M430580</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2017-11-07T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Report Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431896#M430581</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 got mine working from a previous post using the method below. I apologise as I cannot remember the exact post.&lt;/P&gt;&lt;P&gt;Create 3 variables&lt;/P&gt;&lt;P&gt;vWeeks- add input box and under constraints,tick number series under predefined Values. From box=1 To box =10 and Step=1. Under Value List select predefined values in drop down list&lt;/P&gt;&lt;P&gt;vWeekStart= Date(Floor(Date(WeekStart(Today()-(vWeek*7)))))&lt;/P&gt;&lt;P&gt;vWeekEnd=Date(Floor(Date(Weekend(WeekStart(Today()-(&lt;SPAN style="font-size: 13.3333px;"&gt;vWeek&lt;/SPAN&gt;*7)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your expression&lt;/P&gt;&lt;P&gt;{&amp;lt;Date ={"&amp;gt;=$(vWeekStart)&amp;lt;=$(vWeekEnd)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user drops down the list, they will have the ability to go back up to 10 weeks&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 21:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431896#M430581</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2017-11-07T21:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Report Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431897#M430582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your date, create Week with Week() function in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create V_week variable with : &lt;/P&gt;&lt;P&gt;=if(FL_previous=1,Week(GetFieldSelections(Date)), (Week(GetFieldSelections(Date))-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FL_previous value change when user will clik on button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in your set , use as :&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date=,Week={$(=V_week)}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached .qvw sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 21:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-Previous-Week/m-p/1431897#M430582</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2017-11-07T21:39:08Z</dc:date>
    </item>
  </channel>
</rss>

