<?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 value with only set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392911#M423273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) What is your Date field format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Do you have data for today? May be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat({$&amp;lt;TimeDiff={'$(=Interval(max(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;STRONG style="font-size: 13.3333px;"&gt;Date = {"$(=Date(Today()))"}&lt;/STRONG&gt;&amp;gt;}&lt;/SPAN&gt;TimeDiff)))'}, Date = {"$(=Date(Today()))"}&amp;gt;}City)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 15:16:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-15T15:16:22Z</dc:date>
    <item>
      <title>Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392902#M423264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the city with the max timediff between two times (in script I use Interval(Scheduled_Time - Actual_Time as TimeDiff)) by using a set analysis with an Only-function. But I am getting an error with my expression: &lt;/P&gt;&lt;P&gt;=Only({$&amp;lt;TimeDiff={$(=max(TimeDiff))}&amp;gt;}City)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to get is a textobject with the name of the city with the highest timediff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paris 00:07:00&lt;/P&gt;&lt;P&gt;Berlin 00:12:00&lt;/P&gt;&lt;P&gt;Amsterdam 00:03:00&lt;/P&gt;&lt;P&gt;Berlin 00:11:00&lt;/P&gt;&lt;P&gt;London 00:13:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in this case I expect to see London as it as the highest timediff. How can I achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 20:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392902#M423264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392903#M423265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= FirstSortedValue(City, -Aggr(Max(TimeDiff), City)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 20:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392903#M423265</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-14T20:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392904#M423266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems not to be working. Maybe as I can have a city multiple times with different TimeDiff?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 20:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392904#M423266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T20:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392905#M423267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share this sample data you are working on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 20:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392905#M423267</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-14T20:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392906#M423268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;How about this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TimeDiff&lt;/SPAN&gt;={'$(=max(aggr(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TimeDiff&lt;/SPAN&gt;),City)))'}&amp;gt;}City)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 22:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392906#M423268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T22:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392907#M423269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it should actually be &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=only({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TimeDiff&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;={'$(=max(aggr(max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TimeDiff&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;),City)))'}&amp;gt;}City)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 22:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392907#M423269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T22:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392908#M423270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;TimeDiff = {"$(=Time(Max(TimeDiff),'hh:mm:ss'))"}&amp;gt;}City)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 04:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392908#M423270</guid>
      <dc:creator>woshua5550</dc:creator>
      <dc:date>2017-11-15T04:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392909#M423271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;Concat&lt;/SPAN&gt;({$&amp;lt;TimeDiff={&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;$(=max(TimeDiff))&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'&lt;/STRONG&gt;}&amp;gt;}City)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;Concat&lt;/SPAN&gt;({$&amp;lt;TimeDiff={&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'&lt;/STRONG&gt;$(=&lt;SPAN style="color: #ff0000;"&gt;Interval(&lt;/SPAN&gt;max(TimeDiff)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'&lt;/STRONG&gt;}&amp;gt;}City)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 09:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392909#M423271</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-15T09:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392910#M423272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two are working, thanks! I probably have some issues in my database which explain why all other options are not working, while they are working if I use a simplified dataset. Am currently studying why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more questions, I am now trying to expand this Concat set analysis with a date is date today option. This is not giving any output though (using it in a text object). Someone can see my mistake? My text object is remaining empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Concat&lt;/SPAN&gt;({$&amp;lt;TimeDiff={&lt;STRONG style="font-style: inherit; color: #ff0000;"&gt;'&lt;/STRONG&gt;$(=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Interval(&lt;/SPAN&gt;max(TimeDiff)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;STRONG style="font-style: inherit; color: #ff0000;"&gt;'&lt;/STRONG&gt;}, Date = {"$(=Date(Today()))"}&amp;gt;}City)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392910#M423272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392911#M423273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) What is your Date field format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Do you have data for today? May be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat({$&amp;lt;TimeDiff={'$(=Interval(max(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;STRONG style="font-size: 13.3333px;"&gt;Date = {"$(=Date(Today()))"}&lt;/STRONG&gt;&amp;gt;}&lt;/SPAN&gt;TimeDiff)))'}, Date = {"$(=Date(Today()))"}&amp;gt;}City)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392911#M423273</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-15T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Max value with only set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392912#M423274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was the solution! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-value-with-only-set-analysis/m-p/1392912#M423274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T16:24:08Z</dc:date>
    </item>
  </channel>
</rss>

