<?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 aggregation first sorted values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/aggregation-first-sorted-values/m-p/2499774#M103029</link>
    <description>&lt;P&gt;Hi, I want to make a calculation based on the records in the appendix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is I want to sum all the amounts in the column SUM_Production_SONO, but only the first record for the unique combination of the field Date, Order Number and Phase.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tried formulas like:&lt;/P&gt;
&lt;P&gt;Sum(&lt;BR /&gt;{&amp;lt;Measure={'Kilo'}&amp;gt;}&lt;BR /&gt;Aggr(&lt;BR /&gt;If(RowNo() = 1, Sum(Sum_Production_SONO), 0),&lt;BR /&gt;Date, &lt;BR /&gt;[Order Number], &lt;BR /&gt;Phase&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;AND&lt;/P&gt;
&lt;P&gt;Sum(&lt;BR /&gt;{&amp;lt;Measure={'Kilo'}&amp;gt;}&lt;BR /&gt;Aggr(&lt;BR /&gt;If(RowNo() = 1, Sum(Sum_Production_SONO)),&lt;BR /&gt;Date, &lt;BR /&gt;[Order Number], &lt;BR /&gt;Phase&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But they still give the sum of all the values instead of only the first one. Can someone help me with this?&lt;BR /&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 14:10:31 GMT</pubDate>
    <dc:creator>Lotteverhoeven</dc:creator>
    <dc:date>2025-01-02T14:10:31Z</dc:date>
    <item>
      <title>aggregation first sorted values</title>
      <link>https://community.qlik.com/t5/App-Development/aggregation-first-sorted-values/m-p/2499774#M103029</link>
      <description>&lt;P&gt;Hi, I want to make a calculation based on the records in the appendix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is I want to sum all the amounts in the column SUM_Production_SONO, but only the first record for the unique combination of the field Date, Order Number and Phase.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tried formulas like:&lt;/P&gt;
&lt;P&gt;Sum(&lt;BR /&gt;{&amp;lt;Measure={'Kilo'}&amp;gt;}&lt;BR /&gt;Aggr(&lt;BR /&gt;If(RowNo() = 1, Sum(Sum_Production_SONO), 0),&lt;BR /&gt;Date, &lt;BR /&gt;[Order Number], &lt;BR /&gt;Phase&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;AND&lt;/P&gt;
&lt;P&gt;Sum(&lt;BR /&gt;{&amp;lt;Measure={'Kilo'}&amp;gt;}&lt;BR /&gt;Aggr(&lt;BR /&gt;If(RowNo() = 1, Sum(Sum_Production_SONO)),&lt;BR /&gt;Date, &lt;BR /&gt;[Order Number], &lt;BR /&gt;Phase&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But they still give the sum of all the values instead of only the first one. Can someone help me with this?&lt;BR /&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 14:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aggregation-first-sorted-values/m-p/2499774#M103029</guid>
      <dc:creator>Lotteverhoeven</dc:creator>
      <dc:date>2025-01-02T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: aggregation first sorted values</title>
      <link>https://community.qlik.com/t5/App-Development/aggregation-first-sorted-values/m-p/2499797#M103030</link>
      <description>&lt;P&gt;Maybe something like this:&lt;/P&gt;
&lt;P&gt;if(&lt;SPAN&gt;Date = above(Date) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Order Number] = above([Order Number]) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Phase = above(Phase), &lt;BR /&gt;&amp;nbsp; &amp;nbsp;null(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Sum({&amp;lt;Measure={'Kilo'}&amp;gt;}&amp;nbsp;Sum_Production_SONO))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aggregation-first-sorted-values/m-p/2499797#M103030</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-01-02T15:26:33Z</dc:date>
    </item>
  </channel>
</rss>

