<?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: QS Show last value from a unrelated date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690739#M52776</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue({&amp;lt;Date = {"&amp;lt;=$(=Date(Max(Date), 'DD/MM/YYYY'))"}&amp;gt;} Value, -Date)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 03 Apr 2020 12:02:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-04-03T12:02:54Z</dc:date>
    <item>
      <title>QS Show last value from a unrelated date</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690699#M52771</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I have a Qlik Sense App that must display a few indicators bringing the user the possibility of narrowing data across date dimensions as Year and Month (forget about days).&lt;/P&gt;&lt;P&gt;This app counts with a Master Calendar that is taking from the oldest to the newest date from the Date field from Facts table.&lt;/P&gt;&lt;P&gt;Each indicator has a different source, this means that usually indicators could not share same date ranges, like in the example below:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;KPI&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Date (DD/MM/YYYY)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;19/12/2019&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;20/12/2019&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;14/02/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;09/11/2019&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;09/03/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;01/04/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main mission is to display last value from the last date available of each indicator, &lt;SPAN&gt;even though the selected date could be more recent than available date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The desirable output would become like this examples:&lt;/P&gt;&lt;P&gt;1st desirable case, selected dates: April 2020 or year 2020&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;KPI&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Date (DD/MM/YYYY)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;14/02/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;01/04/2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd desirable case, selected dates: December 2019 or year 2019&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;KPI&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Date (DD/MM/YYYY)&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;20/12/2019&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;09/11/2019&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wish to avoid is to accumulate data values in the script, I mean to avoid replicate the old value from February to March and April for KPI 1. Copying last recent data in the missing dates on each KPI is an option I want to avoid.&lt;/P&gt;&lt;P&gt;My intended approach is to solve it using expressions, set analysis or flag use on script. I've already played with P() and E() functions without any success.&lt;/P&gt;&lt;P&gt;Fortunately, each indicator can have its own expression, so each KPI could have different set analysis. I'm pretty sure someone else has had the same problem, but I couldn't find on the Community a post related to a similar issue.&lt;BR /&gt;&lt;BR /&gt;Stay healthy, and thank you in beforehand,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690699#M52771</guid>
      <dc:creator>JohnDoe</dc:creator>
      <dc:date>2024-11-16T18:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: QS Show last value from a unrelated date</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690739#M52776</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue({&amp;lt;Date = {"&amp;lt;=$(=Date(Max(Date), 'DD/MM/YYYY'))"}&amp;gt;} Value, -Date)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690739#M52776</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-03T12:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: QS Show last value from a unrelated date</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690744#M52778</link>
      <description>&lt;P&gt;I have attached a sample qvf file for you to look at&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690744#M52778</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-04-03T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: QS Show last value from a unrelated date</title>
      <link>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690752#M52782</link>
      <description>&lt;P&gt;This worked f l a w l e s s. Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QS-Show-last-value-from-a-unrelated-date/m-p/1690752#M52782</guid>
      <dc:creator>JohnDoe</dc:creator>
      <dc:date>2020-04-03T12:37:24Z</dc:date>
    </item>
  </channel>
</rss>

