<?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 expression...is this correct? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547307#M480190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my task to calculate the overdue amounts of our customer's invoices and its point-in-time evolution, I have written two expressions.&lt;/P&gt;&lt;P&gt;One of them is the Total Balance: SUM of the amounts of the invoices issued: no problems here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;num(sum({&amp;lt;"Posting Date"={"&amp;lt;=$(=date(Max(DateID),'DD/MM/YYYY'))"}&amp;gt;} "Amount"),'#.##0' &amp;amp; ' €') &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if I want to SUM those amounts that belong to invoices not yet overdue (this is, the "DueDate" field is lowerthan the DateID field), this will always return ZERO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=num(sum({&amp;lt;"DueDate"={"&amp;gt;(=date(DateID,'DD/MM/YYYY'))"}, "Posting Date"={"&amp;lt;=$(=date(Max(DateID),'DD/MM/YYYY'))"}&amp;gt;} "Amount"),'#.##0' &amp;amp; ' €') &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this an error on my expression (note that I am not using Max(DateID)), or this simply cannot be accomplished?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2013 13:12:26 GMT</pubDate>
    <dc:creator>salto</dc:creator>
    <dc:date>2013-12-09T13:12:26Z</dc:date>
    <item>
      <title>Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547307#M480190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my task to calculate the overdue amounts of our customer's invoices and its point-in-time evolution, I have written two expressions.&lt;/P&gt;&lt;P&gt;One of them is the Total Balance: SUM of the amounts of the invoices issued: no problems here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;num(sum({&amp;lt;"Posting Date"={"&amp;lt;=$(=date(Max(DateID),'DD/MM/YYYY'))"}&amp;gt;} "Amount"),'#.##0' &amp;amp; ' €') &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if I want to SUM those amounts that belong to invoices not yet overdue (this is, the "DueDate" field is lowerthan the DateID field), this will always return ZERO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=num(sum({&amp;lt;"DueDate"={"&amp;gt;(=date(DateID,'DD/MM/YYYY'))"}, "Posting Date"={"&amp;lt;=$(=date(Max(DateID),'DD/MM/YYYY'))"}&amp;gt;} "Amount"),'#.##0' &amp;amp; ' €') &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this an error on my expression (note that I am not using Max(DateID)), or this simply cannot be accomplished?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 13:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547307#M480190</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2013-12-09T13:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547308#M480191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I see it, you are using fields on both the sides of a condition, which will not work as the set will not be able to match a series of records against another series of records. Note that in your earlier expression, you are using a field against a defined value, like max(date). So the set expression is able to validate each record of your field against one particular value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Aadil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 13:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547308#M480191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547309#M480192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;post sample &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 13:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547309#M480192</guid>
      <dc:creator />
      <dc:date>2013-12-09T13:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547310#M480193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your early answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am posting a sample, hope it is clear. The chart in the left bottom part is correct only for the "Total Balance" column, because it takes the Max(DateID) field value and not the DateID itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, could I write the set analysis expression in some other way to fulfill my requirements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 14:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547310#M480193</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2013-12-09T14:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547311#M480194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Access denied i get&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 14:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547311#M480194</guid>
      <dc:creator />
      <dc:date>2013-12-09T14:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547312#M480195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;me too...&lt;/P&gt;&lt;P&gt;access denied... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 14:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547312#M480195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T14:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547313#M480196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for Going Off Track&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please think for this&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/101146?start=0&amp;amp;tstart=0"&gt;http://community.qlik.com/thread/101146?start=0&amp;amp;tstart=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/101325"&gt;http://community.qlik.com/thread/101325&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 15:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547313#M480196</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-12-09T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547314#M480197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm first of all i would suggest you not to use different date formats and remember to correct the main settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get your initial date you need to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Date#(Max(DateID),'YYYYMMDD'),'DD/MM/YYYY') : This will get ou the max dateID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a little tip on debugging:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete your label in your straight tabel - Then you can see which value the expression is actually getting, and hereby you can start debugging on which part is not correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 15:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547314#M480197</guid>
      <dc:creator />
      <dc:date>2013-12-09T15:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547315#M480198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check attached. I have used the same condition in the script and have created a flag field.&lt;/P&gt;&lt;P&gt;And used that in your set statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aadil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 15:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547315#M480198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-09T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547316#M480199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num(sum({&amp;lt;[Initial Entry Due Date]={"&amp;lt;=$(=Date(Date#(Max(DateID),'YYYYMMDD'),'DD/MM/YYYY'))&amp;gt;=$(=Date(Date#(Max(DateID),'YYYYMMDD'),'DD/MM/YYYY'))"},[Posting Date]={"&amp;lt;=$(=date(Max(DateID),'DD/MM/YYYY'))"}&amp;gt;} "Amount"), '#.##0 €')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace Max fucntion with whatever dates you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry shouldnt have been a post to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 15:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547316#M480199</guid>
      <dc:creator />
      <dc:date>2013-12-09T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: Set analysis expression...is this correct?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547317#M480200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this: its not quite correct i can see - but i hope it can help you some way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 15:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-is-this-correct/m-p/547317#M480200</guid>
      <dc:creator />
      <dc:date>2013-12-09T15:44:39Z</dc:date>
    </item>
  </channel>
</rss>

