<?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: Left Join from different connections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Left-Join-from-different-connections/m-p/1701594#M53729</link>
    <description>&lt;P&gt;please share the expressions that you are using and maybe screenshots of the results and expected results&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 14:13:39 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2020-05-13T14:13:39Z</dc:date>
    <item>
      <title>Left Join from different connections</title>
      <link>https://community.qlik.com/t5/App-Development/Left-Join-from-different-connections/m-p/1701549#M53721</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a strange(at least to me) issue with my recent application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Table 1: (From Connection 1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;[RSC_MASTER]&lt;/P&gt;&lt;P&gt;LOAD RscMaster_No_In as rscmaster_no_in,&lt;BR /&gt;RscMaster_Name_Ch,&lt;BR /&gt;RscMaster_FName_Ch,&lt;BR /&gt;RscMaster_LName_Ch,&lt;BR /&gt;RscMaster_Address1_Vc,&lt;BR /&gt;RscMaster_City_Vc,&lt;BR /&gt;RscMaster_State_Ch,&lt;BR /&gt;RscMaster_Zip_Ch,&lt;BR /&gt;RscMaster_Login_Name_Ch;&lt;/P&gt;&lt;P&gt;[Resource_Master_Tbl]:&lt;BR /&gt;SELECT "RscMaster_No_In",&lt;BR /&gt;"RscMaster_Name_Ch",&lt;BR /&gt;"RscMaster_FName_Ch",&lt;BR /&gt;"RscMaster_LName_Ch",&lt;BR /&gt;"RscMaster_Address1_Vc",&lt;BR /&gt;"RscMaster_City_Vc",&lt;BR /&gt;"RscMaster_State_Ch",&lt;BR /&gt;"RscMaster_Zip_Ch",&lt;BR /&gt;"RscMaster_Login_Name_Ch"&lt;BR /&gt;FROM Resource_Master_Tbl"&lt;BR /&gt;where RscMaster_Name_Ch is not NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have Table 2 and 3: (From Connection 2)&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ACCRUALEDIT]:&lt;BR /&gt;SELECT&lt;BR /&gt;EFFECTIVEDATE&lt;BR /&gt;,ACCRUALCODEID&lt;BR /&gt;,[AMOUNT]/3600 as AMOUNT&lt;BR /&gt;,a.PERSONID&lt;BR /&gt;,ROW_NUMBER() OVER (PARTITION BY a.personId ORDER BY effectivedate DESC) AS rn&lt;BR /&gt;,PERSONNUM&lt;BR /&gt;FROM [WFC_PD].[dbo].[ACCRUALEDIT] a left join "WFC_PD".dbo.PERSON p on a.PERSONID=p.PERSONID&lt;BR /&gt;where EFFECTIVEDATE &amp;gt;'2020-01-01'&lt;BR /&gt;and ACCRUALCODEID = 13;&lt;BR /&gt;&lt;BR /&gt;Set vlast_import=LEFFECTIVEDATE;&lt;/P&gt;&lt;P&gt;[LACCRUALEDIT]:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load PERSONNUM AS RscMaster_Login_Name_Ch,&lt;BR /&gt;ACCRUALCODEID AS LACCRUALCODEID,&lt;BR /&gt;date(EFFECTIVEDATE) AS LEFFECTIVEDATE,&lt;BR /&gt;AMOUNT AS LAMOUNT,&lt;BR /&gt;PERSONID AS LPERSONID,&lt;BR /&gt;rn AS Lrn&lt;BR /&gt;&lt;BR /&gt;Resident ACCRUALEDIT&lt;BR /&gt;WHERE rn = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically I am connectING table 3 (LACCRUALEDIT) TO table 1(Resource_Master_Tbl")&amp;nbsp; by aliasing PERSONNM in Table 3 to its matching value in RSC_Master which is RscMaster_Login_Name_Ch,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now this does seem to work well when looking at the information from table 3. Meaning employee names returns all the appropriate LAMOUNT. The issue is I can a table with this information and a calculated field. This calculated field is summing up totals from Connection 1. If I select an individual employee all the information is accurate. If I select multiple the calculated fields return all 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 13:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Left-Join-from-different-connections/m-p/1701549#M53721</guid>
      <dc:creator>JohnMcPhee</dc:creator>
      <dc:date>2020-05-13T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join from different connections</title>
      <link>https://community.qlik.com/t5/App-Development/Left-Join-from-different-connections/m-p/1701594#M53729</link>
      <description>&lt;P&gt;please share the expressions that you are using and maybe screenshots of the results and expected results&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 14:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Left-Join-from-different-connections/m-p/1701594#M53729</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-05-13T14:13:39Z</dc:date>
    </item>
  </channel>
</rss>

