<?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: Find Last Value as at Report To Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Find-Last-Value-as-at-Report-To-Date/m-p/1752218#M57942</link>
    <description>&lt;P&gt;You can not make a modifier for a variable, you can only do it for fields. Consider set analysis as a way to create invisible selection in your data model in order to get a correct calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to rewrite you expression as I understood you, correct me if you think that I missunderstood you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;RentStartDate={'$(=maxstring({&amp;lt;RentStartDate={" &amp;lt;=' $(selectedToDate)'} "&amp;gt;} RentStartDate&lt;SPAN&gt;))'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;} RentAmt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 04:36:20 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-10-14T04:36:20Z</dc:date>
    <item>
      <title>Find Last Value as at Report To Date</title>
      <link>https://community.qlik.com/t5/App-Development/Find-Last-Value-as-at-Report-To-Date/m-p/1752208#M57937</link>
      <description>&lt;P&gt;Hi all. I'm creating a report where I need to bring in the last charge amount.&lt;/P&gt;&lt;P&gt;An example of my data is:&lt;/P&gt;&lt;P&gt;RentStartDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RentAmt&lt;/P&gt;&lt;P&gt;01/01/2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 300.00&lt;/P&gt;&lt;P&gt;01/09/2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 360.00&lt;/P&gt;&lt;P&gt;01/10/2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 260.00&lt;/P&gt;&lt;P&gt;01/11/2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 270.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At present I'm using:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;selectedToDate = {'$(=max(RentStartDate))'}&amp;gt;} RentAmt)&lt;/P&gt;&lt;P&gt;Where selectedToDate is a date variable that a user can select on the report.&lt;/P&gt;&lt;P&gt;Where RentStartDate is the start date of the rent record and RentAmt is the rent charge amount that I want to bring in.&lt;/P&gt;&lt;P&gt;I've selected 02/10/2020 on my report which I would expect to return 260.00, however it is bringing through 1190 which is the total of all of the RentAmts.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 01:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-Last-Value-as-at-Report-To-Date/m-p/1752208#M57937</guid>
      <dc:creator>rbudgeon</dc:creator>
      <dc:date>2020-10-14T01:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find Last Value as at Report To Date</title>
      <link>https://community.qlik.com/t5/App-Development/Find-Last-Value-as-at-Report-To-Date/m-p/1752218#M57942</link>
      <description>&lt;P&gt;You can not make a modifier for a variable, you can only do it for fields. Consider set analysis as a way to create invisible selection in your data model in order to get a correct calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to rewrite you expression as I understood you, correct me if you think that I missunderstood you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;RentStartDate={'$(=maxstring({&amp;lt;RentStartDate={" &amp;lt;=' $(selectedToDate)'} "&amp;gt;} RentStartDate&lt;SPAN&gt;))'&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;} RentAmt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 04:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Find-Last-Value-as-at-Report-To-Date/m-p/1752218#M57942</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-10-14T04:36:20Z</dc:date>
    </item>
  </channel>
</rss>

