<?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: This Week and Last Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151381#M630146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel that should work, what do you think Stefan?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2016 20:34:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-08T20:34:25Z</dc:date>
    <item>
      <title>This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151377#M630142</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'm currently using the below boolean functions to get This Week and Last Week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-InWeekToDate(Date,Today(),0) as CurrentWeek,&lt;/P&gt;&lt;P&gt;-InWeekToDate(Date,Today(),-1) as PreviousWeek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Current Week, it is showing Date as 08/08 and 08/07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Last week, it is showing Date as 07/31 and 08/01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show Current Week from 08/07&amp;nbsp; - 08/13&lt;/P&gt;&lt;P&gt;and in the similar way Last week as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Someone help me in achieving this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this for Date Range Calculation i would like to use flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, From Aug 1 - Aug 31 (full month Estimation using Flags)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want Max(Date) as i have Dates after Aug 31 2016 as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need from Aug 1 2016 and Aug 31 2016 logic using Flags&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151377#M630142</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2016-08-08T20:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151378#M630143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using function InWeek() instead of InWeekToDate().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151378#M630143</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-08T20:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151379#M630144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; InWeekToDate(Date, &lt;SPAN style="color: #ff0000;"&gt;WeekEnd(&lt;/SPAN&gt;Today()&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;, 0) as CurrentWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; InWeekToDate(Date, &lt;SPAN style="color: #ff0000;"&gt;WeekEnd(&lt;/SPAN&gt;Today()&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;, -1) as PreviousWeek;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(Today(), -1) + RecNo() - 1) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 44;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151379#M630144</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-08T20:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151380#M630145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both solutions worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how can we get the logic using flags for Date Range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the data should be displayed from Aug 1 - Aug 31 (Using Flags)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i'm using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InMonthToDate(Date, Today(), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i replace the above to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InMonthToDate(Date, MonthEnd(today(), 0) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151380#M630145</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2016-08-08T20:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151381#M630146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel that should work, what do you think Stefan?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151381#M630146</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-08T20:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151382#M630147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked . But i will wait for you guys to confirm:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151382#M630147</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2016-08-08T20:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151383#M630148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best way is to test it out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133968_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; InWeekToDate(Date, WeekEnd(Today()), 0) as CurrentWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; InWeekToDate(Date, WeekEnd(Today()), -1) as PreviousWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; InMonthToDate(Date, MonthEnd(Today()), 0) as CurrentMonth;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(MonthStart(Today(), -1) + RecNo() - 1) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 365;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151383#M630148</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-08T20:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151384#M630149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Satish Kurra wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;It worked . But i will wait for you guys to confirm:)&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want me to confirm what you already proved working? Why that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you like the more complex functions over the slighty more simple ones, note that there are a lot more functions to create flags for dates in the script, best to have a good read through the relevant date and time functions HELP pages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1151384#M630149</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-08T20:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1597941#M630150</link>
      <description>may i know what is meant by 0 and -1 present in table</description>
      <pubDate>Tue, 02 Jul 2019 07:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1597941#M630150</guid>
      <dc:creator>raviteja475</dc:creator>
      <dc:date>2019-07-02T07:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: This Week and Last Week</title>
      <link>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1597943#M630151</link>
      <description>how to count previous week and present week transactions&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/This-Week-and-Last-Week/m-p/1597943#M630151</guid>
      <dc:creator>raviteja475</dc:creator>
      <dc:date>2019-07-02T07:55:23Z</dc:date>
    </item>
  </channel>
</rss>

