<?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: Associating Tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468817#M99502</link>
    <description>&lt;P&gt;Still using Mapping Load, but do it in this manner.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cards0:
LOAD * Inline [
card_id, card_title
1, Project 1
2, Project 2
3, Project 3];

UserAssignments:
LOAD *Inline [
card_id, user
1, User 1
2, User 2];

MapAssigments:
Mapping LOAD Distinct card_id,
1 as AssignedFlag
Resident UserAssignments;

Cards:
LOAD card_id,
card_title,
ApplyMap('MapAssigments', card_id, 0) as user_assigned_flag
Resident Cards0;

DROP Table Cards0; &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 17:08:21 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2024-07-08T17:08:21Z</dc:date>
    <item>
      <title>Associating Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468789#M99500</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I have 2 tables. A Cards table that consists of a card_id,card_title.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;card_id,card_title&lt;/P&gt;
&lt;P&gt;1,Project 1&lt;/P&gt;
&lt;P&gt;2,Project 2&lt;/P&gt;
&lt;P&gt;3,Project 3&lt;/P&gt;
&lt;P&gt;And a table that consists of User Assignments&lt;/P&gt;
&lt;P&gt;card_id,user&lt;/P&gt;
&lt;P&gt;1,User 1&lt;/P&gt;
&lt;P&gt;2,User 2&lt;/P&gt;
&lt;P&gt;I want to associate the two tables (without using a join) and create a flag to flag unassigned users. In the Above example, Project 3 would show Unassigned as the user.&lt;/P&gt;
&lt;P&gt;I'm looking for a standard best practice. I want to keep both tables in the model. I would prefer not to do a left join because I don't want to have to reload my joined tables as a new table. I attempted to use the apply map but the card_id is missing from the User assignments table so I can't see how to best accomplish that.&lt;/P&gt;
&lt;P&gt;My preference is to have a flag in the load script that I can easily use in the chards.(i.e. user_assigned_flag =1 if assigned, 0 if not).&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 15:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468789#M99500</guid>
      <dc:creator>nchamilton</dc:creator>
      <dc:date>2024-07-08T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Associating Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468817#M99502</link>
      <description>&lt;P&gt;Still using Mapping Load, but do it in this manner.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cards0:
LOAD * Inline [
card_id, card_title
1, Project 1
2, Project 2
3, Project 3];

UserAssignments:
LOAD *Inline [
card_id, user
1, User 1
2, User 2];

MapAssigments:
Mapping LOAD Distinct card_id,
1 as AssignedFlag
Resident UserAssignments;

Cards:
LOAD card_id,
card_title,
ApplyMap('MapAssigments', card_id, 0) as user_assigned_flag
Resident Cards0;

DROP Table Cards0; &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 17:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468817#M99502</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-07-08T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Associating Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468826#M99503</link>
      <description>&lt;P&gt;Perfect, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 17:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468826#M99503</guid>
      <dc:creator>nchamilton</dc:creator>
      <dc:date>2024-07-08T17:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Associating Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468838#M99505</link>
      <description>&lt;P&gt;If you can load UserAssignments first it may be simpler as&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;UserAssignments:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD *Inline [&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;card_id, user&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;1, User 1&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;2, User 2];&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Cards0:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD *,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt; -Exists(card_id) as user_assigned_flag&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Inline [&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;card_id, card_title&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;1, Project 1&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;2, Project 2&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;3, Project 3];&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 18:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468838#M99505</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2024-07-08T18:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Associating Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468840#M99506</link>
      <description>&lt;P&gt;Thanks for the reply, I'll check this out as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 18:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Associating-Tables/m-p/2468840#M99506</guid>
      <dc:creator>nchamilton</dc:creator>
      <dc:date>2024-07-08T18:20:08Z</dc:date>
    </item>
  </channel>
</rss>

