<?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: Including a sum statement into Firstsorted value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422112#M1159355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normal expression Swuehl, I am trying to sum to value amounts (off different rows) that have the same date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 15:50:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-10T15:50:47Z</dc:date>
    <item>
      <title>Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422107#M1159347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have a problem. I am getting a null value because there are two records in my table with the same date, which is fine, but Qlikview displays this as a null, I have used expression &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Cleared Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) I would like to use &lt;/SPAN&gt;&lt;/SPAN&gt;FirstSortedValue&lt;STRONG style="font-size: 8pt;"&gt;(SUM&lt;/STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Cleared Amount])&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) but Qlikview doesnt like it, I could do a resident load but the report takes over an hour to reload. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Is is it possible to use sum in a firstsortedvalue statement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Paul.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 14:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422107#M1159347</guid>
      <dc:creator />
      <dc:date>2012-12-10T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422108#M1159349</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;Perhaps this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Aggr(Sum([Cleared Amount]), Date), -Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 14:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422108#M1159349</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-12-10T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422109#M1159351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't embed an aggregation function (sum()) into another (FirstSortedValue() ) without using advanced aggregation, so try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=FirstSortedValue&lt;SPAN style="font-size: 8pt;"&gt;( aggr(sum(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Cleared Amount])&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), -Date) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you don't want to aggregate your Amounts because they are just duplicates, try DISTINCT qualifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=FirstSortedValue&lt;SPAN style="font-size: 8pt;"&gt;(DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Cleared Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -Date) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 14:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422109#M1159351</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-10T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422110#M1159352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that didn't work, Still got a null value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 15:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422110#M1159352</guid>
      <dc:creator />
      <dc:date>2012-12-10T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422111#M1159354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to use the expression in script or in a chart expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 15:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422111#M1159354</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-10T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422112#M1159355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normal expression Swuehl, I am trying to sum to value amounts (off different rows) that have the same date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 15:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422112#M1159355</guid>
      <dc:creator />
      <dc:date>2012-12-10T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Including a sum statement into Firstsorted value</title>
      <link>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422113#M1159356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever find an answer to this issue? I am having the same issue and would appreciate if you could share your solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 17:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Including-a-sum-statement-into-Firstsorted-value/m-p/422113#M1159356</guid>
      <dc:creator>sidjustice</dc:creator>
      <dc:date>2013-08-08T17:00:23Z</dc:date>
    </item>
  </channel>
</rss>

