<?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: Min value issue with Aggr function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434015#M96868</link>
    <description>&lt;P&gt;Both options do not work, not in the separate straight table where the statistics are exposed, also not in the straight table where the data is located.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Mar 2024 16:54:25 GMT</pubDate>
    <dc:creator>KrisF</dc:creator>
    <dc:date>2024-03-24T16:54:25Z</dc:date>
    <item>
      <title>Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2431541#M96635</link>
      <description>&lt;P&gt;I have the following input:&lt;BR /&gt;obs dDate value&lt;BR /&gt;195588 2024-02-21 13,43&lt;BR /&gt;194798 2024-02-20 13,55&lt;BR /&gt;192428 2024-02-15 13,41&lt;BR /&gt;191638 2024-02-14 13,31&lt;BR /&gt;190848 2024-02-13 13,23&lt;BR /&gt;190058 2024-02-12 13,81&lt;BR /&gt;172597 2024-01-11 14,26&lt;BR /&gt;170209 2024-01-08 14,62&lt;BR /&gt;39596 2023-05-17 13,85&lt;BR /&gt;38775 2023-05-16 13,78&lt;BR /&gt;37954 2023-05-15 13,64&lt;BR /&gt;37133 2023-05-12 13,34&lt;BR /&gt;36312 2023-05-11 13,38&lt;BR /&gt;35491 2023-05-10 13,44&lt;/P&gt;
&lt;P&gt;I use this aggregate function:&lt;BR /&gt;=max( aggr(NODISTINCT if(min(total value,Year) = min(value), obs,0), (Year,(NUMERIC, DESCENDING)), (dDate,(NUMERIC, DESCENDING))))&lt;/P&gt;
&lt;P&gt;I try to get the 'obs' for each year related to the lowest value of 'value'.&lt;BR /&gt;the formula above delivers the correct value (190848), but only for the year=2024.&lt;BR /&gt;The value for the previous years delivers a zero.&lt;/P&gt;
&lt;P&gt;What is the correct way to solve this issue?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 18:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2431541#M96635</guid>
      <dc:creator>KrisF</dc:creator>
      <dc:date>2024-03-16T18:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2431707#M96656</link>
      <description>&lt;PRE&gt;FirstSortedValue(obs, value)&lt;/PRE&gt;
&lt;P&gt;This expression will always select the obs value associated with the smallest value regardless of what dimensions your chart has.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 07:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2431707#M96656</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-03-18T07:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2431769#M96662</link>
      <description>&lt;P&gt;PFA, snapshot.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Aggr(FirstSortedValue(obs,value),Year)&amp;nbsp;&lt;/STRONG&gt; should give you results for both the years, but because of load order you will see OBS value being displayed in different row.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 09:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2431769#M96662</guid>
      <dc:creator>Dataintellinalytics</dc:creator>
      <dc:date>2024-03-18T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434015#M96868</link>
      <description>&lt;P&gt;Both options do not work, not in the separate straight table where the statistics are exposed, also not in the straight table where the data is located.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 16:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434015#M96868</guid>
      <dc:creator>KrisF</dc:creator>
      <dc:date>2024-03-24T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434024#M96869</link>
      <description>&lt;P&gt;In the attached picture I made an example to illustrate the intention.&lt;/P&gt;
&lt;P&gt;In dark yellow I marked the values that go wrong&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 18:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434024#M96869</guid>
      <dc:creator>KrisF</dc:creator>
      <dc:date>2024-03-24T18:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434025#M96870</link>
      <description>&lt;P&gt;Perhaps&lt;/P&gt;
&lt;P&gt;=Only(If(Aggr(NODISTINCT Min(value), Year) = value, obs))&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 18:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434025#M96870</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-03-24T18:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Min value issue with Aggr function</title>
      <link>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434049#M96873</link>
      <description>&lt;P&gt;Yes,I've got the expected results, thank you&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 02:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-value-issue-with-Aggr-function/m-p/2434049#M96873</guid>
      <dc:creator>KrisF</dc:creator>
      <dc:date>2024-03-25T02:26:25Z</dc:date>
    </item>
  </channel>
</rss>

