<?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: Get entry for max date per user in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427989#M34170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(server_time = Max(TOTAL &amp;lt;idvisit&amp;gt; server_time), 1, 0), idvisit, event_action, server_time))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 16:34:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-07T16:34:58Z</dc:date>
    <item>
      <title>Get entry for max date per user</title>
      <link>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427988#M34169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data base with a table of users (idvisit) and a table with users' actions (event_action) and a time stamp (server_time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach seems to retrieve the latest data base entry, but I'd like to get the latest entry per user (idvisit).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I retrieve the latest action per user in a bar chart?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension:&lt;/P&gt;&lt;P&gt;event_action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;measure:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;server_time={"$(=max(server_time))"}&amp;gt;}idvisit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427988#M34169</guid>
      <dc:creator />
      <dc:date>2024-11-16T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get entry for max date per user</title>
      <link>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427989#M34170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(server_time = Max(TOTAL &amp;lt;idvisit&amp;gt; server_time), 1, 0), idvisit, event_action, server_time))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427989#M34170</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-07T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get entry for max date per user</title>
      <link>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427990#M34171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this query seems to result in the same as as simple "count(idvisit)" as a measure.&lt;/P&gt;&lt;P&gt;I think the problem is that my users trigger multiple events but I am only interested in the very last event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;UserA&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Action Table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;event_action1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;UserA&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017-11-01 14:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;event_action2&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UserA&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017-11-01 15:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;event_action1&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UserA&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017-11-01 15:30&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;event_action3&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UserA&amp;nbsp;&amp;nbsp;&amp;nbsp; 2017-11-01 16:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The result I want is only: UserA = event_action3 at &lt;SPAN style="font-size: 13.3333px;"&gt;2017-11-01 16:00&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 17:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-entry-for-max-date-per-user/m-p/1427990#M34171</guid>
      <dc:creator />
      <dc:date>2017-11-07T17:12:50Z</dc:date>
    </item>
  </channel>
</rss>

