<?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: Different column in a table point to a single ID column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2026334#M84614</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47358"&gt;@anat&lt;/a&gt; Thank you both for your solutions. But the issue that I am, facing is far more completed. These three columns AssignedTo, Supervisor, Reviewer , they come in other tables too e.g. Audits, Surveys, Tasks etc with the base table being the same i.e. tbl_users. How can I have them all coming up here? If I start to add in the the ID's from Audits, Surveys, etc synthetic keys start to come up as well. Can you please guide me?&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 19:45:33 GMT</pubDate>
    <dc:creator>mansoorsheraz</dc:creator>
    <dc:date>2023-01-16T19:45:33Z</dc:date>
    <item>
      <title>Different column in a table point to a single ID column</title>
      <link>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2019806#M84206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am, making an app where I have the userID but that is being used in another table in three other columns. How can I make the load script so that selecting an employee can let me know how many projects he is supervising and how many he is reviewing etc. Below attached is the sample data model. Any help is appreciated. (AssignedTo, Supervisor, Reviewer all have the UserID value in them)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mansoorsheraz_0-1671982086618.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96892iA0B5AFD69D2AE776/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mansoorsheraz_0-1671982086618.png" alt="mansoorsheraz_0-1671982086618.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The End Result should be that when a filter on the UserName is applied, the KPI's for Assigned, Supervised, Reviewed should have the respective value in them. &lt;BR /&gt;&lt;BR /&gt;e.g. if in the filter for Users "John" is selected&amp;nbsp; then the KPI's should display:&lt;/P&gt;
&lt;P&gt;Assigned&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supervised&amp;nbsp;&amp;nbsp;&amp;nbsp; Reviwed&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 15:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2019806#M84206</guid>
      <dc:creator>mansoorsheraz</dc:creator>
      <dc:date>2022-12-25T15:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Different column in a table point to a single ID column</title>
      <link>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2019849#M84210</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/124227"&gt;@mansoorsheraz&lt;/a&gt;&amp;nbsp; Please use the below code in the back end script first:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load * inline [&lt;BR /&gt;JobID, Jobname, Assigned to, Supervisor, Reviewer&lt;BR /&gt;1,Apply Cement,1,2,4&lt;BR /&gt;2,Plumbing works,3,2,5 &lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Temp2:&lt;BR /&gt;crosstable(UserID,Values) &lt;BR /&gt;load JobID,&lt;BR /&gt;//Jobname,&lt;BR /&gt;[Assigned to], &lt;BR /&gt;[Supervisor],&lt;BR /&gt;[Reviewer]&lt;BR /&gt;Resident Temp1;&lt;/P&gt;
&lt;P&gt;Drop table Temp1;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp3:&lt;BR /&gt;Load JobID,&lt;BR /&gt;Values as UserID,&lt;BR /&gt;UserID as JOBTitle&lt;BR /&gt;Resident Temp2;&lt;BR /&gt;Drop table Temp2;&lt;/P&gt;
&lt;P&gt;Left join (Temp3)&lt;BR /&gt;Load * inline [&lt;BR /&gt;UserID, UserName&lt;BR /&gt;1,Smith&lt;BR /&gt;2,John&lt;BR /&gt;3,Michael&lt;BR /&gt;4,Tom,&lt;BR /&gt;5,Laurel&lt;BR /&gt;6,Johnson&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;In the Front End you can use something as below for Expression:&lt;/P&gt;
&lt;P&gt;Supervised:&amp;nbsp;Count({&amp;lt;JOBTitle={'Supervisor'}&amp;gt;} UserID)&lt;/P&gt;
&lt;P&gt;Assigned:&amp;nbsp;Count({&amp;lt;JOBTitle={'Assigned to'}&amp;gt;} UserID)&lt;/P&gt;
&lt;P&gt;Reviewed:&amp;nbsp;Count({&amp;lt;JOBTitle={'Reviewer'}&amp;gt;}UserID)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sidhiq91_0-1672040530297.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96897i217799508C272C2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sidhiq91_0-1672040530297.png" alt="sidhiq91_0-1672040530297.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If this resolves your issue, please like and accept it as a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 07:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2019849#M84210</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-12-26T07:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different column in a table point to a single ID column</title>
      <link>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2019871#M84211</link>
      <description>&lt;P&gt;Temp1:&lt;BR /&gt;CrossTable(deg, depname,2) &lt;BR /&gt;Load * inline [&lt;BR /&gt;JobID, Jobname, Assigned to, Supervisor, Reviewer&lt;BR /&gt;1,Apply Cement,1,2,4&lt;BR /&gt;2,Plumbing works,3,2,5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOAD UserID as depname, UserName&lt;/P&gt;
&lt;P&gt;;&lt;BR /&gt;Load * inline [&lt;BR /&gt;UserID, UserName&lt;BR /&gt;1,Smith&lt;BR /&gt;2,John&lt;BR /&gt;3,Michael&lt;BR /&gt;4,Tom,&lt;BR /&gt;5,Laurel&lt;BR /&gt;6,Johnson&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 09:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2019871#M84211</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2022-12-26T09:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different column in a table point to a single ID column</title>
      <link>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2026334#M84614</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47358"&gt;@anat&lt;/a&gt; Thank you both for your solutions. But the issue that I am, facing is far more completed. These three columns AssignedTo, Supervisor, Reviewer , they come in other tables too e.g. Audits, Surveys, Tasks etc with the base table being the same i.e. tbl_users. How can I have them all coming up here? If I start to add in the the ID's from Audits, Surveys, etc synthetic keys start to come up as well. Can you please guide me?&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 19:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Different-column-in-a-table-point-to-a-single-ID-column/m-p/2026334#M84614</guid>
      <dc:creator>mansoorsheraz</dc:creator>
      <dc:date>2023-01-16T19:45:33Z</dc:date>
    </item>
  </channel>
</rss>

