<?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 Translate sql script into qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331803#M705206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes,would be much easy so, but the result is not good. So I have to change the formula and I'm trying to find out what I have there first and what data from each table brings that script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 09:25:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-02T09:25:47Z</dc:date>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331801#M705204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hello, can you help me pls to translate the next script into qlikview ? Tx!&amp;nbsp;&amp;nbsp; (I undelined the fields which must be returned by the first select statement&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;)&amp;nbsp; :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;BranchOfficeName&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;BranchOfficeCode&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;Position&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;SAPPartnerName&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;SAPpartnerCode&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;BusinessArea&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;CostCenter&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;RevenueType&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;VG&lt;/SPAN&gt;, &lt;SPAN style="text-decoration: underline;"&gt;Relation&lt;/SPAN&gt;, LEFT(Position, 2)&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;AS &lt;SPAN style="text-decoration: underline;"&gt;Month&lt;/SPAN&gt;, LEFT(BookingMonth, 4) AS &lt;SPAN style="text-decoration: underline;"&gt;Year&lt;/SPAN&gt;, ISNULL(SUM(AmountLocalCurrency), 0) AS &lt;SPAN style="text-decoration: underline;"&gt;Sales&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(Amount), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAclientiAccruals&lt;/STRONG&gt; AS SA&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position)) AS &lt;SPAN style="text-decoration: underline;"&gt;SalesAccruals&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;(SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(AmountLocalCurrency), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAfurnizori&lt;/STRONG&gt; AS F&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeName = BranchOfficeName) AND (C.Position = Position) AND (C.BookingMonth =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BookingMonth)) +&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(CostAllocation), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAinterface2&lt;/STRONG&gt; AS V2&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position) AND (C.BookingMonth = BookingMonth)) AS &lt;SPAN style="text-decoration: underline;"&gt;Cost&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(Amount), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAfurnizoriAccruals&lt;/STRONG&gt; AS CA&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position)) AS &lt;SPAN style="text-decoration: underline;"&gt;CostAccruals&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;ISNULL(SUM(AmountLocalCurrency), 0) + &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt; ISNULL &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;((SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(Amount), 0) AS Expr1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAclientiAccruals&lt;/STRONG&gt; AS SA&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position)), 0) -&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(AmountLocalCurrency), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAfurnizori&lt;/STRONG&gt; AS F&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeName = BranchOfficeName) AND (C.Position = Position)) -&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(CostAllocation), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAinterface2&lt;/STRONG&gt; AS V2&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position)) - &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt; ISNULL&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;((SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;SUM(Amount) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAfurnizoriAccruals&lt;/STRONG&gt; AS CA&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position)), 0) AS &lt;SPAN style="text-decoration: underline;"&gt;GP&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAclienti&lt;/STRONG&gt; AS C&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;GROUP BY BranchOfficeName, BranchOfficeCode, Position, BookingMonth, SAPPartnerName, SAPpartnerCode, BusinessArea, CostCenter, RevenueType, VG, Relation, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri;"&gt;LEFT(Position, 2), LEFT(BookingMonth, 4)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman;"&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 07:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331801#M705204</guid>
      <dc:creator />
      <dc:date>2012-04-02T07:37:51Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331802#M705205</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;&lt;/P&gt;&lt;P&gt;Can you not just put the code you already have into a view and call that instead? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 08:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331802#M705205</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-04-02T08:38:15Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331803#M705206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes,would be much easy so, but the result is not good. So I have to change the formula and I'm trying to find out what I have there first and what data from each table brings that script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 09:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331803#M705206</guid>
      <dc:creator />
      <dc:date>2012-04-02T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331804#M705207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try just adding the preceding LOAD command in front of your SQL statement ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &amp;lt;list of fields&amp;gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT &amp;lt;your sql statement&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... or if you are looking to break up the command you could rewrite using left joins such as this example ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VAclienti:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; BranchOfficeCode,&lt;/P&gt;&lt;P&gt; BranchOfficeName,&lt;/P&gt;&lt;P&gt; Position,&lt;/P&gt;&lt;P&gt; BranchOfficeCode &amp;amp; Position as SalesAccrualKey;&lt;/P&gt;&lt;P&gt;SQL SELECT BranchOfficeCode, BranchOfficeName, Position FROM &lt;STRONG&gt;dbo.VAclienti&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt; Branch &amp;amp; Position as SalesAccrualKey,&lt;/P&gt;&lt;P&gt; SalesAccruals;&lt;/P&gt;&lt;P&gt;SQL SELECT Branch, Position, ISNULL(SUM(Amount), 0) as SalesAccruals FROM &lt;STRONG&gt;&lt;STRONG&gt;dbo.VAclientiAccruals&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;group by Branch, Position;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you leave out the left join, you will get two tables linked by the SalesAccrualKey, which is another option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 09:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331804#M705207</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-04-02T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331805#M705208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to make the first sum in first select statement and it gives me an error ("OLEDB read failed").&lt;/P&gt;&lt;P&gt;I don't see why... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VAclienti:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchOfficeCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchOfficeName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Position&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchOfficeCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Position&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAccrualKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BusinessArea&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SAPpartnerCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Relation&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RevenueType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCenter&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Position&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BookingMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SAPPartnerName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Position&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BookingMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,4) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; select &lt;BR /&gt; BranchOfficeCode,&lt;BR /&gt; BranchOfficeName,&lt;BR /&gt; Position,&lt;BR /&gt; BusinessArea, &lt;BR /&gt; SAPpartnerCode, &lt;BR /&gt; VG, &lt;BR /&gt; Relation, &lt;BR /&gt; RevenueType, &lt;BR /&gt; CostCenter, &lt;BR /&gt; Position, &lt;BR /&gt; BookingMonth,&lt;BR /&gt; SAPPartnerName,&lt;BR /&gt; ISNULL(SUM(AmountLocalCurrency),0) as Sales &lt;BR /&gt; &lt;BR /&gt; FROM dbo.VAclienti&lt;BR /&gt; &lt;BR /&gt; group by BranchOfficeCode, BranchOfficeName, Position, BusinessArea, SAPpartnerCode, VG, Relation, RevenueType, CostCenter, BookingMonth, SAPPartnerName; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331805#M705208</guid>
      <dc:creator />
      <dc:date>2012-04-02T13:36:45Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331806#M705209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"("OLEDB read failed " are hard to debug.&lt;BR /&gt;Try commenting fields from LOAD and check if they work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331806#M705209</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-04-02T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331807#M705210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hey, 10x!&lt;/P&gt;&lt;P&gt; I've just realised where the problem was... I had 2 fields with the same name... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; ... &lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331807#M705210</guid>
      <dc:creator />
      <dc:date>2012-04-02T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331808#M705211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; "Position" field, isn´t it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331808#M705211</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-04-02T13:48:28Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331809#M705212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331809#M705212</guid>
      <dc:creator />
      <dc:date>2012-04-02T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331810#M705213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Now I have other question: how do I transpose the next script, where I have a sum of two select statements:&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(AmountLocalCurrency), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAfurnizori&lt;/STRONG&gt; AS F&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeName = BranchOfficeName) AND (C.Position = Position)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND (C.BookingMonth = BookingMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt; +&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(CostAllocation), 0) AS Expr1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAinterface2&lt;/STRONG&gt; AS V2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position) AND (C.BookingMonth = BookingMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;AS Cost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331810#M705213</guid>
      <dc:creator />
      <dc:date>2012-04-02T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331811#M705214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just concatenate 2 LOAD´s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YourTable:&lt;BR /&gt;LOAD Expr1;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(AmountLocalCurrency), 0) AS Expr1&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAfurnizori&lt;/STRONG&gt; AS F&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeName = BranchOfficeName) AND (C.Position = Position)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND (C.BookingMonth = BookingMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; CONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;LOAD Expr1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;SELECT&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;ISNULL(SUM(CostAllocation), 0) AS Expr1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;FROM&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;dbo.VAinterface2&lt;/STRONG&gt; AS V2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;WHERE&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;(C.BranchOfficeCode = Branch) AND (C.Position = Position) AND (C.BookingMonth = BookingMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;AS Cost&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331811#M705214</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-04-02T14:12:17Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331812#M705215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And for difference between 2 or more select statement, i'll use a join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 16:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331812#M705215</guid>
      <dc:creator />
      <dc:date>2012-04-02T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331813#M705216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olívia, Im not understanding you. Could you post a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 17:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331813#M705216</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-04-02T17:13:44Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331814#M705217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have a calculated field like next, where I have sums and differences between select statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;ISNULL(SUM(AmountLocalCurrency), 0) &lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;FROM&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;dbo.VAclienti&lt;/STRONG&gt; AS C &lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;&lt;STRONG&gt;+ &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; ISNULL &lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;((SELECT ISNULL(SUM(Amount), 0) AS Expr1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt; &lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; FROM &lt;STRONG&gt;dbo.VAclientiAccruals&lt;/STRONG&gt; AS SA&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; WHERE (C.BranchOfficeCode = Branch) AND (C.Position = Position)), 0)&lt;STRONG&gt; -&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt; &lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; (SELECT ISNULL(SUM(AmountLocalCurrency), 0) AS Expr1&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; FROM &lt;STRONG&gt;dbo.VAfurnizori&lt;/STRONG&gt; AS F&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; WHERE (C.BranchOfficeName = BranchOfficeName) AND (C.Position = Position)) &lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt; &lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; (SELECT ISNULL(SUM(CostAllocation), 0) AS Expr1&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; FROM &lt;STRONG&gt;dbo.VAinterface2&lt;/STRONG&gt; AS V2&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; WHERE (C.BranchOfficeCode = Branch) AND (C.Position = Position)) &lt;STRONG&gt;- &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; ISNULL&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;((SELECT SUM(Amount) AS Expr1&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;&amp;nbsp; FROM &lt;STRONG&gt;dbo.VAfurnizoriAccruals&lt;/STRONG&gt; AS CA&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; WHERE (C.BranchOfficeCode = Branch) AND (C.Position = Position)), 0) AS &lt;SPAN style="text-decoration: underline;"&gt;GP&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;10x again, Olivia&lt;/P&gt;&lt;P style="margin: 0pt 0pt 10pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: Calibri; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 17:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331814#M705217</guid>
      <dc:creator />
      <dc:date>2012-04-02T17:20:09Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331815#M705218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well, I´m not seeing the whole forest &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;I would do each load separated&amp;nbsp; and joining or concatenat the results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 19:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331815#M705218</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-04-02T19:23:02Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331816#M705219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it must be very difficult to translate the entire sql script into qv script in one big chunk, even for the most experienced developers. i would suggest breaking the process into smaller chunks, using a more systematic approach - create and control your own structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. identify all the tables used in the sql script&lt;/P&gt;&lt;P&gt;1.a. create qvds from these tables. for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAclienti:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dbo.VAclienti&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store VAclienti into VaClienti.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop table VAclienti&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. explore the qvds, load each table separately and see what kind of data it contains. try to get a quick answer for the following points&lt;/P&gt;&lt;P&gt;- what kind of table is it? transactions, entities, coresp between bigger tables?&lt;/P&gt;&lt;P&gt;- identify key fields, unique IDs. use the sql script to make it more easy. a structure schema could prove really helpful&lt;/P&gt;&lt;P&gt;- which are dimensions and value fields (try to keep only the relevant ones - especially those found in the sql script, in your case)&lt;/P&gt;&lt;P&gt;- what is the level of detail? also known as aggregation level or granularity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. create processed tables using the aggregation from the sql script (&lt;STRONG&gt;sum(amount)&lt;/STRONG&gt; with &lt;STRONG&gt;group by&lt;/STRONG&gt; and &lt;STRONG&gt;where&lt;/STRONG&gt; statement). store these tables into new qvds. however! qlikview can manage data even if it's not pre-aggregated; so think twice before, this step might be irrelevant for the moment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. use the sql script to figure out what is the most appropiate relationship method between the tables you have (connected using key fields? left/right/inner/outer join/keep? concatenate?) - however, i would suggest leaving them as separate tables for the begining and just keep in mind the relarionship method, this will help you figure out big errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. the last and maybe the &lt;SPAN style="text-decoration: underline;"&gt;most important&lt;/SPAN&gt; - use the qlik view interface in order to constantly check the integrity of your structure. always have a draft qvw open for testing your data and your suppositions, if done properly, this draft often becomes the incipient version of your application&lt;/P&gt;&lt;P&gt;- do the key fields connect correctly? (data should have same format, key fields should have a big subset ratio - for example each client should have a name attributed from the clients nomenclature table)&lt;/P&gt;&lt;P&gt;- always check that your tables don't grow after joining one with another (undesired &lt;STRONG&gt;one to many association &lt;/STRONG&gt;or &lt;STRONG&gt;cartesian product&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;- create simple charts (bar charts, straight tables) using one dimension and one or two simple expressions, see if the values make sense, using your business knowledge. it's a good moment for starting some basic validation - compare the result with values extracted from erp reports, company stats and so on. make selections and see how they affect the result, the selections can be afterwards translated into &lt;STRONG&gt;where clauses&lt;/STRONG&gt; into your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 08:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331816#M705219</guid>
      <dc:creator />
      <dc:date>2012-04-05T08:52:02Z</dc:date>
    </item>
    <item>
      <title>Translate sql script into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331817#M705220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10x Cosmin! I take it step by step and I'll tell you what I succeded &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;Nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 09:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-sql-script-into-qlikview/m-p/331817#M705220</guid>
      <dc:creator />
      <dc:date>2012-04-05T09:37:16Z</dc:date>
    </item>
  </channel>
</rss>

