<?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: Sum value for last week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358040#M132879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for helpful reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 11:18:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-03T11:18:19Z</dc:date>
    <item>
      <title>Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358032#M132871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a expression that´s summarize the amount/value for the hole last week. I,ve a date field with the format YYYYMMDD and the field that a summurizing is integer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one that have a good solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 15:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358032#M132871</guid>
      <dc:creator />
      <dc:date>2012-06-18T15:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358033#M132872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a set expression to limit the values to summarize to a specified date range, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;DATEFIELD= {"&amp;gt;=$(=Date(weekstart(today()-7),'YYYYMMDD))&amp;lt;$(=Date(weekstart(today()),'YYYYMMDD' ))"}&amp;gt;} &lt;/P&gt;&lt;P&gt;VALUEFIELD )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 16:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358033#M132872</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-18T16:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358034#M132873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your reply. So this should give me the hole last week? Should it be weekstart and weekstart or should it be weekend instead?&lt;/P&gt;&lt;P&gt;And another question, do you have a suggestion for a set expression to sum yesterday value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 08:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358034#M132873</guid>
      <dc:creator />
      <dc:date>2012-06-19T08:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358035#M132874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that I used "smaller than" &lt;SPAN style="text-decoration: underline;"&gt;today's &lt;/SPAN&gt;&lt;EM&gt;weekstart &lt;/EM&gt;in above expression, but you surely can use "smaller equal than" &lt;SPAN style="text-decoration: underline;"&gt;last week's (today()-7)&lt;/SPAN&gt; &lt;EM&gt;weekend ,&lt;/EM&gt;too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarize the value for yesterday, I believe it could look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&amp;lt;DATEFIELD = {"$(=Date(today()-1,'YYYYMMDD'))"} &amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VALUEFIELD)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358035#M132874</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-19T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358036#M132875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding last week, do you mean something like this:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateField={"&amp;lt;=$(=Date(Lastweek(Today()-7),'YYYYMMDD'))&amp;gt;=$(=Date(Weekend(Today()),'YYYYMMDD'))"}&amp;gt;} ValueField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding last day it´s really doesn´t work with:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DateField={"$(=Date(today()-1,'YYYYMMDD'))"}&amp;gt;} ValueField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 07:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358036#M132875</guid>
      <dc:creator />
      <dc:date>2012-06-21T07:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358037#M132876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, lastweek is not a QV function. I meant to use the functions as stated above (it seems I missed a single quote in the date format of last weeks sum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached a sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358037#M132876</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-21T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358038#M132877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, thanks for the reply.&lt;/P&gt;&lt;P&gt;Do you also have an solution for WTD (week-to-date)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 09:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358038#M132877</guid>
      <dc:creator />
      <dc:date>2012-07-03T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358039#M132878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; {&amp;lt;Date= {"&amp;gt;=$(=Date(weekstart(today()),'YYYYMMDD'))&amp;lt;=$(=Date(today(),'YYYYMMDD'))"}&amp;gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Value )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check out the date and time functions in QV, there is a whole bunch of different functions.&lt;/P&gt;&lt;P&gt;The set expression looks always quite similar, a field modifier with a search expression that consists of "&amp;gt;=LOWERBOUNDDATE&amp;lt;=HIGHERBOUNDDATE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOWERBOUNDDATE and HIGHERBOUNDDATE are created using QV date and time functions (maybe using today() or a date field as input), and formatted appropriately if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 09:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358039#M132878</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-03T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value for last week</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358040#M132879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for helpful reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 11:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-for-last-week/m-p/358040#M132879</guid>
      <dc:creator />
      <dc:date>2012-07-03T11:18:19Z</dc:date>
    </item>
  </channel>
</rss>

