<?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 Help with Grouping in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219459#M72488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you forgot the group by in the load, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;UPPER("account") AS account,&lt;BR /&gt;MAX(creationdate) AS creationdate&lt;BR /&gt;group by&lt;BR /&gt;account;&lt;BR /&gt;SQL SELECT....&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 16:50:43 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2010-01-21T16:50:43Z</dc:date>
    <item>
      <title>Help with Grouping in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219458#M72487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;I have an SQL table which has multiple entries for accounts which equal system login dates with the dates.&lt;/P&gt;&lt;P&gt;I want to create a QVD table from this table detailing the last lagin date for each account (this is then going to be appended to the master account table which has one entry per account)&lt;/P&gt;&lt;P&gt;The code I am using (with no success) is...&lt;/P&gt;&lt;P style="font-style: italic"&gt;TempAccessLogPage01:&lt;/P&gt;&lt;P&gt;&lt;I&gt;LOAD&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;UPPER("account") AS account,&lt;/P&gt;&lt;P style="font-style: italic"&gt;MAX(creationdate) AS creationdate;&lt;/P&gt;&lt;P&gt;&lt;I&gt;SQL SELECT&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;account,&lt;/P&gt;&lt;P style="font-style: italic"&gt;creationdate&lt;/P&gt;&lt;P style="font-style: italic"&gt;FROM PublicWebData.dbo."AccessLog_tbl"&lt;/P&gt;&lt;P style="font-style: italic"&gt;GROUP BY account&lt;/P&gt;&lt;P style="font-style: italic"&gt;WHERE success = 1&lt;/P&gt;&lt;P style="font-style: italic"&gt;AND internaladdress = 0&lt;/P&gt;&lt;P style="font-style: italic"&gt;AND impersonate = 0;&lt;/P&gt;&lt;P&gt;Any help on where I am going wrong greatly appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 16:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219458#M72487</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-01-21T16:35:35Z</dc:date>
    </item>
    <item>
      <title>Help with Grouping in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219459#M72488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you forgot the group by in the load, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;UPPER("account") AS account,&lt;BR /&gt;MAX(creationdate) AS creationdate&lt;BR /&gt;group by&lt;BR /&gt;account;&lt;BR /&gt;SQL SELECT....&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 16:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219459#M72488</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-01-21T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Help with Grouping in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219460#M72489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hector&lt;/P&gt;&lt;P&gt;Wrongly thought grouping had to be done on sql side...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 17:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219460#M72489</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2010-01-21T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Help with Grouping in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219461#M72490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, it can be done in the sql side, but the sintax is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;I&gt;TempAccessLogPage01:&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;LOAD&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;account,&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;creationdate;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;SQL SELECT&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;account,&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;max(creationdate) as creationdate&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;FROM PublicWebData.dbo."AccessLog_tbl"&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;GROUP BY account&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;WHERE success = 1&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;AND internaladdress = 0&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;AND impersonate = 0&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;with this way, the SQL Server does the job of grouping instead of QV.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 17:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Grouping-in-Script/m-p/219461#M72490</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-01-21T17:10:21Z</dc:date>
    </item>
  </channel>
</rss>

