<?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 How to range date field in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411815#M484078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to figure out how to solve this expression? In a Pivot Table or Straight Tabel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Calendar_BookingDate.Datum = {"&amp;gt;=$(=PDGroups.PurchaseDate)&amp;lt;=$(=vKeyDate)"}&amp;gt;} PAYMENTS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objective: For each Portfolio (dimension = PDGroups.Portfolio), give me the sum of payments between its Purchase Date (only one different date per Portfolio) and one fix key date equal to all data line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: I get aways the minimum date of all Portfolios. But when I select only one Portfolio, it returns the right sum. &lt;/P&gt;&lt;P&gt;Interesting is that when I add an expression to the chart with the PDGroups.PurchaseDate alone, it returns the right date per Portfolio regardless the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aggr() Function inside this range set didn't work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May any details be missing, pls just let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 13:58:22 GMT</pubDate>
    <dc:creator>Hatus</dc:creator>
    <dc:date>2013-05-27T13:58:22Z</dc:date>
    <item>
      <title>How to range date field in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411815#M484078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to figure out how to solve this expression? In a Pivot Table or Straight Tabel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Calendar_BookingDate.Datum = {"&amp;gt;=$(=PDGroups.PurchaseDate)&amp;lt;=$(=vKeyDate)"}&amp;gt;} PAYMENTS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Objective: For each Portfolio (dimension = PDGroups.Portfolio), give me the sum of payments between its Purchase Date (only one different date per Portfolio) and one fix key date equal to all data line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: I get aways the minimum date of all Portfolios. But when I select only one Portfolio, it returns the right sum. &lt;/P&gt;&lt;P&gt;Interesting is that when I add an expression to the chart with the PDGroups.PurchaseDate alone, it returns the right date per Portfolio regardless the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Aggr() Function inside this range set didn't work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May any details be missing, pls just let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 13:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411815#M484078</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2013-05-27T13:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to range date field in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411816#M484079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You found out the hard way that comparing fields on a record-by-record basis in a set modifier doesn't work. You'll have to use an if statement instead. Something like this maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum( if( Calendar_BookingDate.Datum &amp;gt;=PDGroups.PurchaseDate and &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Calendar_BookingDate.Datum&lt;/SPAN&gt; &amp;lt;= $(=vKeyDate), PAYMENTS))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 14:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411816#M484079</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-27T14:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to range date field in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411817#M484080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wonderfull, it works now. I definatelly learned that issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 14:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-range-date-field-in-Set-Analysis/m-p/411817#M484080</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2013-05-27T14:23:49Z</dc:date>
    </item>
  </channel>
</rss>

