<?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 Firstsortedvalue and sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243871#M24774</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;I have a very simple issue I cant figure out. I have 2 columns, A column with value and B column vith Date. Im using firstsorteddate to get the latest enrty from those 2 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstSortedValue(Valuation,-[date([Effective date]])])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working, if the expression only returns one latest date. But when there are 2 latest dates, it does not return anything. How do I sum the valuation when there are multiple entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:12:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:12:41Z</dc:date>
    <item>
      <title>Firstsortedvalue and sum</title>
      <link>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243871#M24774</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;I have a very simple issue I cant figure out. I have 2 columns, A column with value and B column vith Date. Im using firstsorteddate to get the latest enrty from those 2 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstSortedValue(Valuation,-[date([Effective date]])])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working, if the expression only returns one latest date. But when there are 2 latest dates, it does not return anything. How do I sum the valuation when there are multiple entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243871#M24774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue and sum</title>
      <link>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243872#M24775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Aggr(Sum(Valuation), &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[date([Effective date]])]), -Aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[date([Effective date]])], &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[date([Effective date]])]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243872#M24775</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-12T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue and sum</title>
      <link>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243873#M24776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are a star Sunny, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works great, only one minor issue remains. Im using this in a pivot table as a measure, and I have multiple rows as companies. This expression works great, when I select an individual line (company as a filter), the value is correct. When I select 5 companies, It calculates the value of all of those 5 companies to the top rows column, and leaves the rest empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company 1&amp;nbsp;&amp;nbsp; 5000€&lt;/P&gt;&lt;P&gt;Company 2&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Company 3&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Company 4&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Company 5&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this somehow possible to fix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243873#M24776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-12T12:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue and sum</title>
      <link>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243874#M24777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(Aggr(Sum(Valuation), &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[date([Effective date]])]&lt;SPAN style="color: #ff0000;"&gt;, Company&lt;/SPAN&gt;), -Aggr(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[date([Effective date]])],&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[date([Effective date]])]&lt;STRONG style="color: #ff0000; font-style: inherit; font-family: inherit;"&gt;, Company&lt;/STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243874#M24777</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-12T16:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue and sum</title>
      <link>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243875#M24778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, works like a charm! &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, 12 Dec 2016 18:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Firstsortedvalue-and-sum/m-p/1243875#M24778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-12T18:28:01Z</dc:date>
    </item>
  </channel>
</rss>

