<?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 Data from last Week(s) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-from-last-Week-s/m-p/1981380#M80979</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;My goal is to show the sum of data for the last eight weeks separately for each week, even though the day changes.&amp;nbsp;&lt;BR /&gt;The working week starts on Mon and ends on Sun.&lt;/P&gt;
&lt;P&gt;I want to have a clickable option: &lt;BR /&gt;- Last week&lt;BR /&gt;- 2 weeks ago&lt;BR /&gt;- 3 weeks ago&lt;BR /&gt;- 4 weeks ago ...&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 09:56:48 GMT</pubDate>
    <dc:creator>okin_pfa</dc:creator>
    <dc:date>2022-09-15T09:56:48Z</dc:date>
    <item>
      <title>Data from last Week(s)</title>
      <link>https://community.qlik.com/t5/App-Development/Data-from-last-Week-s/m-p/1981380#M80979</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;My goal is to show the sum of data for the last eight weeks separately for each week, even though the day changes.&amp;nbsp;&lt;BR /&gt;The working week starts on Mon and ends on Sun.&lt;/P&gt;
&lt;P&gt;I want to have a clickable option: &lt;BR /&gt;- Last week&lt;BR /&gt;- 2 weeks ago&lt;BR /&gt;- 3 weeks ago&lt;BR /&gt;- 4 weeks ago ...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-from-last-Week-s/m-p/1981380#M80979</guid>
      <dc:creator>okin_pfa</dc:creator>
      <dc:date>2022-09-15T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data from last Week(s)</title>
      <link>https://community.qlik.com/t5/App-Development/Data-from-last-Week-s/m-p/1981462#M80987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/165653"&gt;@okin_pfa&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can create 8 columns containing a measure pointing out to the week you want to show based on the selected date in your app.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;Column 1 (CW-1): Sum({&amp;lt;Date = {"&amp;lt;=$(=WeekEnd(Max(Date), -1)) &amp;gt;=$(=WeekStart(Max(Date), -1))"}&amp;gt;} Field)&lt;BR /&gt;Column 2 (CW-2): Sum({&amp;lt;Date = {"&amp;lt;=$(=WeekEnd(Max(Date), -2)) &amp;gt;=$(=WeekStart(Max(Date), -2))"}&amp;gt;} Field)&lt;BR /&gt;.... and so on ...&lt;BR /&gt;&lt;BR /&gt;In your script it needs to be stated that the week starts on Monday, then it will know it ends on Sunday.&lt;BR /&gt;SET FirstWeekDay =0;&amp;nbsp;&lt;BR /&gt;More info about this variable can be found here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/NumberInterpretationVariables/FirstWeekDay.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/NumberInterpretationVariables/FirstWeekDay.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-Ruben&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 11:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-from-last-Week-s/m-p/1981462#M80987</guid>
      <dc:creator>Ruhulessin</dc:creator>
      <dc:date>2022-09-15T11:50:41Z</dc:date>
    </item>
  </channel>
</rss>

