<?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: Latest of the getfieldselection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565776#M41222</link>
    <description>&lt;P&gt;Is this QlikView or Qlik Sense?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 12:27:50 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-04-05T12:27:50Z</dc:date>
    <item>
      <title>Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565609#M41216</link>
      <description>&lt;P&gt;I have a filter for month selection in my app and each month has its own data entry.&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Month&amp;nbsp; Service_Status Payment_Cumulative&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$100&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Feb18&amp;nbsp; &amp;nbsp; &amp;nbsp;Open&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $200&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Mar18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select month as Jan18 and Feb18 in the filter, I want to display the payment in the 'Open' service status KPI only(for the latest status) i.e. 200 at the ID level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 08:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565609#M41216</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-05T08:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565746#M41217</link>
      <description>&lt;P&gt;What will be displayed if Jan18 is selected with the above sample?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565746#M41217</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-05T11:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565751#M41218</link>
      <description>&lt;P&gt;If Jan'18 is selected it should display $100 in the closed service KPI.&lt;/P&gt;&lt;P&gt;Just when multiple years are selected in the filter the latest entry(amongst the selected) should be considered.&lt;/P&gt;&lt;P&gt;Like all the Jan18 ,Feb18 and Mar'18 are selected it should display $300 in the closed KPI (latest service status and latest payment payment) at the ID level&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565751#M41218</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-05T11:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565768#M41219</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Just adding some more data to give more clarity on the query&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Month&amp;nbsp; Service_Status Payment_Cumulative&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$100&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Feb18&amp;nbsp; &amp;nbsp; &amp;nbsp;Open&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $200&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Mar18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$300&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$150&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Mar18&amp;nbsp; &amp;nbsp; &amp;nbsp;Open&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; Feb18 and Mar18 are selected in the filters then following values are to be shown&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open Service Status Payments = $400&lt;/P&gt;&lt;P&gt;Closed Service Payments&amp;nbsp; = $300&lt;/P&gt;&lt;P&gt;The above metrics are summed up after finding the values at latest transaction on ID level&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565768#M41219</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-05T12:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565770#M41220</link>
      <description>&lt;P&gt;May be use this&lt;/P&gt;&lt;PRE&gt;FirstSortedValue(Payment_Cumulative, -Month)&lt;/PRE&gt;&lt;P&gt;I don't know your complete dataset, so difficult to give a more comprehensive expression, but the above may not be enough you might need to use Aggr() function to make it work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565770#M41220</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-05T12:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565772#M41221</link>
      <description>&lt;P&gt;The data is similar to what I have shared above recently.&lt;/P&gt;&lt;P&gt;I do think so I may have to use aggr.&lt;/P&gt;&lt;P&gt;The thing is that I have to segregate the amount in Open and Closed service status based on the latest service status(this depends on the months selected).&lt;/P&gt;&lt;P&gt;Please let me know if you can help me more here.&lt;/P&gt;&lt;P&gt;It would be highly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565772#M41221</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-05T12:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565776#M41222</link>
      <description>&lt;P&gt;Is this QlikView or Qlik Sense?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565776#M41222</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-05T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565780#M41223</link>
      <description>&lt;P&gt;Qliksense&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565780#M41223</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-05T12:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565789#M41224</link>
      <description>&lt;P&gt;Try these&lt;/P&gt;&lt;PRE&gt;Sum(Aggr(If(FirstSortedValue(Service_Status, -Month) = 'Open', FirstSortedValue(Aggr(Sum(Payment_Cumulative), ID, Month), -Aggr(Month, ID, Month))), ID))&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;Sum(Aggr(If(FirstSortedValue(Service_Status, -Month) = 'Closed', FirstSortedValue(Aggr(Sum(Payment_Cumulative), ID, Month), -Aggr(Month, ID, Month))), ID))&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Apr 2019 12:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565789#M41224</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-05T12:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565796#M41225</link>
      <description>&lt;P&gt;Excellent!!!&lt;/P&gt;&lt;P&gt;It is working perfectly for the required scenario.&lt;/P&gt;&lt;P&gt;Will let you if I have add some tweaks to it for different scenarios.&lt;/P&gt;&lt;P&gt;Thanks a ton for the help.&lt;/P&gt;&lt;P&gt;Highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 13:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1565796#M41225</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-05T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Latest of the getfieldselection</title>
      <link>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1566045#M41265</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please find below the data for the query.I have to add a key in the data as well. Now, I want to find the payments for latest service status at key and ID level based on the month selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ID&amp;nbsp; &amp;nbsp; &amp;nbsp;Month&amp;nbsp; Service_Status&amp;nbsp; &amp;nbsp;Key&amp;nbsp; &amp;nbsp; &amp;nbsp;Payment_Cumulative&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$100&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Feb18&amp;nbsp; &amp;nbsp; &amp;nbsp;Open&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$200&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Mar18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$300&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan18&amp;nbsp; &amp;nbsp; &amp;nbsp;Open&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $150&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Mar18&amp;nbsp; &amp;nbsp; &amp;nbsp;Open&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $400&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Jun18&amp;nbsp; &amp;nbsp; &amp;nbsp;Closed&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $500&lt;/P&gt;&lt;P&gt;Example:-&lt;/P&gt;&lt;P&gt;If I select Jan18, Feb18 and Mar18 in the month filter&lt;/P&gt;&lt;P&gt;then the&amp;nbsp;&lt;/P&gt;&lt;P&gt;Payments for Closed service status = $100(for ID 1 and latest service status of key A) + $300(ID 1 and latest service status of key B)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Payments for Open service status = $400(for ID 2 and latest service status of key C)&lt;/P&gt;&lt;P&gt;Any help here would be commendable.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 13:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Latest-of-the-getfieldselection/m-p/1566045#M41265</guid>
      <dc:creator>qwerty89</dc:creator>
      <dc:date>2019-04-06T13:54:37Z</dc:date>
    </item>
  </channel>
</rss>

