<?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: Max function with limited selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624496#M46492</link>
    <description>&lt;P&gt;if you just want to take date but ignore everything else from both set and table dimension, you can do this way&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Max( {1&amp;lt;Date=p(Date), currencyPair =p(currencyPair )&amp;gt;}total &amp;lt; currencyPair,Date&amp;gt; rate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 07:40:43 GMT</pubDate>
    <dc:creator>asinha1991</dc:creator>
    <dc:date>2019-09-17T07:40:43Z</dc:date>
    <item>
      <title>Max function with limited selection</title>
      <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624466#M46484</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a set of 2 year's data and i want to calculated a daily price range. I use max(rate)-min(rate) in a table also with other two dimension currency pair and client.&amp;nbsp; I want the max and min only reflect its daily range when i select a date but calculated a cross all client. An example will be&amp;nbsp; when i select a client, a date and a currency pair, the max() returns the max number for the day, for the currency pair but across all client.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;Max( total &amp;lt; currencyPair &amp;gt; rate), which gives the correct result as long as i only select date. I want also be able filter the client. Can nay one hlep me with it?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 07:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624466#M46484</guid>
      <dc:creator>fantong3</dc:creator>
      <dc:date>2019-09-17T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Max function with limited selection</title>
      <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624476#M46486</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure, but have you tried to used aggr function?Something like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(Aggr(max(rate),currencyPair,date)-Aggr(min(rate),currencyPair,date))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 07:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624476#M46486</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-17T07:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Max function with limited selection</title>
      <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624496#M46492</link>
      <description>&lt;P&gt;if you just want to take date but ignore everything else from both set and table dimension, you can do this way&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Max( {1&amp;lt;Date=p(Date), currencyPair =p(currencyPair )&amp;gt;}total &amp;lt; currencyPair,Date&amp;gt; rate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 07:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624496#M46492</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-09-17T07:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Max function with limited selection</title>
      <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624933#M46519</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31657"&gt;@asinha1991&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick replay. This is one works great in the a table. However i am not able to select a client and display all values for this client only in the table. Is it because this function use '1' in set expression which will always display all possible values? Ideally i want to able to filter the client and only display rows for this client but the max() still calculates across all client. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 02:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624933#M46519</guid>
      <dc:creator>fantong3</dc:creator>
      <dc:date>2019-09-18T02:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Max function with limited selection</title>
      <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624936#M46521</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83275"&gt;@StarinieriG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the replay. Unfortunately this one does not return my answers.&amp;nbsp; I have tried ashiha1991's which worked but not able to show results only for a selected client. Is that possible we still showing result for selected client(in table dimension) but have max() calculate across all client? Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 02:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1624936#M46521</guid>
      <dc:creator>fantong3</dc:creator>
      <dc:date>2019-09-18T02:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Max function with limited selection</title>
      <link>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1625029#M46531</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Max( {1&amp;lt;Date=p(Date), currencyPair =p(currencyPair )&amp;gt;}total &amp;lt; currencyPair,Date&amp;gt; rate)&lt;/SPAN&gt;* count(distinct client) and hide 0...there could be better with aggr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 08:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Max-function-with-limited-selection/m-p/1625029#M46531</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-09-18T08:00:14Z</dc:date>
    </item>
  </channel>
</rss>

