<?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: Find all the columns for the maximum time. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656492#M730270</link>
    <description>&lt;P&gt;Thats what, i only want to pick the evt for that&amp;nbsp; id where max time&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 12:57:34 GMT</pubDate>
    <dc:creator>paulista</dc:creator>
    <dc:date>2019-12-11T12:57:34Z</dc:date>
    <item>
      <title>Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656461#M730264</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 854px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25340i7AB51564C58A8D5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the data as shown above , i want to find the max timestamp related to an id and corresponding activity and evt_type.&lt;/P&gt;&lt;P&gt;so there would be just one row for a unique id and the related fields.&lt;/P&gt;&lt;P&gt;attached is the data sheet&lt;/P&gt;&lt;P&gt;Please help me the feedback . thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656461#M730264</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2024-11-16T01:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656468#M730265</link>
      <description>&lt;P&gt;create a straight table.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- ID&lt;/P&gt;&lt;P&gt;- Activity Name&lt;/P&gt;&lt;P&gt;- ECT_Type&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;max(Timestamp)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test_max.png" style="width: 785px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25341i608552979A331B1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="test_max.png" alt="test_max.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 12:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656468#M730265</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-11T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656479#M730266</link>
      <description>&lt;P&gt;id is getting repeated , so i think this does not work for me&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 12:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656479#M730266</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2019-12-11T12:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656484#M730268</link>
      <description>&lt;P&gt;thats because you have two different EVT_TYPES for that ID.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 12:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656484#M730268</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-11T12:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656485#M730269</link>
      <description>&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- ID&lt;/P&gt;&lt;P&gt;&lt;U&gt;Expression 1&lt;/U&gt;&lt;STRONG&gt; :&lt;/STRONG&gt; Activity Name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue&lt;/STRONG&gt;( [ Activity Name], -Timestamp)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Expression 2&lt;/U&gt;&lt;STRONG&gt; :&lt;/STRONG&gt; EVT Type&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue&lt;/STRONG&gt;( EVT_Type, -Timestamp)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Expression 3&lt;/U&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max&lt;/STRONG&gt;(Timestamp)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656485#M730269</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-12-11T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656492#M730270</link>
      <description>&lt;P&gt;Thats what, i only want to pick the evt for that&amp;nbsp; id where max time&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 12:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656492#M730270</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2019-12-11T12:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656693#M730271</link>
      <description>&lt;P&gt;this just gives me nothing at all in the table&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 17:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656693#M730271</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2019-12-11T17:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656706#M730272</link>
      <description>&lt;P&gt;try the below script and check the details in table box&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1:&lt;BR /&gt;LOAD ID,&lt;BR /&gt;[Activity Name],&lt;BR /&gt;EVT_TYPE,&lt;BR /&gt;(TIMESTAMP) AS TIMESTAMP,&lt;BR /&gt;ID&amp;amp;TIMESTAMP AS KEY&lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\537792\Downloads\Book2.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D2:&lt;BR /&gt;LOAD&lt;BR /&gt;FirstSortedValue(KEY,-TIMESTAMP) AS KEY,&lt;BR /&gt;'Max' as flag&lt;BR /&gt;Resident T1&lt;BR /&gt;Group BY ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;chart as straight table:&lt;/P&gt;&lt;P&gt;Dim as ID,activity name,evt type&lt;/P&gt;&lt;P&gt;exp as&amp;nbsp;max({&amp;lt;flag={'Max'}&amp;gt;}TIMESTAMP)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 18:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1656706#M730272</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2019-12-11T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657000#M730273</link>
      <description>&lt;P&gt;thanks , can you help me how to get count of distinct events at max time please&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657000#M730273</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2019-12-12T11:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657015#M730274</link>
      <description>&lt;P&gt;Choose your dimensions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Activity Name&lt;/P&gt;&lt;P&gt;- Event Type&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think you only want one. Just Try it out.&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count(distinct if(TIMESTAMP = aggr(NODISTINCT max(TIMESTAMP), ID, [Activity Name], EVT_TYPE), ID))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657015#M730274</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-12T11:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657030#M730275</link>
      <description>&lt;P&gt;count(distinct if(HDR_TIMESTAMP = aggr(NODISTINCT max(HDR_TIMESTAMP), HDR_CORR_ID), HDR_CORR_ID))&lt;/P&gt;&lt;P&gt;it gives me the correct count when i type this.&lt;/P&gt;&lt;P&gt;not when i take hdr_event_type, why would that be ?&lt;/P&gt;&lt;P&gt;also when i click on the value it changes to a value which is not a correct number .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657030#M730275</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2019-12-12T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657039#M730276</link>
      <description>&lt;P&gt;with your current statement you are calculating the max(timestamp) per ID, which is not what you wanted.&lt;/P&gt;&lt;P&gt;You wanted the max(timestamp) per ID &amp;amp; Event &amp;amp; Activity.&lt;/P&gt;&lt;P&gt;So you need to aggregate over this three dimensions:&lt;/P&gt;&lt;P&gt;count(distinct if(TIMESTAMP = aggr(NODISTINCT max(TIMESTAMP), &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ID, [Activity Name], EVT_TYPE)&lt;/STRONG&gt;&lt;/FONT&gt;, ID))&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count(distinct if(TIMESTAMP = aggr(NODISTINCT max(TIMESTAMP), ID, [Activity Name], EVT_TYPE), ID))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657039#M730276</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-12-12T12:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find all the columns for the maximum time.</title>
      <link>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657051#M730277</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="see th table in left should guve me 34 total, but if you see at distinct events , they dont add up to 34 but much more" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25423iA24ED61027C39C44/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 2.PNG" alt="see th table in left should guve me 34 total, but if you see at distinct events , they dont add up to 34 but much more" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;see th table in left should guve me 34 total, but if you see at distinct events , they dont add up to 34 but much more&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table on the left shows me a total of 34 but yif you add up the individual counts its much more , it should add upto 34&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 12:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-all-the-columns-for-the-maximum-time/m-p/1657051#M730277</guid>
      <dc:creator>paulista</dc:creator>
      <dc:date>2019-12-12T12:23:41Z</dc:date>
    </item>
  </channel>
</rss>

