<?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: Concatenate table from qvd to other table and using exists function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665395#M50086</link>
    <description>&lt;P&gt;Volume of my data is about 500 million of rows.&lt;/P&gt;&lt;P&gt;Ehh, with exists I really found good thing, because I dont need this 500 million. With exists I reduce it to 40 million. But first must go table with ID_NUMBERS.&lt;/P&gt;&lt;P&gt;After is going table with values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 12:56:25 GMT</pubDate>
    <dc:creator>jasmina_karcic</dc:creator>
    <dc:date>2020-01-14T12:56:25Z</dc:date>
    <item>
      <title>Concatenate table from qvd to other table and using exists function</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665311#M50065</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I hope you can help me with this issue:&lt;/P&gt;&lt;P&gt;In data modelling I need to load table from qvd (data from 2018) and concatenate it to table which takes data from 1.1.2019 to now. But also with using exists.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;table_idnumbers:&lt;/P&gt;&lt;P&gt;load ID_NUMBER from t_numbers where ID_NUMBER&amp;gt;10;&lt;/P&gt;&lt;P&gt;2019_data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;ID_NUMBER,&lt;/P&gt;&lt;P&gt;VALUE&lt;/P&gt;&lt;P&gt;FROM value_data.qvd&lt;/P&gt;&lt;P&gt;where exists(ID_NUMBER); //because i want values just for ID_NUMBERS from table_idnumbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CONCATENATE(2019_data)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;ID_NUMBER,&lt;/P&gt;&lt;P&gt;VALUE&amp;nbsp;&lt;/P&gt;&lt;P&gt;from value_data2018.qvd&lt;/P&gt;&lt;P&gt;where exists (ID_NUMBER); //I want also to take values from 2018 just for ID_NUMBER from table_idnumbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It takes very long time...://&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to optimized this. Also I think exist function for 2018 data is not good...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jasmina&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665311#M50065</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate table from qvd to other table and using exists function</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665313#M50067</link>
      <description>&lt;P&gt;Hi Jasmina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your script is already optimized. There is no quicker filtration then Exists.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;table_idnumbers:
load DISTINCT
ID_NUMBER as Filter
from t_numbers where ID_NUMBER&amp;gt;10;

2019_data:
LOAD
DATE,
ID_NUMBER,
VALUE
FROM value_data.qvd
where exists(Filter,ID_NUMBER);

CONCATENATE(2019_data)
LOAD
DATE,
ID_NUMBER,
VALUE 
from value_data2018.qvd
where exists (Filter, ID_NUMBER);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has a slight chance of being a bit quicker but you gotta be sure your data was already aggregated, otherwise you'll suppress duplicate rows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2019_data:
LOAD
DATE,
ID_NUMBER,
VALUE
FROM value_data.qvd;

CONCATENATE(2019_data)
LOAD
DATE,
ID_NUMBER,
VALUE 
from value_data2018.qvd;

INNER JOIN(2019_data)
load DISTINCT
ID_NUMBER
from t_numbers where ID_NUMBER&amp;gt;10;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665313#M50067</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2020-01-14T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate table from qvd to other table and using exists function</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665322#M50069</link>
      <description>&lt;P&gt;Yes, it is pretty good solution.&lt;/P&gt;&lt;P&gt;Next little problem, combination exists(ID_NUMBER) and using one more condition...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;where exists(ID_NUMBER) and not exists('31.12.2018')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665322#M50069</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2020-01-14T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate table from qvd to other table and using exists function</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665393#M50085</link>
      <description>&lt;P&gt;Hi Jasmina,&lt;/P&gt;&lt;P&gt;I presume the filtered data set is small enough and a resident load would work much faster, so lets try something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2019_data_temp:
LOAD
DATE,
ID_NUMBER,
VALUE
FROM value_data.qvd;

CONCATENATE(2019_data_temp)
LOAD
DATE,
ID_NUMBER,
VALUE 
from value_data2018.qvd;

INNER JOIN(2019_data_temp)
load DISTINCT
ID_NUMBER
from t_numbers where ID_NUMBER&amp;gt;10;


2019_data:
NOCONCATENATE
LOAD * RESIDENT 2019_data_temp
WHERE DATE&amp;lt;&amp;gt;'31.12.2018'
;

DROP TABLE 2019_data_temp;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But keep in mind, that the optimal solution depends on the volume of your data.&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 12:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665393#M50085</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2020-01-14T12:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate table from qvd to other table and using exists function</title>
      <link>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665395#M50086</link>
      <description>&lt;P&gt;Volume of my data is about 500 million of rows.&lt;/P&gt;&lt;P&gt;Ehh, with exists I really found good thing, because I dont need this 500 million. With exists I reduce it to 40 million. But first must go table with ID_NUMBERS.&lt;/P&gt;&lt;P&gt;After is going table with values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 12:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Concatenate-table-from-qvd-to-other-table-and-using-exists/m-p/1665395#M50086</guid>
      <dc:creator>jasmina_karcic</dc:creator>
      <dc:date>2020-01-14T12:56:25Z</dc:date>
    </item>
  </channel>
</rss>

