<?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 Set Analysis problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem/m-p/306280#M113079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having two problems with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(([CUSTOMERLEDGERENTRY Due Date]&amp;lt;=vToday) AND ((vToday - [CUSTOMERLEDGERENTRY Due Date])&amp;lt;30),sum({&amp;lt;[DETCUSTOMERLEDGERENTRY Posting Date]={"&amp;lt;=$(=max([DETCUSTOMERLEDGERENTRY Posting Date]))"}&amp;gt;}[DETCUSTOMERLEDGERENTRY Amount]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation is this: I have the sum of amount in a straight table for everything below a selected DETCUSTOMERLEDGERENTRY Posting Date. This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next to it I have 4 columns, showing the totals with a due date which has not passed, them with less then 30 days overdue, 90 and more then 90. I have used the expression above to solve this (as an example this shows the one between today and less then 30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first problem is: I would like to replace the vToday with the selected DETCUSTOMERLEDGERENTRY Posting Date. But this doesn't work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second problem is: When I select a DETCUSTOMERLEDGERENTRY Posting Date with the expression as it is now, he only sums the records with DETCUSTOMERLEDGERENTRY Posting Date at that date and not the ones below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to fix this but can't seem to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more information don't hesitate to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 14:51:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-25T14:51:59Z</dc:date>
    <item>
      <title>Set Analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-problem/m-p/306280#M113079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having two problems with the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(([CUSTOMERLEDGERENTRY Due Date]&amp;lt;=vToday) AND ((vToday - [CUSTOMERLEDGERENTRY Due Date])&amp;lt;30),sum({&amp;lt;[DETCUSTOMERLEDGERENTRY Posting Date]={"&amp;lt;=$(=max([DETCUSTOMERLEDGERENTRY Posting Date]))"}&amp;gt;}[DETCUSTOMERLEDGERENTRY Amount]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation is this: I have the sum of amount in a straight table for everything below a selected DETCUSTOMERLEDGERENTRY Posting Date. This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next to it I have 4 columns, showing the totals with a due date which has not passed, them with less then 30 days overdue, 90 and more then 90. I have used the expression above to solve this (as an example this shows the one between today and less then 30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first problem is: I would like to replace the vToday with the selected DETCUSTOMERLEDGERENTRY Posting Date. But this doesn't work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second problem is: When I select a DETCUSTOMERLEDGERENTRY Posting Date with the expression as it is now, he only sums the records with DETCUSTOMERLEDGERENTRY Posting Date at that date and not the ones below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to fix this but can't seem to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more information don't hesitate to ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niels&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-problem/m-p/306280#M113079</guid>
      <dc:creator />
      <dc:date>2012-01-25T14:51:59Z</dc:date>
    </item>
  </channel>
</rss>

