<?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: Date when Quantity is max as Set Analysis with aggr or firstshortvalue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-when-Quantity-is-max-as-Set-Analysis-with-aggr-or/m-p/1892238#M73528</link>
    <description>&lt;P&gt;Hi,I haven't tested but maybe:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Concat(Date(Aggr(&lt;/FONT&gt;If(&lt;SPAN&gt;sum(NB_PLATEAUX)=aggr(max(aggr(sum(NB_PLATEAUX),Date,UNITE)),UNITE), Date)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;,Date)))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Concat is only in case there are more than one date with max sales.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;If doesnt works you can also test adding a TOTAL:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Concat(Date(Aggr(&lt;/FONT&gt;If(&lt;SPAN&gt;sum(NB_PLATEAUX)=aggr(max(TOTAL aggr(sum(NB_PLATEAUX),Date,UNITE)),UNITE), Date)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;,Date)))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Feb 2022 12:23:00 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2022-02-12T12:23:00Z</dc:date>
    <item>
      <title>Date when Quantity is max as Set Analysis with aggr or firstshortvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Date-when-Quantity-is-max-as-Set-Analysis-with-aggr-or/m-p/1891933#M73500</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;i have an expression like this :&lt;/P&gt;
&lt;P&gt;aggr(max(aggr(sum(NB_PLATEAUX),Date,UNITE)),UNITE)&lt;/P&gt;
&lt;P&gt;And it's work : i have the max qty&amp;nbsp; (NB_PLATEAUX)&amp;nbsp; per day for the selection&lt;/P&gt;
&lt;P&gt;Now i want the &lt;STRONG&gt;date&lt;/STRONG&gt; when qty is max, with a set analysis but i don't know how write it...&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 12:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-when-Quantity-is-max-as-Set-Analysis-with-aggr-or/m-p/1891933#M73500</guid>
      <dc:creator>Near</dc:creator>
      <dc:date>2022-02-11T12:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date when Quantity is max as Set Analysis with aggr or firstshortvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Date-when-Quantity-is-max-as-Set-Analysis-with-aggr-or/m-p/1892238#M73528</link>
      <description>&lt;P&gt;Hi,I haven't tested but maybe:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Concat(Date(Aggr(&lt;/FONT&gt;If(&lt;SPAN&gt;sum(NB_PLATEAUX)=aggr(max(aggr(sum(NB_PLATEAUX),Date,UNITE)),UNITE), Date)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;,Date)))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Concat is only in case there are more than one date with max sales.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;If doesnt works you can also test adding a TOTAL:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;Concat(Date(Aggr(&lt;/FONT&gt;If(&lt;SPAN&gt;sum(NB_PLATEAUX)=aggr(max(TOTAL aggr(sum(NB_PLATEAUX),Date,UNITE)),UNITE), Date)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN&gt;,Date)))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 12:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-when-Quantity-is-max-as-Set-Analysis-with-aggr-or/m-p/1892238#M73528</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-02-12T12:23:00Z</dc:date>
    </item>
  </channel>
</rss>

