<?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 Retrieve one object at a specific time using Set Analyze in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164200#M36988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use my suggestion from the first message. It is really the best thing you can do when troubleshooting Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;You should check the format of your SYSTIME and see what you are getting out of the dollar sign expansion.&lt;BR /&gt;Set up that Set Analysis expression in a table, but don't give it a label. Then when the table is rendered,&lt;BR /&gt;you should see the Set Analysis expression with the value of the dollar sign expansion evaluated.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Once you have the expression that QlikView is using (that isn't working), you will have a better idea of what the problem is.&lt;/P&gt;&lt;P&gt;I think the problem you are having is you are searching for the greatest ROWID, but not the greatest ROWID with 'AMHEG2BUSGEN_P'. Try this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM( {1&amp;lt;Rowid={$(#=MAX(Rowid{1&amp;lt;OBENAME={'AMHEG2BUSGEN_P'}&amp;gt;}))}&amp;gt;} VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That should give you the greatest ROWID for AMHEG2BUSGEN_P, then you'll sum the values where the ROWIDs match. If ROWID is unique (I assume), then you will get the value of the greatest ROWID for 'AMHEG2BUSGEN_P'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 01:20:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-25T01:20:51Z</dc:date>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164195#M36983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to retrieve the last value for and object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;SYSTIME = {$(#=MAX(SYSTIME))},OBENAME ={'XXXXXXXXXXXXXXXXXXX'}&amp;gt;} VALUE )&lt;/P&gt;&lt;P&gt;This does not work but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM ( {$&amp;lt;Rowid={$(#=MAX(Rowid))},OBENAME={'AMHEG2BUSGEN_P'}&amp;gt; } VALUE) almost works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is that when I select OBENAME in other dialog then my aggregation doesn't return any data.&lt;/P&gt;&lt;P&gt;I would like to use SYSTIME instead of rowid and be able to retrieve an object even though a selection of an object has been done in other dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin: 0cm -32.4pt 0pt 0cm;"&gt;Table Viewer&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-645_sourceID:645" /&gt;&lt;/P&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin: 0cm -32.4pt 0pt 0cm;"&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; ThousandSep=' ';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; DecimalSep=',';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; MoneyThousandSep='.';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; MoneyDecimalSep=',';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; MoneyFormat='#.##0,00 kr;-#.##0,00 kr';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; DateFormat='YYYY-MM-DD';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; MonthNames='jan;feb;mar;apr;maj;jun;jul;aug;sep;okt;nov;dec';&lt;/P&gt;&lt;P&gt;&lt;B&gt;SET&lt;/B&gt; DayNames='må;ti;on;to;fr;lö;sö';&lt;/P&gt;&lt;P&gt;&lt;B&gt;ODBC&lt;/B&gt; &lt;B&gt;CONNECT&lt;/B&gt; &lt;B&gt;TO&lt;/B&gt; [xxxx;DBQ=vvvv ] (XUserId is ECaDLUFNTLIA, XPassword is IQbQCUFNTTYB);&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; IRN &lt;B&gt;as&lt;/B&gt; ID, NAME;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; IRN, NAME &lt;B&gt;FROM&lt;/B&gt; OBE;&lt;/P&gt;&lt;P&gt;&lt;B&gt;LOAD&lt;/B&gt; "OBE_IRN" &lt;B&gt;as&lt;/B&gt; ID, SYSTIME, VALUE,(Day(SYSTIME)*24*60*60+hour(SYSTIME)*60+minute(SYSTIME)*60+second(SYSTIME)) &lt;B&gt;as&lt;/B&gt; Rowid;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;SELECT&lt;/B&gt; * &lt;B&gt;FROM&lt;/B&gt; HIS.LMEAONESECOND where systime &amp;gt; sysdate-1;&lt;/P&gt;&lt;P&gt;/Kjell Bystedt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 20:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164195#M36983</guid>
      <dc:creator />
      <dc:date>2009-11-24T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164196#M36984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should check the format of your SYSTIME and see what you are getting out of the dollar sign expansion. Set up that Set Analysis expression in a table, but don't give it a label. Then when the table is rendered, you should see the Set Analysis expression with the value of the dollar sign expansion evaluated. I have had QlikView do some formatting on dates in this situation.&lt;/P&gt;&lt;P&gt;As for your second issue, I'm not quite sure. Are you selecting 'AMHEG2BUSGEN_P' from OBENAME or something else. If you select something else, you should get nothing, because your Set Analysis is looking for a value that is not in the selected set. If you want to be able to select anything and still have this expression display for 'AMHEG2BUSGEN_P' then you need to change {$... to {1... so it will ignore selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 21:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164196#M36984</guid>
      <dc:creator />
      <dc:date>2009-11-24T21:39:10Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164197#M36985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am looking to the first problem.&lt;/P&gt;&lt;P&gt;For the second problem I am selecting AMHEG2BUSGEN_P' from OBENAME.&lt;/P&gt;&lt;P&gt;I changed the query to:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SUM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;( {1&amp;lt;&lt;B&gt;Rowid&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(#=MAX(Rowid))&lt;/I&gt;&lt;/B&gt;},&lt;B&gt;OBENAME&lt;/B&gt;={'AMHEG2BUSGEN_P'}&amp;gt; } &lt;B&gt;VALUE&lt;/B&gt;). &lt;P&gt;It did to help. Some how it has to be a associated with &lt;STRONG&gt;OBENAME.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I put the 1.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 22:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164197#M36985</guid>
      <dc:creator />
      <dc:date>2009-11-24T22:00:54Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164198#M36986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was talking about the one at the very beginning. You have it on your new expression. Is that working for you now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 22:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164198#M36986</guid>
      <dc:creator />
      <dc:date>2009-11-24T22:24:47Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164199#M36987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I get "No data to display". Maybe it is the max expression that is the problem. I what the max time of the&lt;/P&gt;&lt;P&gt;&lt;B&gt;OBENAME&lt;/B&gt;. Maybe I have to use the aggr function. Do you have any idea?&lt;/P&gt;&lt;P&gt;/Kjell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 00:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164199#M36987</guid>
      <dc:creator />
      <dc:date>2009-11-25T00:31:43Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164200#M36988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use my suggestion from the first message. It is really the best thing you can do when troubleshooting Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;You should check the format of your SYSTIME and see what you are getting out of the dollar sign expansion.&lt;BR /&gt;Set up that Set Analysis expression in a table, but don't give it a label. Then when the table is rendered,&lt;BR /&gt;you should see the Set Analysis expression with the value of the dollar sign expansion evaluated.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Once you have the expression that QlikView is using (that isn't working), you will have a better idea of what the problem is.&lt;/P&gt;&lt;P&gt;I think the problem you are having is you are searching for the greatest ROWID, but not the greatest ROWID with 'AMHEG2BUSGEN_P'. Try this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM( {1&amp;lt;Rowid={$(#=MAX(Rowid{1&amp;lt;OBENAME={'AMHEG2BUSGEN_P'}&amp;gt;}))}&amp;gt;} VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That should give you the greatest ROWID for AMHEG2BUSGEN_P, then you'll sum the values where the ROWIDs match. If ROWID is unique (I assume), then you will get the value of the greatest ROWID for 'AMHEG2BUSGEN_P'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 01:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164200#M36988</guid>
      <dc:creator />
      <dc:date>2009-11-25T01:20:51Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164201#M36989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Hello&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Sorry I am new in qlikview. What do you mean with a table?&lt;/P&gt;&lt;UL style="margin-top:0cm;"&gt;&lt;LI style="margin:0cm 0cm 0pt;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;DB table?&lt;/LI&gt;&lt;LI style="margin:0cm 0cm 0pt;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;QV table?&lt;/LI&gt;&lt;LI style="margin:0cm 0cm 0pt;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;Table box?&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Do you have a simple example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 19:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164201#M36989</guid>
      <dc:creator />
      <dc:date>2009-11-25T19:49:43Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164202#M36990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I meant a Straight Table Chart or a Pivot Table Chart. I've attached a little sample file. In the file, the second expressions is:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;FK = {$(=Max(FK))}&amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;On the table, I have not given this expression a label, so the label is the expression with the dollar sign expansion evaluated. In this case:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;FK = {7}&amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here, it doesn't seem that useful, but if you have a date or a more complex expression, it can be very helpful.&lt;/P&gt;&lt;P&gt;Another thing to try is to remove the Max from your expression. Instead, hard code the Max ROWID from your data set. Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM({1&amp;lt;Rowid={10124},OBENAME={'AMHEG2BUSGEN_P'}&amp;gt; } VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Once you have the Set Analysis working with hardcoded values, then go back and work on getting that hard coded value from an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 22:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164202#M36990</guid>
      <dc:creator />
      <dc:date>2009-11-25T22:52:03Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164203#M36991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for the example&lt;/P&gt;&lt;P&gt;It seems to be a problem with the time format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SUM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives the follwing result:&lt;/P&gt;( {1&amp;lt;&lt;B&gt;Systime&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(#=MAX(Systime))&lt;/I&gt;&lt;/B&gt;},&lt;B&gt;NAME&lt;/B&gt;={'SAIP400BAY5ACPOWER'}&amp;gt; } &lt;B&gt;VALUE&lt;/B&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:269pt;border-collapse:collapse;" width="358"&gt;&lt;COLGROUP&gt;&lt;COL style="width:269pt;mso-width-source:userset;mso-width-alt:13092;mso-outline-parent:collapsed;" width="358" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl22" height="17" style="width:269pt;height:12.75pt;background-color:white;border:gainsboro 0.5pt solid;" width="358"&gt;SUM( {$&amp;lt;SYSTIME={40141.567696759}&amp;gt; } VALUE)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro 0.5pt solid;border-bottom:gainsboro 0.5pt solid;height:12.75pt;background-color:white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:269pt;border-collapse:collapse;" width="358"&gt;&lt;COLGROUP&gt;&lt;COL style="width:269pt;mso-width-source:userset;mso-width-alt:13092;mso-outline-parent:collapsed;" width="358" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="width:269pt;height:12.75pt;background-color:white;border:gainsboro 0.5pt solid;" width="358"&gt;timestamp(40141.567696759)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Gives&lt;/P&gt;&lt;P&gt;2009-11-24 13:37:29&lt;/P&gt;&lt;P&gt;How can I use the timestamp function in the expression&lt;/P&gt;&lt;P&gt;SUM( {1&amp;lt;&lt;B&gt;Systime&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(#=MAX(Systime))&lt;/I&gt;&lt;/B&gt;},&lt;B&gt;NAME&lt;/B&gt;={'SAIP400BAY5ACPOWER'}&amp;gt; } &lt;B&gt;VALUE&lt;/B&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 04:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164203#M36991</guid>
      <dc:creator />
      <dc:date>2009-12-01T04:31:10Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164204#M36992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for the example&lt;/P&gt;&lt;P&gt;It seems to be a problem with the time format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SUM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives the follwing result:&lt;/P&gt;( {1&amp;lt;&lt;B&gt;Systime&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(#=MAX(Systime))&lt;/I&gt;&lt;/B&gt;},&lt;B&gt;NAME&lt;/B&gt;={'SAIP400BAY5ACPOWER'}&amp;gt; } &lt;B&gt;VALUE&lt;/B&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:269pt;border-collapse:collapse;" width="358"&gt;&lt;COLGROUP&gt;&lt;COL style="width:269pt;mso-width-source:userset;mso-width-alt:13092;mso-outline-parent:collapsed;" width="358" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl22" height="17" style="width:269pt;height:12.75pt;background-color:white;border:gainsboro 0.5pt solid;" width="358"&gt;SUM( {$&amp;lt;SYSTIME={40141.567696759}&amp;gt; } VALUE)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD align="right" class="xl22" height="17" style="border-right:gainsboro 0.5pt solid;border-top:gainsboro;border-left:gainsboro 0.5pt solid;border-bottom:gainsboro 0.5pt solid;height:12.75pt;background-color:white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:269pt;border-collapse:collapse;" width="358"&gt;&lt;COLGROUP&gt;&lt;COL style="width:269pt;mso-width-source:userset;mso-width-alt:13092;mso-outline-parent:collapsed;" width="358" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="width:269pt;height:12.75pt;background-color:white;border:gainsboro 0.5pt solid;" width="358"&gt;timestamp(40141.567696759)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Gives&lt;/P&gt;&lt;P&gt;2009-11-24 13:37:29&lt;/P&gt;&lt;P&gt;How can I use the timestamp function in the expression&lt;/P&gt;&lt;P&gt;SUM( {1&amp;lt;&lt;B&gt;Systime&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(#=MAX(Systime))&lt;/I&gt;&lt;/B&gt;},&lt;B&gt;NAME&lt;/B&gt;={'SAIP400BAY5ACPOWER'}&amp;gt; } &lt;B&gt;VALUE&lt;/B&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 04:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164204#M36992</guid>
      <dc:creator />
      <dc:date>2009-12-01T04:31:11Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164205#M36993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put the timestamp function right into your dollar sign expansion.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM( {1&amp;lt;Systime={$(#=timestamp(MAX(Systime)))},NAME={'SAIP400BAY5ACPOWER'}&amp;gt; } VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You'll probably need to look at the evaluated dollar sign expansion again to make sure it's coming out in the format you want in the end.&lt;/P&gt;&lt;P&gt;EDIT: I think you need to get rid of the pound symbol in your equation though. It may even work without the timestamp or the pound sign. The pound sign forces the answer to be a number and you don't want it to be a number.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM( {1&amp;lt;Systime={"$(=timestamp(MAX(Systime)))"},NAME={'SAIP400BAY5ACPOWER'}&amp;gt; } VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;OR &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUM( {1&amp;lt;Systime={"$(=MAX(Systime))"},NAME={'SAIP400BAY5ACPOWER'}&amp;gt; } VALUE)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 05:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164205#M36993</guid>
      <dc:creator />
      <dc:date>2009-12-01T05:42:48Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164206#M36994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;It works better now but my final problem with this expression is that&lt;/P&gt;&lt;P&gt;I get max(SYSTIME) for the object that has max(SYSTIME) not the individual object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="white" border="1" cellpadding="0" cellspacing="0" style="font-size:9pt;"&gt;&lt;TBODY&gt;&lt;TR align="left"&gt;&lt;TH&gt;&lt;B&gt;MAX(SYSTIME)&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR align="right"&gt;&lt;TD bgcolor="#F5F5F5"&gt;&lt;B&gt;2009-11-24 13:37:29&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="right"&gt;&lt;TD bgcolor="white"&gt;2009-11-24 13:37:29&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="white" border="1" cellpadding="0" cellspacing="0" style="font-size:9pt;"&gt;&lt;TBODY&gt;&lt;TR align="left"&gt;&lt;TH&gt;&lt;P&gt;SUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( {1&amp;lt;SYSTIME={&lt;I&gt;$(=MAX(SYSTIME))&lt;/I&gt;},NAME={'AM01400BAY6ACPOWER'}&amp;gt; } VALUE)&lt;/P&gt;&lt;P&gt;SUM( {1&amp;lt;SYSTIME={2009-11-24 13:37:29},NAME={'AM01400BAY6ACPOWER'}&amp;gt; } VALUE)&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR align="left"&gt;&lt;TD bgcolor="#F5F5F5"&gt;The max for AM01400BAY6ACPOWER is &lt;TABLE bgcolor="white" border="1" cellpadding="0" cellspacing="0" style="font-size:9pt;"&gt;&lt;TBODY&gt;&lt;TR align="right"&gt;&lt;TD bgcolor="white"&gt;2009-11-24 13:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;How do I get the max for 'AM01400BAY6ACPOWER'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 16:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164206#M36994</guid>
      <dc:creator />
      <dc:date>2009-12-01T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Retrieve one object at a specific time using Set Analyze</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164207#M36995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 16:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-one-object-at-a-specific-time-using-Set-Analyze/m-p/164207#M36995</guid>
      <dc:creator />
      <dc:date>2009-12-01T16:22:13Z</dc:date>
    </item>
  </channel>
</rss>

