<?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: Comparing aggr timestamp to timestamp not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733809#M56033</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This expression should work:&lt;/P&gt;&lt;P&gt;=If(max(total&amp;lt;User,Activity&amp;gt; EventTime) = EventTime, 'Last attempt', 'Other')&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 15:03:42 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2020-08-06T15:03:42Z</dc:date>
    <item>
      <title>Comparing aggr timestamp to timestamp not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733760#M56026</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dimension "EventTime" which is timestamp dimension,&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for each User, Activity combination I'm able to get the last timestamp value with the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;aggr(max(num(EventTime)),Activity,User)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i try to compare it with simple if to to the EventTime dimension in-order to&amp;nbsp; create indication that that was the "last attempt" i always get wrong answer&lt;/P&gt;&lt;P&gt;my if is:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(
   aggr(max(num(EventTime)),Activity,User) = num(EventTime)
   , 'Last attempt','Other'
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gal_polak_0-1596720735561.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38640i37CD98DFA501A9EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gal_polak_0-1596720735561.png" alt="gal_polak_0-1596720735561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 21:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733760#M56026</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2021-12-21T21:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing aggr timestamp to timestamp not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733798#M56032</link>
      <description>&lt;P&gt;In regard to your screenshot it seems that you didn't need the aggr() and the query of:&lt;/P&gt;&lt;P&gt;EventTime = max(EventTime)&lt;/P&gt;&lt;P&gt;should be working. If the structure is really a bit more complex you will probably need to do the comparing within the aggr() like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(
   aggr(max(EventTime) = EventTime,Activity,User)
   , 'Last attempt','Other'
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733798#M56032</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-08-06T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing aggr timestamp to timestamp not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733809#M56033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This expression should work:&lt;/P&gt;&lt;P&gt;=If(max(total&amp;lt;User,Activity&amp;gt; EventTime) = EventTime, 'Last attempt', 'Other')&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 15:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733809#M56033</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-06T15:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing aggr timestamp to timestamp not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733810#M56034</link>
      <description>&lt;P&gt;Thank you for assiting,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the Max(EventTime) = EventTime&amp;nbsp;&lt;/P&gt;&lt;P&gt;always return true. because each row is the Max of itself. so this didn't help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code you wrote is new to me, but unfortunately didn't solve the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you any way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 15:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733810#M56034</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2020-08-06T15:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing aggr timestamp to timestamp not working</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733816#M56035</link>
      <description>&lt;P&gt;Amazing this solved it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's not to much, can you explain a little bit on this convention of total with the dimensions?&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;total&amp;lt;User,Activity&amp;gt; EventTime)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 15:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-aggr-timestamp-to-timestamp-not-working/m-p/1733816#M56035</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2020-08-06T15:11:18Z</dc:date>
    </item>
  </channel>
</rss>

