<?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: Loading a String field while using Group by clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-a-String-field-while-using-Group-by-clause/m-p/1700732#M725574</link>
    <description>&lt;P&gt;I got it done by taking a resident load on the cross table by ordering the Time field in desc order and then taking another resident load using group by clause and firstValue() on Teams. I don't need the Time value in the final table, just the team name which has the max time which i get as the first value on my final load since i have ordered my prior resident load with Time field ordered desc.&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 14:49:21 GMT</pubDate>
    <dc:creator>pranaview</dc:creator>
    <dc:date>2020-05-11T14:49:21Z</dc:date>
    <item>
      <title>Loading a String field while using Group by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-String-field-while-using-Group-by-clause/m-p/1700489#M725573</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt; I need to identify the team which has taken the most time to perform its task for a request. Now I have multiple teams working on a request and i am calculating the Lead time for each a&lt;SPAN&gt;nd my table looks like something this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranaview_0-1589122051757.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33293i2E9CDDA8CF2E1596/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pranaview_0-1589122051757.png" alt="pranaview_0-1589122051757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;where A,B,C and D columns represent team names and the values in them time. I am using CrossTable() function to get the teams as a value in a field and their subsequent times in another as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranaview_1-1589122163852.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33294i5A190148AEB5E191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pranaview_1-1589122163852.png" alt="pranaview_1-1589122163852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now what I am finally looking for is to get one record per request from the above table which gives me the team with the max time, something like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pranaview_2-1589122250033.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33295i24F6375ABD3F7447/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pranaview_2-1589122250033.png" alt="pranaview_2-1589122250033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know i have to use the Group by clause here with Max(Time) but i can't get the Team field in the Resident load with group by clause.&lt;/P&gt;&lt;P&gt;Is there any workaround for this or any other solution that i can implement to get the Team the with the max time for each request.&lt;/P&gt;&lt;P&gt;I hope i have made the problem fairly clear so any help or suggestions will be very much appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-String-field-while-using-Group-by-clause/m-p/1700489#M725573</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2024-11-16T18:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a String field while using Group by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-String-field-while-using-Group-by-clause/m-p/1700732#M725574</link>
      <description>&lt;P&gt;I got it done by taking a resident load on the cross table by ordering the Time field in desc order and then taking another resident load using group by clause and firstValue() on Teams. I don't need the Time value in the final table, just the team name which has the max time which i get as the first value on my final load since i have ordered my prior resident load with Time field ordered desc.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-String-field-while-using-Group-by-clause/m-p/1700732#M725574</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2020-05-11T14:49:21Z</dc:date>
    </item>
  </channel>
</rss>

