<?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: Load just specific data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519033#M37198</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use a where clausule in the second table to load only the existing id in the first table&lt;BR /&gt;&lt;BR /&gt;Load ... Where EXISTS(Employee-ID);&lt;BR /&gt;&lt;BR /&gt;Ag+</description>
    <pubDate>Tue, 11 Dec 2018 08:44:06 GMT</pubDate>
    <dc:creator>albert_guito</dc:creator>
    <dc:date>2018-12-11T08:44:06Z</dc:date>
    <item>
      <title>Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519026#M37197</link>
      <description>&lt;P&gt;Hi dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question and I hope there is a simple solution again.&lt;/P&gt;&lt;P&gt;For my dashboard, I want to load 2 dimensions/tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First dimension/table: staff data (Name, Employee-ID, e-mail, department, ManagersName)&lt;BR /&gt;Second dimension/table: staff costs (Employee-ID, date, salary, payroll taxes etc.)&lt;/P&gt;&lt;P&gt;Since I do create this dashboard just for one specific manager (e.g. Adam Johnson), I am loading the first dimension&amp;nbsp;just for his employees:&lt;/P&gt;&lt;P&gt;load * where match(ManagersName, 'Adam Johnson').&amp;nbsp;&lt;BR /&gt;Until here everything is fine.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now I try to load the second dimension/table - but the problem is that I get &lt;U&gt;staff costs for the whole company,&amp;nbsp;&lt;/U&gt;but I just want staff costs to be loaded for employees of&amp;nbsp; Adam Johnson.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I am looking for a script statement which says:&lt;BR /&gt;Load * from dimension staff costs where employee-ID is a ID where Manager Name = Adam Johnson.&lt;BR /&gt;&lt;BR /&gt;Maybe I have to use LET-statement? I know&amp;nbsp; how to restrict data-load for the&amp;nbsp; "current" table, but I dont know how to make a restriction which needs to be connected to another dimension/table.&lt;BR /&gt;&lt;BR /&gt;Hope there is a easy solution for my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Have a nice day,&lt;BR /&gt;Jakob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the 2nd table doesn't contain the field "ManagersName"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519026#M37197</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-11T09:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519033#M37198</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use a where clausule in the second table to load only the existing id in the first table&lt;BR /&gt;&lt;BR /&gt;Load ... Where EXISTS(Employee-ID);&lt;BR /&gt;&lt;BR /&gt;Ag+</description>
      <pubDate>Tue, 11 Dec 2018 08:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519033#M37198</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2018-12-11T08:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519036#M37199</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am not sure if&amp;nbsp;I get your problem right, but I assume you want to load "two" tables which contain data of employee (who are working under&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Adam Johnson).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I can see, the 2nd table doesn't contain the field "ManagersName". Therefore, I would advise you to use a "left join" based on "Employee-ID"&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Table2:
load * 
From table 2;&lt;BR /&gt;
left join (Table2)&lt;BR /&gt;Load&lt;BR /&gt;Employee-ID,
ManagersName&lt;BR /&gt;from table 1;
 &lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;then you can use "load * where match(ManagersName, 'Adam Johnson'). " for table 2 as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in case you face any problem, try to use "Where WildMatch(ManagersName,'*Adam Johnson*'); "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519036#M37199</guid>
      <dc:creator>ahmed_hassan</dc:creator>
      <dc:date>2018-12-11T08:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519040#M37200</link>
      <description>&lt;P&gt;Hi Albert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your quick response!&lt;/P&gt;&lt;P&gt;I already used this solution, but since there is a fluctuation concerning the emyployees (some get recruited, some leave the department/company) I&amp;nbsp;had to update this statement everytime there was a change regarding staff.&lt;/P&gt;&lt;P&gt;I hope there is a automatically solution, where I do not need to check employee-ID every week.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But thank you for your proposal!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a nice day&lt;BR /&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519040#M37200</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-11T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519041#M37201</link>
      <description>&lt;P&gt;Try using exists(), like:&lt;/P&gt;&lt;PRE&gt;Load * From &amp;lt;staff table&amp;gt; where match(ManagersName, 'Adam Johnson') ;

Load * From &amp;lt;staff cost table&amp;gt; where &lt;STRONG&gt;exists(Employee-ID)&lt;/STRONG&gt;;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519041#M37201</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-11T08:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519047#M37202</link>
      <description>&lt;P&gt;Hi Tresesco,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your answer - it's the same problem with alberts proposal: The Employee-ID is not static but is changing every week since employees are leaving/new ones get recruitet.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Or does it get updated automatically?&lt;BR /&gt;I used a statement like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Load * From &amp;lt;staff cost table&amp;gt; where match&lt;STRONG&gt;(Employee-ID, 10060, 10070, 10080 etc. )&lt;/STRONG&gt;;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519047#M37202</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-11T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519048#M37203</link>
      <description>&lt;P&gt;Hi Ahmed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so far, I'll try now and let you know - never used wildMatch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519048#M37203</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-11T08:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519057#M37204</link>
      <description>&lt;P&gt;Hi Jakob,&lt;BR /&gt;I am not sure if I understood you right. The expression, ...Exists(Employee-ID).. is not static. With this statement, you tell qlik to load those emp ids that are already loaded in the previous load. That means, if one emp goes or comes in the staff table that is being taken care of dynamically. Try it and let know.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519057#M37204</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-12-11T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519058#M37205</link>
      <description>&lt;P&gt;ah ok I didn't know that!&lt;/P&gt;&lt;P&gt;I'll try &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519058#M37205</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-11T09:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519061#M37206</link>
      <description>&lt;P&gt;Hi Jakobjosef,&lt;/P&gt;&lt;P&gt;You don't need to declare a Match clausule.&lt;/P&gt;&lt;P&gt;When you load the first table with the "&lt;SPAN&gt;where Manager Name = Adam Johnson" only the Employee-ID related&amp;nbsp;to this Manager will be "available" for the Exists clausule. It's automatic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code is&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;has proposed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ag+&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519061#M37206</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2018-12-11T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load just specific data</title>
      <link>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519106#M37207</link>
      <description>&lt;P&gt;HA!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WORKED!&lt;/P&gt;&lt;P&gt;now I know what the Exists-Clause should be used for!&lt;/P&gt;&lt;P&gt;Thank you so much everybody &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-just-specific-data/m-p/1519106#M37207</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-12-11T09:48:44Z</dc:date>
    </item>
  </channel>
</rss>

