<?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 on Set Analyses question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192855#M54368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't know for sure ... but something like this might be in the right direction?&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; bookingdate = {'&amp;lt;=$(getfieldselections(bookingdate))' ,$(nullvalue()) } &amp;gt;} invoiceamount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 11:36:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-31T11:36:41Z</dc:date>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192854#M54367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have the following question: I am reporting on a table with open invoices the invoice has a GL bookingdate. I also have a table with all dates in it. What I would like to do is a historical open invoice report using the following:&lt;/P&gt;&lt;P&gt;sum(invoiceamount) but only when isnull(getfieldselections(bookingdate)) or bookingdate &amp;lt;= getfieldselections(bookingdate).&lt;/P&gt;&lt;P&gt;The latter 2 condtions I would like to wrap in a set analyses. Is this possible? I have been testing and trying for a while now, without much luck sofar. Any help would be appriciated.&lt;/P&gt;&lt;P&gt;Txs,André&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192854#M54367</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-03-31T11:14:28Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192855#M54368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't know for sure ... but something like this might be in the right direction?&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; bookingdate = {'&amp;lt;=$(getfieldselections(bookingdate))' ,$(nullvalue()) } &amp;gt;} invoiceamount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192855#M54368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192856#M54369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some additional info: I tried to get this using an if in the expression.&lt;BR /&gt;For the amounts that worked fine, the only thing I noticed that the subtotal is not working anymore and displays a '-'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192856#M54369</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-03-31T11:43:55Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192857#M54370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;[quote user="André ***"]subtotal is not working anymore and displays a '-'&lt;/P&gt;&lt;P&gt;I did have the same problem before ... this has to do with combined expressions, in this case the subtotal has no clue what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try something like the following (the if you talked about):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum( if ( isnull ( getfieldselections(bookingdate) ) or bookingdate &amp;lt;= getfieldselections(bookingdate) , invoiceamount )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192857#M54370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T12:11:15Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192858#M54371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is definitely more complex. The set analyses does not work. Besides that I need to get a set for the invoiceamounts based on invoice date, a set for the invoice payments based on the payment date and finally subtract the 2. So it cannot contain null values, otherwise the result is null and the totals do not work. It is essential that the line and column total calculations work correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192858#M54371</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-03-31T12:15:13Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192859#M54372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a sample might help for the understanding of the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192859#M54372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192860#M54373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot post any data here, since it is company confidential. Mail me (andre.***@viafi.com) your direct address so I can mail a sample to you directly outside this forum. Txs,André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 13:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192860#M54373</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-03-31T13:13:41Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192861#M54374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;André,&lt;/P&gt;&lt;P&gt;You could also try to give a sample with 'other' data ... just to emphasis what the problem is.&lt;BR /&gt;Or try to explain with some table samples what you have and what the data should deliver.&lt;/P&gt;&lt;P&gt;rgrds,&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 13:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192861#M54374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T13:21:10Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192862#M54375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a sample file with some explanation on screen. Hopefully you can help me out here.&lt;/P&gt;&lt;P&gt;Txs,André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 14:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192862#M54375</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-03-31T14:03:01Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192863#M54376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned in one of the prior suggestions the SUM should be taken out of the IF structure.&lt;/P&gt;&lt;P&gt;I added the correct sum in the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SUM(&lt;BR /&gt; if ( isnull ( getfieldselections( [Boekdatum (K)] ) )&lt;BR /&gt; or [Factuur Boekdatum] &amp;lt;= getfieldselections([Boekdatum (K)] )&lt;BR /&gt; , Factuurbedrag, 0 )&lt;BR /&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;if ( isnull ( getfieldselections( [Boekdatum (K)] ) )&lt;BR /&gt;or [Factuur Boekdatum] &amp;lt;= getfieldselections([Boekdatum (K)] )&lt;BR /&gt;, sum(Factuurbedrag), sum(0) )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds,&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 14:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192863#M54376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192864#M54377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, but after copying your solution I got extreme numbers. Even after isolating the invoice table I got the same results. One of the original invoices was for EUR 20.483,20. In the changed column with the formula it now shows as EUR 22.449.587,20. The same happens to the other 3 invoices.&lt;/P&gt;&lt;P&gt;I do not think that this will be a solution that is going to work. It also takes approx 40 seconds to calculate totals and we are only talking about a table wih a little over 140000 rows.&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 13:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192864#M54377</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-04-01T13:39:48Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192865#M54378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did find some problems in the construction of the data. I have been working on this a bit more and I now believe that the proposed solution might work. I will be continuing work on tuesday.&lt;/P&gt;&lt;P&gt;Regs,André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2011 20:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192865#M54378</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-04-02T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192866#M54379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample was just with a minimum of data without other strange calculation ...&lt;/P&gt;&lt;P&gt;But the idea is to do the &lt;B&gt;if construction&lt;/B&gt; within the &lt;B&gt;sum&lt;/B&gt;, this way the totals can be calculated by the graph table.&lt;/P&gt;&lt;P&gt;Got it working yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 08:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192866#M54379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-04T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192867#M54380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added a new test example with more data. I have also selected the specific customer of the previous example. You can see there that the total open amount is much more then just the 3 open invoices. I am not sure what is going on. Txs,André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 06:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192867#M54380</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-04-05T06:56:08Z</dc:date>
    </item>
    <item>
      <title>Sum on Set Analyses question</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192868#M54381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I am trying to achieve with this is a flex debtors aging report. So, if the user does not select a date in the most left date selection, it should show all current open invoices. As soon as the user selects a date, the report should figure out which invoices were open at the time of that date. So the payment should not have been done yet (DBetaaldatum &amp;lt; selected date) and the amount paid should be less than the invoice amount.&lt;/P&gt;&lt;P&gt;In the other graphs it should only show data that is applicable to the selections applied. (invoices and payments). I was thinking of building set analyses sums for this, but looking at the selection criteria that need to be worked with I am not sure that that would be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 07:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-on-Set-Analyses-question/m-p/192868#M54381</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-04-05T07:33:43Z</dc:date>
    </item>
  </channel>
</rss>

