<?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: New to QV needs help with :Order by, firstvalue? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320466#M825084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I need to group by COMPANY field, to show the first value in the field. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;First value in which field? You need this in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 15:21:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-17T15:21:18Z</dc:date>
    <item>
      <title>New to QV needs help with :Order by, firstvalue?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320465#M825083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear community !&lt;BR /&gt;I have the following problem : &lt;BR /&gt;I need to group by company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD "CUSTOMER_ID",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CUSTOMER_SINCE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMPANY,&amp;nbsp;&amp;nbsp;&amp;nbsp; ( this field is the key ) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADDRESS1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADDRESS2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADDRESS3;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM ****************.dbo.COMPANYM1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table loads my company data, and is linked through the COMPANY field, to another table which gives me information about service requests from companies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to group by COMPANY field, to show the first value in the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Angel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320465#M825083</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: New to QV needs help with :Order by, firstvalue?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320466#M825084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I need to group by COMPANY field, to show the first value in the field. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;First value in which field? You need this in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320466#M825084</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-17T15:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: New to QV needs help with :Order by, firstvalue?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320467#M825085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First value in the field COMPANY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this &lt;/P&gt;&lt;P&gt;store COMPANY into COMPANY.qvd;&lt;/P&gt;&lt;P&gt;drop Table COMPANY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; COMPANY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only(COMPANY_FULL_NAME)as&amp;nbsp; COMPANY_FULL_NAME&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[COMPANY.qvd]&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;Group by COMPANY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it worked, if i need anything else i will write, thanks Sunny for the quick answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 06:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320467#M825085</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-07-18T06:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: New to QV needs help with :Order by, firstvalue?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320468#M825086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I need this in script , because there are some records, which aren't made correctly, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the first value in the field COMPANY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example we have the service request IM11000 , linked to 2 companies &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;City council-LTD&lt;/P&gt;&lt;P&gt;and City council &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its only 1 company, but when somebody from my service department, implemented it he forgot to write -lTD, so this created another company&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when i use it in reports &lt;BR /&gt;for IM11000 i get the 2 companies, i want to show only the first 1&lt;BR /&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Angel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 07:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320468#M825086</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-07-18T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: New to QV needs help with :Order by, firstvalue?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320469#M825087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i resolved the issue by trial and error, the correct script is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the table is stored into qvd we enter the following script&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&amp;nbsp; COMPANY,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstValue(COMPANY_FULL_NAME)as&amp;nbsp; COMPANY_FULL_NAME&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[COMPANY.qvd]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by COMPANY;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 07:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-QV-needs-help-with-Order-by-firstvalue/m-p/1320469#M825087</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-07-18T07:55:21Z</dc:date>
    </item>
  </channel>
</rss>

