<?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: Get differences between two resident tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1576920#M597469</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You may use the function "Exists". Try simething like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;historical:
LOAD * INLINE [
    HistoricalId
    1
    2
    3
    4
    6
];

current:
NoConcatenate LOAD * INLINE [
    IdToCheck
    1
    2
    3
    10
];

InCurrentNotInHist:
NoConcatenate LOAD IdToCheck Resident current Where not Exists(HistoricalId, IdToCheck);

if NoOfRows('InCurrentNotInHist') &amp;gt; 0 then
	LET vCheck = 1;
ELSE
	LET vCheck = 0;
ENDIF&lt;/LI-CODE&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 12:37:14 GMT</pubDate>
    <dc:creator>jaibau1993</dc:creator>
    <dc:date>2019-05-06T12:37:14Z</dc:date>
    <item>
      <title>Get differences between two resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1576882#M597468</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to get the difference between two resident tables in order to do or not to do one action.&lt;/P&gt;&lt;P&gt;My tables are very simple:&lt;/P&gt;&lt;P&gt;[HistoricalData]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD Distinct "Id" AS "HistoricalId"&lt;/P&gt;&lt;P&gt;RESIDENT [HistoricalTable];&lt;/P&gt;&lt;P&gt;[CurrentData]:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD Distinct "Id" AS "IdToCheck"&lt;/P&gt;&lt;P&gt;RESIDENT [CurrentIdList];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to know if there are some values on [CurrentData] that doesn't exist on [HistoricalData].&lt;/P&gt;&lt;P&gt;If some Id from historical doens't exist on [CurrentData] it doens't matters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final point could be a variable with 0 if there is no differences or with 1 if there are some Ids on Current.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd tried with left joins but I'm always have a 0! (and it's not).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1576882#M597468</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2024-11-16T03:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get differences between two resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1576920#M597469</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You may use the function "Exists". Try simething like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;historical:
LOAD * INLINE [
    HistoricalId
    1
    2
    3
    4
    6
];

current:
NoConcatenate LOAD * INLINE [
    IdToCheck
    1
    2
    3
    10
];

InCurrentNotInHist:
NoConcatenate LOAD IdToCheck Resident current Where not Exists(HistoricalId, IdToCheck);

if NoOfRows('InCurrentNotInHist') &amp;gt; 0 then
	LET vCheck = 1;
ELSE
	LET vCheck = 0;
ENDIF&lt;/LI-CODE&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 12:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1576920#M597469</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-05-06T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get differences between two resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1577356#M597470</link>
      <description>&lt;P&gt;Hi Jaime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for your reply.&lt;/P&gt;&lt;P&gt;I'm trying to do like this, but i'm always getting a 0 on the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible that a join is needen before the where not exist??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 11:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1577356#M597470</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2019-05-07T11:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get differences between two resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1577363#M597471</link>
      <description>&lt;P&gt;Hi Sergio.&lt;/P&gt;&lt;P&gt;I don't think we need a join (you can execute the above code and you'll see that it works). Maybe HistoricalID and IDTocheck have differences (blank spaces or different formats) and this is why the join nor the Exists works.&lt;/P&gt;&lt;P&gt;Could you provide a sample of IDs so we can test what is actually happening?&lt;/P&gt;&lt;P&gt;Jaime,&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 11:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1577363#M597471</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-05-07T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get differences between two resident tables</title>
      <link>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1577422#M597472</link>
      <description>&lt;P&gt;My fault!&lt;/P&gt;&lt;P&gt;I'm working with different modules and I was using the worng column name.&lt;/P&gt;&lt;P&gt;Now it's working fine. I'm getting the correct value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-differences-between-two-resident-tables/m-p/1577422#M597472</guid>
      <dc:creator>sgonzalez_adaso</dc:creator>
      <dc:date>2019-05-07T13:02:02Z</dc:date>
    </item>
  </channel>
</rss>

