<?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 Apply FirstSortedValue to receipt-position in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-FirstSortedValue-to-receipt-position/m-p/905715#M1004238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for a customer I want to get to get the turnover value of the highest ranking position from all filtered receipts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the Aggr function together with the FirstSortedValue function to determine the turnover. I get the right value but it appears behind the wrong receipt position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function:&lt;/P&gt;&lt;P&gt;SUM(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr( FirstSortedValue( &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GesamtUmsatz, -Restbon_Sortierung , 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Bonnummer &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GesamtUmsatz = turnover&lt;/P&gt;&lt;P&gt;Restbon_Sortierung = receipt position ranking (every position on each receipt is ranked with a unique value on the receipt)&lt;/P&gt;&lt;P&gt;Bonnummer = receipt number (every receipt got a unique number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;there are 9 position on a receipt, 5 of them have the subcategory 'L' (wich is selected / filtered), the highest ranking of theese 5 Positions is 'Product J' with a turnover of 7€. However, this value is displayed behind the first of the 5 selected positions ('Product F').&lt;/P&gt;&lt;P&gt;(It is all in the attachment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;How do I get the Value behind its corresponding position ('Product F')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is driving my crazy, any help is very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 13:01:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-21T13:01:39Z</dc:date>
    <item>
      <title>Apply FirstSortedValue to receipt-position</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-FirstSortedValue-to-receipt-position/m-p/905715#M1004238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for a customer I want to get to get the turnover value of the highest ranking position from all filtered receipts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the Aggr function together with the FirstSortedValue function to determine the turnover. I get the right value but it appears behind the wrong receipt position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function:&lt;/P&gt;&lt;P&gt;SUM(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr( FirstSortedValue( &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GesamtUmsatz, -Restbon_Sortierung , 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Bonnummer &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GesamtUmsatz = turnover&lt;/P&gt;&lt;P&gt;Restbon_Sortierung = receipt position ranking (every position on each receipt is ranked with a unique value on the receipt)&lt;/P&gt;&lt;P&gt;Bonnummer = receipt number (every receipt got a unique number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;there are 9 position on a receipt, 5 of them have the subcategory 'L' (wich is selected / filtered), the highest ranking of theese 5 Positions is 'Product J' with a turnover of 7€. However, this value is displayed behind the first of the 5 selected positions ('Product F').&lt;/P&gt;&lt;P&gt;(It is all in the attachment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;How do I get the Value behind its corresponding position ('Product F')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is driving my crazy, any help is very much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 13:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-FirstSortedValue-to-receipt-position/m-p/905715#M1004238</guid>
      <dc:creator />
      <dc:date>2015-05-21T13:01:39Z</dc:date>
    </item>
  </channel>
</rss>

