<?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 Sum sales between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237897#M88881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Selecting a month and using this kind of expression:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;Month={"$(=date(only(Date)-8))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Is it possible to show the result for all days in a month?? I have not tested yet...&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 14:03:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-26T14:03:19Z</dc:date>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237891#M88875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Here's my doubt,&lt;/P&gt;&lt;P&gt;Selecting a date (DD/MM/YYYY) I need to get the sum of the sales of the previous 8 days (from DD/MM/YYYY-8 to DD/MM/YYYY-1), is it possible?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 15:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237891#M88875</guid>
      <dc:creator />
      <dc:date>2010-10-14T15:41:05Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237892#M88876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Try something similar to this (not tested):&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(=AddDays(only(Date), -8))&amp;lt;=$(=AddDays(only(Date), -1))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Probably you would have to do some casting, I'm not really sure, since I haven't tested, if something goes wrong, try something similar to this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(#=AddDays(only(Date), -8))&amp;lt;=$(#=AddDays(only(Date), -1))"} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237892#M88876</guid>
      <dc:creator />
      <dc:date>2010-10-14T16:18:11Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237893#M88877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Iván,&lt;/P&gt;&lt;P&gt;It doesn't work...is the expression adddays correct? I don`t see it in the QVW Help,&lt;/P&gt;&lt;P&gt;I'll keep trying,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 19:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237893#M88877</guid>
      <dc:creator />
      <dc:date>2010-10-14T19:22:39Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237894#M88878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dates are stored in days, so to subtract days, just use "-", then reformat as a date. Untested, but:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;Date={"&amp;gt;=$(=date(only(Date)-8)) &amp;lt;$(=only(Date))"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 19:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237894#M88878</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-14T19:32:37Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237895#M88879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked, thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 19:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237895#M88879</guid>
      <dc:creator />
      <dc:date>2010-10-14T19:44:01Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237896#M88880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also experiment with using MAX(date) instead of ONLY(date) this way the user does not have to make a selection to view the latest data.&lt;/P&gt;&lt;P&gt;There will be data shown when the user has no selections made. With the only() qualifier you need to make one distinct selection on the date column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 16:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237896#M88880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-15T16:05:37Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237897#M88881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Selecting a month and using this kind of expression:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;Month={"$(=date(only(Date)-8))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Is it possible to show the result for all days in a month?? I have not tested yet...&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 14:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237897#M88881</guid>
      <dc:creator />
      <dc:date>2011-01-26T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237898#M88882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, you can use the following expression together with Date dimension. You will have to clear at least Month and Year user selections, because of the last seven days of each month will actually belong to the previous month when you subtract the eight days, in the case of the first seven days of january, will belong no only to the previous month but also the previous year.&lt;/P&gt;&lt;P&gt;Your expression should look similar to the following:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={"&amp;gt;=$(=date(max(Date)-8)) &amp;lt;$(=max(Date))"}, Month=, Year=&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 16:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237898#M88882</guid>
      <dc:creator />
      <dc:date>2011-01-26T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Sum sales between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237899#M88883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;I thought I could use this post to explain the problem that I have now but maybe I was wrong,&lt;/P&gt;&lt;P&gt;here is my problem:&lt;/P&gt;&lt;P&gt;Selecting a month and using this expression :&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;DAY={"$(=timestamp(Addmonths(only(DAY),-1)))"}NET_PRICE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ SUM({&amp;lt;DAY={"$(=timestamp(addyears(Addmonths(only(DAY),-1),-1)))"},STATUS={'CONTRACT'},IS_MERCHANT={'Y'}&amp;gt;}NET_PRICE)*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;DAY={"$(=timestamp(addyears(only(DAY),-1)))"},STATUS={'CONTRACT'},IS_MERCHANT={'Y'}&amp;gt;}NET_PRICE)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I show the result for each day of the month selected??&lt;/P&gt;&lt;P&gt;I need the month selection to show the days in this month...&lt;/P&gt;&lt;P&gt;If I use the DAY dimension returns null because the days from the selected month don't match with the days setted in the expression above,&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;I think it's better explained this time,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 18:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-sales-between-dates/m-p/237899#M88883</guid>
      <dc:creator />
      <dc:date>2011-01-26T18:55:09Z</dc:date>
    </item>
  </channel>
</rss>

