<?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: how to generate missing records in a join in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/how-to-generate-missing-records-in-a-join/m-p/1561628#M40900</link>
    <description>&lt;P&gt;I figured out the solution to my problem.&lt;/P&gt;&lt;PRE&gt;//need ChangeID name to be distinct&lt;BR /&gt;Tickets:
Load * Inline [
TicketID, ChangeID on Tickets
1, 10
2, 20
3,
4, 40
5,
6, 60
7, 60
8, 80
9, 90
]
;
&lt;BR /&gt;//need ChangeID name to be distinct
Change_Impacted_Locations:
Load * Inline [
ChangeID on Impacted Locations, Location
10, a
40, b
40, c
60, d
60, e
90, a
]
;

//will autoconcatenate to the Change_Impacted_Locations table
Load
	"ChangeID on Tickets" as "ChangeID on Impacted Locations"
	,'dummy' as Location
Resident
	Tickets
Where
	Not Exists("ChangeID on Impacted Locations", "ChangeID on Tickets")
;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Mar 2019 22:08:24 GMT</pubDate>
    <dc:creator>skyline01</dc:creator>
    <dc:date>2019-03-26T22:08:24Z</dc:date>
    <item>
      <title>how to generate missing records in a join</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-generate-missing-records-in-a-join/m-p/1559569#M40750</link>
      <description>&lt;P&gt;I have table Tickets like:&lt;/P&gt;&lt;PRE&gt;Tickets:
Load * Inline [
TicketID, ChangeID
1, 10
2, 20
3,
4, 40
5,
6, 60&lt;BR /&gt;7, 60&lt;BR /&gt;8, 80&lt;BR /&gt;9, 90
]&lt;BR /&gt;;&lt;/PRE&gt;&lt;P&gt;Not all tickets have an associated change.&amp;nbsp; Every ticket will have at most 1 associated change.&amp;nbsp; A given change can be associated with 1+ tickets.&lt;/P&gt;&lt;P&gt;I have table Change_Impacted_Locations, like:&lt;/P&gt;&lt;PRE&gt;Change_Impacted_Locations:
Load * Inline [
ChangeID, Location
10, a
40, b&lt;BR /&gt;40, c&lt;BR /&gt;60, d&lt;BR /&gt;60, e&lt;BR /&gt;90, a
]
;&lt;/PRE&gt;&lt;P&gt;Not every change will have a location impacted record.&amp;nbsp; A change can impact 1+ locations.&amp;nbsp; Naturally, a location can be associated with 1+ locations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to append a dummy record to my&amp;nbsp;Change_Impacted_Locations table for all distinct ChangeIDs (where populated) on the&amp;nbsp;Tickets&amp;nbsp; table.&amp;nbsp; So, I need to generate something like:&lt;/P&gt;&lt;PRE&gt;Missing_Locations:
Load * Inline [
ChangeID, Location&lt;BR /&gt;20, dummy&lt;BR /&gt;80, dummy
]
;&lt;/PRE&gt;&lt;P&gt;And, I need these records concatenated into my&amp;nbsp;Change_Impacted_Locations table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 13:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-generate-missing-records-in-a-join/m-p/1559569#M40750</guid>
      <dc:creator>skyline01</dc:creator>
      <dc:date>2019-03-21T13:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate missing records in a join</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-generate-missing-records-in-a-join/m-p/1561628#M40900</link>
      <description>&lt;P&gt;I figured out the solution to my problem.&lt;/P&gt;&lt;PRE&gt;//need ChangeID name to be distinct&lt;BR /&gt;Tickets:
Load * Inline [
TicketID, ChangeID on Tickets
1, 10
2, 20
3,
4, 40
5,
6, 60
7, 60
8, 80
9, 90
]
;
&lt;BR /&gt;//need ChangeID name to be distinct
Change_Impacted_Locations:
Load * Inline [
ChangeID on Impacted Locations, Location
10, a
40, b
40, c
60, d
60, e
90, a
]
;

//will autoconcatenate to the Change_Impacted_Locations table
Load
	"ChangeID on Tickets" as "ChangeID on Impacted Locations"
	,'dummy' as Location
Resident
	Tickets
Where
	Not Exists("ChangeID on Impacted Locations", "ChangeID on Tickets")
;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Mar 2019 22:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-generate-missing-records-in-a-join/m-p/1561628#M40900</guid>
      <dc:creator>skyline01</dc:creator>
      <dc:date>2019-03-26T22:08:24Z</dc:date>
    </item>
  </channel>
</rss>

