<?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: Need help using Group BY with data from an OLE DB connection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699883#M724738</link>
    <description>&lt;P&gt;Hello! There is only 1 ship per invoice&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 15:10:03 GMT</pubDate>
    <dc:creator>neena123</dc:creator>
    <dc:date>2020-05-07T15:10:03Z</dc:date>
    <item>
      <title>Need help using Group BY with data from an OLE DB connection</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699625#M724736</link>
      <description>&lt;P&gt;Hello! I need some help. Never worked with an OLE DB source before and I am having trouble understanding how to do a Group By. I am trying to calculate how many packages is shipped per user by hour. I am trying to group the fields Username and Date so that it is unique and I can then count how many packages were shipped by hour. I tried to pull the data in one table but it did not like that. I tried to do a join then a resident table and use Group By but it didn't like that either. Is it because the data is from two different Data sources?&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Ship Logs***************************************************************************************************************************&lt;BR /&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=True;User ID=connectship;Data Source=THM-COM-r01sm;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=BRB-TPM-SMRT01;Use Encryption for Data=False;Tag with column collation when possible=False] //************************************************************************************************************************************&lt;BR /&gt;Ship:&lt;BR /&gt;LOAD&lt;BR /&gt;Date_Time AS Date,&lt;BR /&gt;Time#(right(Date_Time,12),'HH:MM:SS') AS Time,&lt;BR /&gt;Mid(Date_Time,10,2) AS DateHour,&lt;BR /&gt;Invoice_Number AS Invoice_Number&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT "Date_Time","Invoice_Number"&lt;BR /&gt;FROM "CSW_Logs".dbo."Ship_Log";&lt;/P&gt;&lt;P&gt;//Packages****************************************************************************************************************************&lt;BR /&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=True;User ID=connectship;Data Source=THM-COM-r01sm;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID= BRB-TPM-SMRT01;Use Encryption for Data=False;Tag with column collation when possible=False] //************************************************************************************************************************************&lt;BR /&gt;LEFT JOIN&lt;BR /&gt;LOAD&lt;BR /&gt;reference_1 as Invoice_Number,&lt;BR /&gt;reference_10 as Username,&lt;BR /&gt;reference_2 as Client,&lt;BR /&gt;user as Facility;&lt;BR /&gt;SQL SELECT "reference_1","reference_10","reference_2","user"&lt;BR /&gt;FROM connectship.dbo.packages;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699625#M724736</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2024-11-16T18:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using Group BY with data from an OLE DB connection</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699633#M724737</link>
      <description>&lt;P&gt;Is there only 1 Ship per Invoice Number?&amp;nbsp; Or is there sometimes multiple Ship rows per Invoice Number?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 03:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699633#M724737</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-05-07T03:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using Group BY with data from an OLE DB connection</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699883#M724738</link>
      <description>&lt;P&gt;Hello! There is only 1 ship per invoice&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699883#M724738</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2020-05-07T15:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help using Group BY with data from an OLE DB connection</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699957#M724739</link>
      <description>&lt;P&gt;It seems to me that the left join you posted should work as the first step.&amp;nbsp; BTW, it's a good idea to specify the target table in the join like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LEFT JOIN (Ship)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then you should be able to create a new table from the Resident Ship.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ShipCount:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD count(I&lt;SPAN&gt;nvoice_Number) as ShipCount,&lt;BR /&gt;username,&lt;BR /&gt;DateHour&lt;BR /&gt;Resident Ship&lt;BR /&gt;Group by username, DateHour;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 18:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-using-Group-BY-with-data-from-an-OLE-DB-connection/m-p/1699957#M724739</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-05-07T18:24:14Z</dc:date>
    </item>
  </channel>
</rss>

