<?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: Previous Month - Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245244#M1185449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I should have tested it first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(Date&amp;gt;=weekstart(date(today()-21)),sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 14:03:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-08T14:03:16Z</dc:date>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245236#M1185441</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'm having some problems trying to show only last month results. &lt;/P&gt;&lt;P&gt;I have Aug 2011 and Sep 2011 information. What I need to show is only Aug 2011 results, though my selection is all dates (Aug 2011 and Sep 2011). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show by country, Aug payout (pivot table called "august payout". I tried several formulas, but in all cases I get the total payout considering the two months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'm interested in how doing the same by week (e.i: week 15 Aug compared to Week 18 Aug). Not with before formula. &lt;/P&gt;&lt;P&gt;And finally, is there any way to show only last 3 weeks in a pivot table. I have more all weeks selected, but I want to show only last 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the .qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 21:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245236#M1185441</guid>
      <dc:creator />
      <dc:date>2011-09-07T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245237#M1185442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guido,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use this for previous month's&amp;nbsp; Payout figures:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date = {"&amp;gt;=$(=monthstart(addmonths(today(),-1)))&amp;lt;$(=monthstart(today()))"}, Month=, Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have a look to your other questions, too, what do you mean with:&lt;/P&gt;&lt;P&gt;"not with before formula"? (Ah- the inter record function?)&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>Wed, 07 Sep 2011 22:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245237#M1185442</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-07T22:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245238#M1185443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guido,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe attached application helps you. I added some columns with fixed August / week data and the pivot table (last 21 days).&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>Wed, 07 Sep 2011 22:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245238#M1185443</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-07T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245239#M1185444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan, &lt;/P&gt;&lt;P&gt;Thanks a lot for your help. The formula you provided worked OK. I have QV Personal Edition, so I can't open other's files. &lt;/P&gt;&lt;P&gt;Regarding to showing the same by week, I would like to know how can I create a pivot table, using "Week" as a Dimension, but showing the last 3 weeks (I think I have to edit the dimension). I.e.: I have the following weeks: August01 - August08 - August15 - August22 - August29 - September05. I want to show only data for last 3 weeks, but not filtering the last 3 weeks, I want all data avaiable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245239#M1185444</guid>
      <dc:creator />
      <dc:date>2011-09-08T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245240#M1185445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guido,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to post the expressions also as plain text later on, but what do you mean with:&lt;/P&gt;&lt;P&gt;"I want to show only data for last 3 weeks, but not filtering the last 3 weeks, I want all data avaiable."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand this, sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245240#M1185445</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245241#M1185446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could probably use the expression:&lt;/P&gt;&lt;P&gt;sum(if(Date&amp;gt;=weekstart(date((today()-21)),sumfield))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which should only return the summary of all info that has a date greater than the start of 3 weeks ago.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245241#M1185446</guid>
      <dc:creator />
      <dc:date>2011-09-08T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245242#M1185447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; For example: Sales by Week:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week1 | Week2 | Week3 | Week4 | Week5 | Total&lt;/P&gt;&lt;P&gt;$1000&amp;nbsp; |&amp;nbsp;&amp;nbsp; $1200 |&amp;nbsp; $800&amp;nbsp;&amp;nbsp; |&amp;nbsp; $1100 |&amp;nbsp; $1500&amp;nbsp; | $5600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week3 | Week4 | Week5 | Total&lt;/P&gt;&lt;P&gt; $800&amp;nbsp;&amp;nbsp; |&amp;nbsp; $1100 |&amp;nbsp; $1500&amp;nbsp; | $5600&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total amount generated, but only showing the last 3 weeks. Is it clear now? &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 13:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245242#M1185447</guid>
      <dc:creator />
      <dc:date>2011-09-08T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245243#M1185448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcsliving, &lt;/P&gt;&lt;P&gt;I'm afraid your formula is not working properly. I'm newbie, so I can't find the error &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245243#M1185448</guid>
      <dc:creator />
      <dc:date>2011-09-08T14:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245244#M1185449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I should have tested it first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(Date&amp;gt;=weekstart(date(today()-21)),sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245244#M1185449</guid>
      <dc:creator />
      <dc:date>2011-09-08T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245245#M1185450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 3 weeks table do this:&lt;/P&gt;&lt;P&gt;Create a straight table chart, with week as dimension and partial sums enabled.&lt;/P&gt;&lt;P&gt;Then, as expression use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Dimensionality()=0,&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date=,Week=,Month=&amp;gt;} Payout),&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(=weekstart(today()-14))"},Week=,Month= &amp;gt;}Payout))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which calculates either the total sum or the last 3 weeks sum depending on dimensionality (total row or week dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a fixed week comparison similar to above year column, you could try something like&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Week = {'August 15'}, Month=, Date=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I used weekstart(today()-14) in above expression, because I think that will give you the last 3 weeks including the (not full) current week, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245245#M1185450</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T14:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245246#M1185451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan, the formula worked OK!&lt;/P&gt;&lt;P&gt;One more question: How can I compare months (August vs September) considering only the same days? I.e.Sum of Sales in the first 5 days of each month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 21:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245246#M1185451</guid>
      <dc:creator />
      <dc:date>2011-09-08T21:10:36Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245247#M1185452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could achieve this if you add &lt;/P&gt;&lt;P&gt;Day(Date) as Day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to your data model, then just add the Day to you filter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Day = {"&amp;gt;=1&amp;lt;=5"}, Month= {'Aug 2011'}, Date =, Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sometimes the assignments are a bit tricky, the format of the field must match exactly the format of the element set. Most often this may be a problem with date formatting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please remember when adding (date) fields the user can select on, that you may need to clear it in your set expression.&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, 08 Sep 2011 23:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245247#M1185452</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-08T23:56:32Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245248#M1185454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Stefan, &lt;/P&gt;&lt;P&gt;Thanks for your response. &lt;/P&gt;&lt;P&gt;The problem I found here, is that is not updated automatically. I mean, my idea was to have a formula, comparing month to date from current month, against same days from month before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.: Payout of first 9 days in September vs. Payout of first 9 days in August. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be updated when I reload the script when new data. Month to date of current month compared with the same period of time of the month before. Does this makes sense? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245248#M1185454</guid>
      <dc:creator />
      <dc:date>2011-09-09T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245249#M1185456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see current month till today, compared to the equivalent period last month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try (removing the Day again):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date = {"&amp;gt;=$(=monthstart(addmonths(today(),-1)))&amp;lt;=$(=addmonths(today(),-1))"}, Month= ,&amp;nbsp; Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Month and Week fields cleared, removed second Date in set expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245249#M1185456</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-09T12:43:22Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245250#M1185458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean to remove "bold" expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =sum({&amp;lt;Date = {"&amp;gt;=$(=monthstart(addmonths(today(),-1)))&lt;STRONG&gt;&amp;lt;=$(=addmonths(today(),-1))"&lt;/STRONG&gt;}, Month= ,&amp;nbsp; Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use "Month" as a dimension, only August's Payout appear. I need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;August 2011 | $10.000&lt;/P&gt;&lt;P&gt;September 2011 | 15.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both Payout values are taken from month to date from september compared to the same period of time with August. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and sorry if I misunderstood something. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 12:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245250#M1185458</guid>
      <dc:creator />
      <dc:date>2011-09-09T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245251#M1185460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My last expression will calculate only for the previous months, right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want it for all months, then maybe add Day field again and use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Day = {"&amp;gt;=1&amp;lt;=$(=today())"}, Month= , Date =, Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should select and calculate Payout only for the days to date, for all months (I hope, haven't tested).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry If I keep misunderstanding you, weekend is nigh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Getting hard now..&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Day = {"&amp;gt;=1&amp;lt;=$(=&lt;STRONG&gt;Day(today()))&lt;/STRONG&gt;"}, Month= , Date =, Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245251#M1185460</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-09T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245252#M1185462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, weekend is nigh, nobody wants to think qv expressions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;The expression you sent me:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Day = {"&amp;gt;=1&amp;lt;=$(=&lt;STRONG&gt;Day(today()))&lt;/STRONG&gt;"}, Month= , Date =, Week=&amp;gt;} Payout)&lt;/P&gt;&lt;P&gt;give me total amount per month. I mean, month to date from september, and total payout from august. There's something missing and don´t know what. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 13:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245252#M1185462</guid>
      <dc:creator />
      <dc:date>2011-09-09T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Previous Month - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245253#M1185464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Finally got it. Day formula was missing in the script. &lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 14:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-Set-Analysis/m-p/245253#M1185464</guid>
      <dc:creator />
      <dc:date>2011-09-09T14:02:28Z</dc:date>
    </item>
  </channel>
</rss>

