<?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 help with a formula max in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510395#M36446</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need help with a formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have to obtain the price of a product of its maximum date and its minimum date and that is shown by product. I have a graph with the product dimension, and for each one I have to show the maximum and minimum price. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product, Date, Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 01/01/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 03/11/2018, 150 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 2/23/2018, 200 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 03/11/2017, 125 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 07/02/2016, 300 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C, 05/15/2018, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Correct result (max date) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product, Date, Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 03/11/2018, 150 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 03/11/2017, 125 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C, 05/15/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Correct result (min date) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product, Date, Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 01/01/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 07/02/2016, 300 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C, 05/15/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried this formula but the values ​​are not as expected: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= Max ({&amp;lt;Date = {$ (= Max (Date))}&amp;gt;} Price) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much for the help! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 12:46:14 GMT</pubDate>
    <dc:creator>ezec1807</dc:creator>
    <dc:date>2018-11-21T12:46:14Z</dc:date>
    <item>
      <title>help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510395#M36446</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need help with a formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have to obtain the price of a product of its maximum date and its minimum date and that is shown by product. I have a graph with the product dimension, and for each one I have to show the maximum and minimum price. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product, Date, Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 01/01/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 03/11/2018, 150 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 2/23/2018, 200 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 03/11/2017, 125 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 07/02/2016, 300 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C, 05/15/2018, 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Correct result (max date) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product, Date, Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 03/11/2018, 150 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 03/11/2017, 125 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C, 05/15/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Correct result (min date) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product, Date, Price &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A, 01/01/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 07/02/2016, 300 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C, 05/15/2018, 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried this formula but the values ​​are not as expected: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= Max ({&amp;lt;Date = {$ (= Max (Date))}&amp;gt;} Price) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much for the help! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 12:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510395#M36446</guid>
      <dc:creator>ezec1807</dc:creator>
      <dc:date>2018-11-21T12:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510401#M36447</link>
      <description>&lt;P&gt;&lt;STRONG&gt;For Min value you can do this (in the UI):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(&lt;SPAN&gt;Price,Aggr(Date,Product)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Max value you can do this (in the UI):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(&lt;SPAN&gt;Price,&lt;STRONG&gt;-&lt;/STRONG&gt;Aggr(Date,Product)&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 12:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510401#M36447</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-11-21T12:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510692#M36448</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Thank you!&lt;BR /&gt;
I would have to apply a set analysis within the aggr, so that it filters me only the dates that coincide with another date field. &lt;BR /&gt;I would have to put a compliment. How would he do it?
It would be something like that what I need:

FirstSortedValue (Price, Aggr ({&amp;lt;high_date = {"&amp;gt; = $ (vFecFrom) &amp;lt;= $ (vFecTo)"}&amp;gt;} Date, Product))

Thank you!

regards&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510692#M36448</guid>
      <dc:creator>ezec1807</dc:creator>
      <dc:date>2018-11-21T20:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510698#M36449</link>
      <description>&lt;P&gt;Could be this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;FirstSortedValue ({&amp;lt;high_date = {"&amp;gt; = $ (vFecFrom) &amp;lt;= $ (vFecTo)"}&amp;gt;}Price, Aggr (Date, Product))&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510698#M36449</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2018-11-21T20:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510739#M36450</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Thanks again!

I had to modify the expression a bit.
I put:
FirstSortedValue (Price, Aggr ({&amp;lt;high_date = {"&amp;gt; = $ (vFecFrom) &amp;lt;= $ (vFecTo)"}&amp;gt;} Date, Product))&lt;BR /&gt;
If I put this formula in a table chart, it's perfect! &lt;BR /&gt;If I put it in a text box it does not give me any value. In other words, in this table, I should show a single value because I would be evaluating all the records that I have available depending on the filter, that is, I should put an aggregation, but still it does not show output value.&lt;BR /&gt;

Thank you!!!

regards&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Nov 2018 00:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510739#M36450</guid>
      <dc:creator>ezec1807</dc:creator>
      <dc:date>2018-11-22T00:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510740#M36451</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;STRONG&gt;FirstSortedValue({&amp;lt;high_date = {"&amp;gt;=$(vFecFrom)&amp;lt;=$(vFecTo)"}&amp;gt;} Price, Aggr (Date, Product))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 00:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510740#M36451</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-22T00:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: help with a formula max</title>
      <link>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510741#M36452</link>
      <description>&lt;P&gt;Yes, I tested it previously and I had to modify it for the one I just reported so that I can take it well. But the problem now is when I want to put it in a text box.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;regards&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 01:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/help-with-a-formula-max/m-p/1510741#M36452</guid>
      <dc:creator>ezec1807</dc:creator>
      <dc:date>2018-11-22T01:01:17Z</dc:date>
    </item>
  </channel>
</rss>

