<?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 shows multiple results in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1967937#M1220428</link>
    <description>&lt;P&gt;Hi There!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think i'm a little lost right now.. maybe i think way to complicate.&lt;/P&gt;
&lt;P&gt;I'd like to lookup the Bin Code with the highest quantity in stock for managing our replenishment.&lt;/P&gt;
&lt;P&gt;dimension: itemno (key field between item-table and bincontent-table)&lt;/P&gt;
&lt;P&gt;Formula used:&lt;/P&gt;
&lt;P&gt;#1&lt;/P&gt;
&lt;P&gt;FirstSortedValue([LP.Bin Code], -Aggr(sum(LP.Quantity),[LP.Bin Code]))&lt;/P&gt;
&lt;P&gt;#2&lt;/P&gt;
&lt;P&gt;FirstSortedValue(LP.Quantity, -Aggr(sum(LP.Quantity),[LP.Bin Code]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;results are ok, when i select a single itemno in the app. as soon as i unselect the itemno, results in the straight table are mad..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any idea what i'm doing wrong? do i have to set this up in load script? any idea how? thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timmoe11_0-1660244250107.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86589i1AE52DD24D2C9081/image-size/medium?v=v2&amp;amp;px=400" role="button" title="timmoe11_0-1660244250107.png" alt="timmoe11_0-1660244250107.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 18:59:35 GMT</pubDate>
    <dc:creator>timmoe11</dc:creator>
    <dc:date>2022-08-11T18:59:35Z</dc:date>
    <item>
      <title>FirstSortedValue shows multiple results in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1967937#M1220428</link>
      <description>&lt;P&gt;Hi There!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think i'm a little lost right now.. maybe i think way to complicate.&lt;/P&gt;
&lt;P&gt;I'd like to lookup the Bin Code with the highest quantity in stock for managing our replenishment.&lt;/P&gt;
&lt;P&gt;dimension: itemno (key field between item-table and bincontent-table)&lt;/P&gt;
&lt;P&gt;Formula used:&lt;/P&gt;
&lt;P&gt;#1&lt;/P&gt;
&lt;P&gt;FirstSortedValue([LP.Bin Code], -Aggr(sum(LP.Quantity),[LP.Bin Code]))&lt;/P&gt;
&lt;P&gt;#2&lt;/P&gt;
&lt;P&gt;FirstSortedValue(LP.Quantity, -Aggr(sum(LP.Quantity),[LP.Bin Code]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;results are ok, when i select a single itemno in the app. as soon as i unselect the itemno, results in the straight table are mad..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any idea what i'm doing wrong? do i have to set this up in load script? any idea how? thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timmoe11_0-1660244250107.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86589i1AE52DD24D2C9081/image-size/medium?v=v2&amp;amp;px=400" role="button" title="timmoe11_0-1660244250107.png" alt="timmoe11_0-1660244250107.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 18:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1967937#M1220428</guid>
      <dc:creator>timmoe11</dc:creator>
      <dc:date>2022-08-11T18:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue shows multiple results in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1967960#M1220429</link>
      <description>&lt;P&gt;Maybe by adding the itemno as a dimension.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 20:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1967960#M1220429</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-11T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue shows multiple results in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1968048#M1220431</link>
      <description>&lt;P&gt;itemno is a dimension in both charts..&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 06:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1968048#M1220431</guid>
      <dc:creator>timmoe11</dc:creator>
      <dc:date>2022-08-12T06:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue shows multiple results in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1968057#M1220432</link>
      <description>&lt;P&gt;I meant as part of the expressions&lt;/P&gt;
&lt;P&gt;#1&lt;/P&gt;
&lt;P&gt;FirstSortedValue([LP.Bin Code], -Aggr(sum(LP.Quantity),[LP.Bin Code],itemno))&lt;/P&gt;
&lt;P&gt;#2&lt;/P&gt;
&lt;P&gt;FirstSortedValue(LP.Quantity, -Aggr(sum(LP.Quantity),[LP.Bin Code],itemno))&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 06:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-shows-multiple-results-in-straight-table/m-p/1968057#M1220432</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-12T06:23:12Z</dc:date>
    </item>
  </channel>
</rss>

