<?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: Resident statement + Group by in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783234#M665820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to aggregate the text field? Perhaps Maxstring, Minstring or Concat might be appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to retain all values a second load of jobnr, and your text field might be the way to go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 10:12:02 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2014-12-05T10:12:02Z</dc:date>
    <item>
      <title>Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783231#M665817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following resident statement:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;jobnr, &lt;/P&gt;&lt;P&gt;max(txtnr) as txtnrMax &lt;/P&gt;&lt;P&gt;resident Notiz GROUP BY jobnr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add another field let#s call it "x" which contains text. Since with the group by function the fields need a max, min eg, I do not know how to include my field that contains text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody know a solution to this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783231#M665817</guid>
      <dc:creator />
      <dc:date>2014-12-05T10:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783232#M665818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;jobnr,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Only(x) as x // Aggregation function will display null if there are more than one value&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;max(txtnr) as txtnrMax&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident Notiz GROUP BY jobnr;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;jobnr,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;x,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;max(txtnr) as txtnrMax&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident Notiz GROUP BY jobnr, x;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783232#M665818</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-05T10:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783233#M665819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan, you can add this field to the group by sentence:&lt;/P&gt;&lt;P&gt;GROUP BY jobnr, xField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you don't want to use in the group by, there are another agregation funtions for text like Concat(), MaxString() or MinString():&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;jobnr, &lt;/P&gt;&lt;P&gt;max(txtnr) as txtnrMax &lt;/P&gt;&lt;P&gt;MaxString(xField) as xField&lt;/P&gt;&lt;P&gt;resident Notiz GROUP BY jobnr;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783233#M665819</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-12-05T10:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783234#M665820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to aggregate the text field? Perhaps Maxstring, Minstring or Concat might be appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to retain all values a second load of jobnr, and your text field might be the way to go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783234#M665820</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-12-05T10:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783235#M665821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;txtnr is integer field, then use Firstsortedvalue()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;jobnr,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;max(txtnr) as txtnrMax,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FirstSortedValue(X,-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;txtnr) As X, //This retrieves X for max(txtnr) for each &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;jobnr. &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident Notiz GROUP BY jobnr;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783235#M665821</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T10:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783236#M665822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can simply add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;jobnr, &lt;STRONG&gt;x,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;max(txtnr) as txtnrMax &lt;/P&gt;&lt;P&gt;resident Notiz GROUP BY jobnr, &lt;STRONG&gt;x&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works very well if you want to add more field do the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783236#M665822</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-05T10:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783237#M665823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Plan is to read out the latest entries of my testfiled for every jobnr. there cane be multiple entries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783237#M665823</guid>
      <dc:creator />
      <dc:date>2014-12-05T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783238#M665824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, I'd use something similar to the suggestion by anbu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(X, -Date) for example would get the value of X for the largest value of Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783238#M665824</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-12-05T10:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Resident statement + Group by</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783239#M665825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant! This Solution is perfect for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-statement-Group-by/m-p/783239#M665825</guid>
      <dc:creator />
      <dc:date>2014-12-05T10:52:36Z</dc:date>
    </item>
  </channel>
</rss>

