<?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 Set analysis Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356333#M493049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="235" style="width: 262px; height: 237px; border: #000000 1px solid;" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;DateTime&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Tap_Id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/01/2012 14:00&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/01/2012 15:00&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/01/2012 14:00&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/01/2012 4:30&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/01/2012 4:45&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/01/2012 20:00&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/01/2012 20:00&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to build a simple chart that will present for each day and tap the last status&amp;nbsp; - open or close (the biggest datetime for each day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2012 08:54:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-17T08:54:52Z</dc:date>
    <item>
      <title>Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356333#M493049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="235" style="width: 262px; height: 237px; border: #000000 1px solid;" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;DateTime&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Tap_Id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/01/2012 14:00&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/01/2012 15:00&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/01/2012 14:00&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/01/2012 4:30&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;02/01/2012 4:45&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/01/2012 20:00&lt;/TD&gt;&lt;TD&gt;close&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03/01/2012 20:00&lt;/TD&gt;&lt;TD&gt;open&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to build a simple chart that will present for each day and tap the last status&amp;nbsp; - open or close (the biggest datetime for each day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 08:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356333#M493049</guid>
      <dc:creator />
      <dc:date>2012-06-17T08:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356334#M493050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presuming you don't wish to edit the script (which would be the easiest and most efficient way to do this) this is how I would construct my chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Add calculated dimension of &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=date(floor(Datetime))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; this will remove the time from the timestamp and group your items as just a date (Date() on it's own migiht work, but I haven't tested it as a dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression "latest Status" :&lt;EM&gt; =firstsortedvalue(Status, -DateTime)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstsorted value takes the first status when you order by "-Datetime" IE the "last" in the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 15:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356334#M493050</guid>
      <dc:creator />
      <dc:date>2012-06-17T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356335#M493051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks....i didnt think about using this function.....&lt;/P&gt;&lt;P&gt;just for the knowledge - can it been done by using set analysis ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 05:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356335#M493051</guid>
      <dc:creator />
      <dc:date>2012-06-18T05:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356336#M493052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, but it would be more complicated. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only( {$&amp;lt;&lt;EM&gt;Datetime&lt;/EM&gt;= {$(=&lt;EM&gt;Datetime&lt;/EM&gt;) }&amp;nbsp; &amp;gt;}&amp;nbsp;&amp;nbsp; Status)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will search for the "only" value of status where the datetime is the same as the max datetime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 16:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356336#M493052</guid>
      <dc:creator />
      <dc:date>2012-06-18T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356337#M493053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow the set analysis expression isnt working for me.&lt;/P&gt;&lt;P&gt;I would appreciate if you could look in this qvw.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps alt-edited"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 11:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356337#M493053</guid>
      <dc:creator />
      <dc:date>2012-06-19T11:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356338#M493054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached one Application .This Application helpful to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reegards&lt;/P&gt;&lt;P&gt;perumal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356338#M493054</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-06-19T12:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356339#M493055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was also thinking... &lt;/P&gt;&lt;P&gt;Perumal A: your solution isn't setAnalysis, is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A problem in that solution (as well as in the solution with firstSortedValue) is the date 3-1-2012. In this QVW it doesn't appear, while it should. The cause is that the datetime is exactly the same (and the firstSortedValue has &amp;gt;1 record and will be null...) Perhaps this is more a data-cleaning thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SetAnalysis I'm afraid it will be hard, So I wonder what the reaction of Erica Whally is. I think in the load-script then first the max-date must be calculated and available per column, so that then the setanalysis will work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356339#M493055</guid>
      <dc:creator />
      <dc:date>2012-06-19T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356340#M493056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matan,&lt;/P&gt;&lt;P&gt;first change dimension in your QVW from "Tap_ID" to "date". This make things to look a few better. But problem is your Expression where you have used : &lt;EM&gt;DateTime={"=max(DateTime)"}&lt;/EM&gt;. It's not the way you can use functions in an Expression defination. ofcurse you can define a variable like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='only({$&amp;lt;DateTime={"' &amp;amp; =max(DateTime) &amp;amp; '"}&amp;gt;}Status)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then write &lt;EM&gt;$(varName)&lt;/EM&gt; as Expression,but max() will be called only one time when QV wants to refresh the chart, not for every row with a different value of max(DateTime).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the best way is what Erica has mentioned in first post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Peyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356340#M493056</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2012-06-19T12:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356341#M493057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that would mean that this is not possible with SetAnalysis, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 12:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356341#M493057</guid>
      <dc:creator />
      <dc:date>2012-06-19T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356342#M493058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think so, Generaly set analys is for filtering on an expression, for all values. I don't know any way that can be used in the way that you mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 15:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356342#M493058</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2012-06-19T15:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356343#M493059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for helping me.&lt;/P&gt;&lt;P&gt;I didnt give up.... i will find a way to solve this with set analysis....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 17:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356343#M493059</guid>
      <dc:creator />
      <dc:date>2012-06-19T17:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356344#M493060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pleas write the answer here when you find a way to do this with SA. I'm really interested to see that is this posible with use of SA or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Peyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 12:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356344#M493060</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2012-06-21T12:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356345#M493061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've come to the conclusion that you &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM&gt;cant&lt;/EM&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;achieve this with set analysis, the reason is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is, that when you define a set in set analysis it defines the set as if you were making selections in all the data. It &lt;EM&gt;doesn''t&lt;/EM&gt; take into account the dimension or divide up the data by dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you include an expression in the set analysis, this is performed first &lt;STRONG&gt;over the full set of data&lt;/STRONG&gt; before being applied to each element in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in the example above if you were to reference $(=max([chosen_field]) in the set analysis this would work out the max(chosen_field) for all the data before applying that static max to the dimension. So there is no immediately easy way to use set analysis differently dependant on what was in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps clarify things!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 17:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356345#M493061</guid>
      <dc:creator />
      <dc:date>2012-06-21T17:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356346#M493062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Matan, I like the people that never gives up!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first place, with a table with "date" as dimention (if you don't have the "date" field, you could create with a calculated dimention like =Left(date(DateTime),10)), the expression that gives to you the last state is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(State, -DateTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, for make this with SA, you need to tell to the expression witch values are available. These available values will be only the max for each day. The expression would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;DateTime={$(vMaxTime)}&amp;gt;}Status)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of sintaxis of SA, you cant use search query inside another search query, and to make that you need to make a variable. In this case, it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='"*'&amp;amp;Concat(left(Timestamp(Aggr(max(DateTime),date)),16),'","*')&amp;amp;'"'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable creates a search string, with the values of the max for each day. From inside to outside, Aggr(Max(DateTime), date) gives you the max values aggregated by date. Then, with TimeStamp, you transform it to a timestamp string. I used Left to pick out the seconds, because if you use the [Format] parameter of TimeStamp, you could give round problems, and have a difference of minutes, creating invalid timestamps. Note that if you have hours less than 10, you should use left(...., 15). I recomend that you format these field to HH:MM:SS, or HH:MM and don't use Left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the Concat creates the complete string with all the max values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im agree with you, IT IS POSSIBLE!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 00:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356346#M493062</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-08-23T00:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356347#M493063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;matan...&amp;nbsp; I taked time in response your question, and also explain you the solution, and you not even mark as answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2012 14:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356347#M493063</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-08-25T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356348#M493064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow i knew it can be done.&lt;/P&gt;&lt;P&gt;Sorry for not comment earlier- i've been on vacation.&lt;/P&gt;&lt;P&gt;Did you know if this solution is easier to calculate then the firstsortedvalue formula ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your effort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2012 17:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356348#M493064</guid>
      <dc:creator />
      <dc:date>2012-08-26T17:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356349#M493065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its Ok Matan!! Did you went to any vacation place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution with firstsortedvalue is most simply, but i don't know if it's faster to calculate...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try both and comment to us!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2012 21:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Question/m-p/356349#M493065</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-08-26T21:02:59Z</dc:date>
    </item>
  </channel>
</rss>

