<?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: File1 left join File A  then concatenate File2 left join FileB. but the later left join fail in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706742#M54186</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use apply map with subfield to overcome with this problem.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAP_JNL1:
MAPPING LOAD
  'LM'&amp;amp;"F27" as Jnl#,
    Journal&amp;amp;'|'&amp;amp;"Journal Batch"&amp;amp;'|'&amp;amp;F27&amp;amp;'|'&amp;amp;"Reporting Sequence" as Value
FROM [lib://Fusion/Journal listing LM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);

MAP_JNL2:
MAPPING LOAD
  'LM'&amp;amp;"F27" as Jnl#,
    Journal&amp;amp;'|'&amp;amp;"Journal Batch"&amp;amp;'|'&amp;amp;F27&amp;amp;'|'&amp;amp;"Reporting Sequence" as Value
FROM [lib://Fusion/Journal listing CM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);

[LM]:
LOAD
    'LM' as period,
    'LM'&amp;amp;SJE_LINK as Jnl#,
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',1) as Journal,
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',2) as "Journal Batch",
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',3) as    F27,
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',4) as "Reporting Sequence" ,   
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    GL_DATE,
    POSTED_DATE,
    ACCOUNTING_DATE,
    TXN_AMT,
    TXN_CURRENCY,
    FUNCTIONAL_AMOUNT,
    FUNCTIONAL_CURRENCY,
    SJE_LINK,
    LINE_TYPE_LOOKUP_CODE,
FROM [lib://Fusion/GL Transaction Extract LM.xlsm]
(ooxml, embedded labels, table is HBAP);

 Concatenate 
   

LOAD
'CM' as period,
    'CM'&amp;amp;SJE_LINK as Jnl#,
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',1) as Journal,
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',2) as "Journal Batch",
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',3) as    F27,
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',4) as "Reporting 
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    GL_DATE,
    POSTED_DATE,
    ACCOUNTING_DATE,
    TXN_AMT,
    TXN_CURRENCY,
    FUNCTIONAL_AMOUNT,
    FUNCTIONAL_CURRENCY,
    SJE_LINK,
    LINE_TYPE_LOOKUP_CODE,
FROM [lib://Fusion/GL Transaction Extract CM.xlsm]
(ooxml, embedded labels, header is 4 lines, table is Data);
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can first perform the left join with two sets of tables and then concrete the table 1 and table2&lt;/P&gt;&lt;P&gt;I hope this will help&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;</description>
    <pubDate>Sat, 30 May 2020 10:49:45 GMT</pubDate>
    <dc:creator>bhaskar_sm</dc:creator>
    <dc:date>2020-05-30T10:49:45Z</dc:date>
    <item>
      <title>File1 left join File A  then concatenate File2 left join FileB. but the later left join fail</title>
      <link>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706739#M54184</link>
      <description>&lt;P&gt;I have to concatenate 2 months' files (GL Transaction Extract LM.xlsm and GL Transaction Extract CM.xlsm)&amp;nbsp;&lt;BR /&gt;But before this step is done.&amp;nbsp; I need to map data of these 2 files with another 2 files , respectively.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;1)&amp;nbsp;GL Transaction Extract LM.xlsm&amp;nbsp; Left Join Journal Listing LM.xlsx&lt;BR /&gt;2)&amp;nbsp;Concatenate&lt;BR /&gt;3)&amp;nbsp;GL Transaction Extract CM.xlsm&amp;nbsp; Left Join Journal Listing CM.xlsx&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;After I run the data, the first pair in 1 above returns the correct mapping data&amp;nbsp;&lt;BR /&gt;But the 2nd pair in 3) above did not return any mapping data&amp;nbsp;&lt;BR /&gt;I have tried to create a separate script to test the 2nd pair&amp;nbsp; without concatenation with last month. &amp;nbsp;&lt;BR /&gt;It returns the correct mapping&amp;nbsp;&lt;BR /&gt;The problem seems to happen when I try to concatenate the 2 together&amp;nbsp;&lt;BR /&gt;May I seek some expert advice to solve the problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[LM]:
LOAD
    'LM' as period,
    'LM'&amp;amp;SJE_LINK as Jnl#,
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    GL_DATE,
    POSTED_DATE,
    ACCOUNTING_DATE,
    TXN_AMT,
    TXN_CURRENCY,
    FUNCTIONAL_AMOUNT,
    FUNCTIONAL_CURRENCY,
    SJE_LINK,
    LINE_TYPE_LOOKUP_CODE,
FROM [lib://Fusion/GL Transaction Extract LM.xlsm]
(ooxml, embedded labels, table is HBAP);


left Join ([LM])

LOAD
  'LM'&amp;amp;"F27" as Jnl#,

    Journal,
    "Journal Batch",
    F27,
    "Reporting Sequence",
FROM [lib://Fusion/Journal listing LM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);


 Concatenate 
   

LOAD
'CM' as period,
    'CM'&amp;amp;SJE_LINK as Jnl#,
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    GL_DATE,
    POSTED_DATE,
    ACCOUNTING_DATE,
    TXN_AMT,
    TXN_CURRENCY,
    FUNCTIONAL_AMOUNT,
    FUNCTIONAL_CURRENCY,
    SJE_LINK,
    LINE_TYPE_LOOKUP_CODE,
FROM [lib://Fusion/GL Transaction Extract CM.xlsm]
(ooxml, embedded labels, header is 4 lines, table is Data);

Left Join
LOAD  
  'CM'&amp;amp;"F27" as [Jnl#],

    Journal,
    "Journal Batch",
    F27,
    "Reporting Sequence",
FROM [lib://Fusion/Journal listing CM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 30 May 2020 08:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706739#M54184</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2020-05-30T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: File1 left join File A  then concatenate File2 left join FileB. but the later left join fail</title>
      <link>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706742#M54186</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use apply map with subfield to overcome with this problem.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAP_JNL1:
MAPPING LOAD
  'LM'&amp;amp;"F27" as Jnl#,
    Journal&amp;amp;'|'&amp;amp;"Journal Batch"&amp;amp;'|'&amp;amp;F27&amp;amp;'|'&amp;amp;"Reporting Sequence" as Value
FROM [lib://Fusion/Journal listing LM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);

MAP_JNL2:
MAPPING LOAD
  'LM'&amp;amp;"F27" as Jnl#,
    Journal&amp;amp;'|'&amp;amp;"Journal Batch"&amp;amp;'|'&amp;amp;F27&amp;amp;'|'&amp;amp;"Reporting Sequence" as Value
FROM [lib://Fusion/Journal listing CM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);

[LM]:
LOAD
    'LM' as period,
    'LM'&amp;amp;SJE_LINK as Jnl#,
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',1) as Journal,
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',2) as "Journal Batch",
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',3) as    F27,
subfield(Applymap('MAP_JNL1','LM'&amp;amp;SJE_LINK,'#NA'),'|',4) as "Reporting Sequence" ,   
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    GL_DATE,
    POSTED_DATE,
    ACCOUNTING_DATE,
    TXN_AMT,
    TXN_CURRENCY,
    FUNCTIONAL_AMOUNT,
    FUNCTIONAL_CURRENCY,
    SJE_LINK,
    LINE_TYPE_LOOKUP_CODE,
FROM [lib://Fusion/GL Transaction Extract LM.xlsm]
(ooxml, embedded labels, table is HBAP);

 Concatenate 
   

LOAD
'CM' as period,
    'CM'&amp;amp;SJE_LINK as Jnl#,
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',1) as Journal,
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',2) as "Journal Batch",
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',3) as    F27,
subfield(Applymap('MAP_JNL2','CM'&amp;amp;SJE_LINK,'#NA'),'|',4) as "Reporting 
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    GL_DATE,
    POSTED_DATE,
    ACCOUNTING_DATE,
    TXN_AMT,
    TXN_CURRENCY,
    FUNCTIONAL_AMOUNT,
    FUNCTIONAL_CURRENCY,
    SJE_LINK,
    LINE_TYPE_LOOKUP_CODE,
FROM [lib://Fusion/GL Transaction Extract CM.xlsm]
(ooxml, embedded labels, header is 4 lines, table is Data);
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can first perform the left join with two sets of tables and then concrete the table 1 and table2&lt;/P&gt;&lt;P&gt;I hope this will help&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 10:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706742#M54186</guid>
      <dc:creator>bhaskar_sm</dc:creator>
      <dc:date>2020-05-30T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: File1 left join File A  then concatenate File2 left join FileB. but the later left join fail</title>
      <link>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706750#M54187</link>
      <description>&lt;P&gt;Thank you very much for your advice.&amp;nbsp; It is very helpful&lt;/P&gt;&lt;P&gt;I have tried the applymap suggestion.&amp;nbsp; I think it will resolve my problem.&amp;nbsp; But when I run the script, I have error that Jnl# cannot be found.&lt;/P&gt;&lt;P&gt;So I am not sure where is the problem.&amp;nbsp; Hope you would not mind to advice again.&amp;nbsp; I very much appreciate your help.&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 12:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706750#M54187</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2020-05-30T12:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: File1 left join File A  then concatenate File2 left join FileB. but the later left join fail</title>
      <link>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706841#M54190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is the problem.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAP_JNL2:
MAPPING LOAD
    'CM'&amp;amp;"F27" as Jnl# // it should be CM inplace of LM  //'LM'&amp;amp;"F27" as Jnl#,
    Journal&amp;amp;'|'&amp;amp;"Journal Batch"&amp;amp;'|'&amp;amp;F27&amp;amp;'|'&amp;amp;"Reporting Sequence" as Value
FROM [lib://Fusion/Journal listing CM.xlsx]
(ooxml, embedded labels, table is [Export to Excel]);&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 31 May 2020 04:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706841#M54190</guid>
      <dc:creator>bhaskar_sm</dc:creator>
      <dc:date>2020-05-31T04:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: File1 left join File A  then concatenate File2 left join FileB. but the later left join fail</title>
      <link>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706856#M54192</link>
      <description>&lt;P&gt;Thanks a lot for your guidance.&amp;nbsp; I appreciate it a lot.&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2020 08:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/File1-left-join-File-A-then-concatenate-File2-left-join-FileB/m-p/1706856#M54192</guid>
      <dc:creator>43918084</dc:creator>
      <dc:date>2020-05-31T08:02:48Z</dc:date>
    </item>
  </channel>
</rss>

