<?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 need when concatenating two tables with flags in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-need-when-concatenating-two-tables-with-flags/m-p/1944865#M1219533</link>
    <description>&lt;P&gt;Hi there ,&lt;/P&gt;
&lt;P&gt;I have two tables -&lt;/P&gt;
&lt;P&gt;The first table has only 7 rows which is assigned with securorgatt as 1 coming from a file. The other table has full set of [Ward/Location] including the 7 of first table.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My requirement , want to add securorgatt as 0 to the rest of [Ward/Location] other than coming from table 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script-&lt;/P&gt;
&lt;P&gt;WardwithFlag:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;SecuredOrg AS [Ward/Location],&lt;BR /&gt;SecuredOrgAccessAttribute,&lt;BR /&gt;1 as securorgatt&lt;BR /&gt;FROM [$(vL.QVDPathAH)SensitiveClinicSectionAccessMapping.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Concatenate(WardwithFlag)&lt;BR /&gt;Load &lt;BR /&gt;[Ward/Location], &lt;BR /&gt;[Ward/Location] as SecuredOrgAccessAttribute, &lt;BR /&gt;0 as securorgatt&lt;BR /&gt;resident AH_MDS&lt;BR /&gt;WHERE NOT EXISTS([Ward/Location]);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But its not working -&lt;/P&gt;
&lt;P&gt;its coming null from the second table-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1655422500405.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81987i4D7DEB4DB655E542/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1655422500405.png" alt="ashmitp869_0-1655422500405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the Data Model has only got the first table , it didn't concatenate -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1655422567054.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81988i4C9B174CF54D166A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1655422567054.png" alt="ashmitp869_1-1655422567054.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 23:37:03 GMT</pubDate>
    <dc:creator>ashmitp869</dc:creator>
    <dc:date>2022-06-16T23:37:03Z</dc:date>
    <item>
      <title>Help need when concatenating two tables with flags</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-when-concatenating-two-tables-with-flags/m-p/1944865#M1219533</link>
      <description>&lt;P&gt;Hi there ,&lt;/P&gt;
&lt;P&gt;I have two tables -&lt;/P&gt;
&lt;P&gt;The first table has only 7 rows which is assigned with securorgatt as 1 coming from a file. The other table has full set of [Ward/Location] including the 7 of first table.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My requirement , want to add securorgatt as 0 to the rest of [Ward/Location] other than coming from table 1.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script-&lt;/P&gt;
&lt;P&gt;WardwithFlag:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;SecuredOrg AS [Ward/Location],&lt;BR /&gt;SecuredOrgAccessAttribute,&lt;BR /&gt;1 as securorgatt&lt;BR /&gt;FROM [$(vL.QVDPathAH)SensitiveClinicSectionAccessMapping.xlsx] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Concatenate(WardwithFlag)&lt;BR /&gt;Load &lt;BR /&gt;[Ward/Location], &lt;BR /&gt;[Ward/Location] as SecuredOrgAccessAttribute, &lt;BR /&gt;0 as securorgatt&lt;BR /&gt;resident AH_MDS&lt;BR /&gt;WHERE NOT EXISTS([Ward/Location]);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But its not working -&lt;/P&gt;
&lt;P&gt;its coming null from the second table-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1655422500405.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81987i4D7DEB4DB655E542/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1655422500405.png" alt="ashmitp869_0-1655422500405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the Data Model has only got the first table , it didn't concatenate -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1655422567054.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81988i4C9B174CF54D166A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1655422567054.png" alt="ashmitp869_1-1655422567054.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 23:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-when-concatenating-two-tables-with-flags/m-p/1944865#M1219533</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-06-16T23:37:03Z</dc:date>
    </item>
  </channel>
</rss>

