<?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 Where Exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270720#M1192939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve with your suggestion I can load both the identical QVDs History &amp;amp; Present.&lt;/P&gt;&lt;P&gt;But I have a Product qvd. First a left join has to be performed on History and Product QVDs&lt;/P&gt;&lt;P&gt;to get the product details with the History and then I also have to do a left join on Present&lt;/P&gt;&lt;P&gt;and Product QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how do i do that with running into synthetic keys.&lt;/P&gt;&lt;P&gt;If I can achieve the above then I can perform the Where Exists clause that you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 22:32:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-07T22:32:22Z</dc:date>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270714#M1192933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have something to learn from you all.&lt;/P&gt;&lt;P&gt;I have two qvds and- History &amp;amp; Present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In History we store the monthly snapshots and Present holds the current details.&lt;/P&gt;&lt;P&gt;For the Product details we need to Join them with Product qvd.&lt;/P&gt;&lt;P&gt;Now the requirement is to find the number of missing products from History to&lt;/P&gt;&lt;P&gt;Present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many items which were in pending stage, and the related(corresponding) product&lt;/P&gt;&lt;P&gt;numbers were stored in History qvd but with due course of time, those products got&lt;/P&gt;&lt;P&gt;cancelled and hence later on the Present qvd we don't have those details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO, now my task is to find how many of those products are missing.&lt;/P&gt;&lt;P&gt;I guess we need to use WHERE Exists, can someone suggest me what should I do next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 17:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270714#M1192933</guid>
      <dc:creator />
      <dc:date>2011-06-07T17:12:35Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270715#M1192934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I follow your description correctly, you want to load the records from History where the products are missing so that you can re-instate them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp_ProductID:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Product.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;History:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM History.qvd (qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE NOT EXISTS (ProductID);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP TABLE Temp_ProductID;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then interrogate the loaded rows to try and work out what is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have misread your requirements then please post back with more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 21:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270715#M1192934</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-07T21:39:38Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270716#M1192935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;Thank you so much for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell how does it find the missing products, as because neither my History nor Present QVD has the field "Product ID". Its there in Product QVD. Product QVD has 11 fields and History &amp;amp; Present has the same 86 fields.&lt;/P&gt;&lt;P&gt;Part ID, which is different from Product ID is common in these three QVDs.&lt;/P&gt;&lt;P&gt;How do I join them first. Only then I guess I would be able to follow your steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 21:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270716#M1192935</guid>
      <dc:creator />
      <dc:date>2011-06-07T21:47:24Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270717#M1192936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I missed the issue slightly.&amp;nbsp; It will be simpler to load all three QVDs (the two identical ones should concatenate) and then insert a List Box with the Part ID in it. From here enter the following search expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum(if(isnull([Product ID]), 1, 0)) &amp;gt; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to ensure you delete the ** wildcard characters that appear by default on the search criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should then select only rows where there is no Product ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively I think that if you use the WHERE EXISTS syntax from above, but replace ProductID with [Part ID] it shold only load the rows with issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/"&gt;Steve&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 22:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270717#M1192936</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-07T22:01:29Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270718#M1192937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve can you tell me how to write the code to concatenate. &lt;/P&gt;&lt;P&gt;Because both the identical QVDs has exactly the same field names.&lt;/P&gt;&lt;P&gt;will there be issues of synthetic key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 22:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270718#M1192937</guid>
      <dc:creator />
      <dc:date>2011-06-07T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270719#M1192938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you load &lt;STRONG&gt;exactly&lt;/STRONG&gt; the same columns from both QVD's they will automatically concatenate.&amp;nbsp; It is always a good idea to do a Limited Load with just a few rows (found under Debug in the script editor) as QlikView can hang if you load two tables with &lt;STRONG&gt;almost&lt;/STRONG&gt; the same columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also force a concatenate by placing a &lt;STRONG&gt;CONCATENATE &lt;/STRONG&gt;statement between the two loads.&amp;nbsp; If the columns are not exactly the same though a non-optimized QVD load will be performed.&amp;nbsp; This will be much slower.&amp;nbsp; Search the community for more info on optimized / non-optimized loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 22:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270719#M1192938</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-07T22:26:51Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270720#M1192939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve with your suggestion I can load both the identical QVDs History &amp;amp; Present.&lt;/P&gt;&lt;P&gt;But I have a Product qvd. First a left join has to be performed on History and Product QVDs&lt;/P&gt;&lt;P&gt;to get the product details with the History and then I also have to do a left join on Present&lt;/P&gt;&lt;P&gt;and Product QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how do i do that with running into synthetic keys.&lt;/P&gt;&lt;P&gt;If I can achieve the above then I can perform the Where Exists clause that you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 22:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270720#M1192939</guid>
      <dc:creator />
      <dc:date>2011-06-07T22:32:22Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270721#M1192940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Surely if both Present and History have loaded into a single table, and the only common key between those and the Product table is the [Part ID] then there would be no issue with synthetic keys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you perhaps do a Limited Load of 100 rows or so and then post up a screenshot of the resulting table structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 22:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270721#M1192940</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-07T22:38:01Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270722#M1192941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay Steve I am working on it. I will post that once I can achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a nice time,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 22:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270722#M1192941</guid>
      <dc:creator />
      <dc:date>2011-06-07T22:39:37Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270723#M1192942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi! try something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;A &amp;amp; '-' &amp;amp; B AS AB,&lt;/P&gt;&lt;P&gt;A,&lt;/P&gt;&lt;P&gt;B,&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;from TABLE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;WHERE EXISTS(AB);&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;A &amp;amp; '-' &amp;amp; B AS AB,&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;from TABLE2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made this ... has someone found another solution?&lt;/P&gt;&lt;P&gt;probably have! because in this way i load 2 times the same table to get result.. so ... anybody????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bikashdebnath ... I sincerely hope have helped you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Mussi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 13:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270723#M1192942</guid>
      <dc:creator />
      <dc:date>2011-08-26T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270724#M1192943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Instead of where exists what I did was a left join.&lt;/P&gt;&lt;P&gt;Which gave me an instant solution to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot everyone.&lt;/P&gt;&lt;P&gt;With best regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 17:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270724#M1192943</guid>
      <dc:creator />
      <dc:date>2011-08-26T17:27:59Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270725#M1192944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii..&lt;/P&gt;&lt;P&gt;hw can i use Where clause in my script....plz give an detail example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 12:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270725#M1192944</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-08-29T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270726#M1192945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached a simple example for you.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Please feel free if you have any further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 18:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270726#M1192945</guid>
      <dc:creator />
      <dc:date>2011-08-29T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270727#M1192946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi...sir&lt;/P&gt;&lt;P&gt;thaanx for helping me ..i git ur attachment ..is helps me a lot.&lt;/P&gt;&lt;P&gt;now i understood hw to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 06:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270727#M1192946</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-08-30T06:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270728#M1192947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's great your question has been answered...I have created a white paper on this topic and hopefully it will help broaden individual's knowledge on the topic. There are multiple ways to limit the data load which are included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ever have the issue of loading in data which does not really need to exist in your data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you like to maybe load in new order details which aren’t linked to a previous order ID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you like to load in transactional data based on the data that already exists within your data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions exist in the QlikView script which allows the user to force only certain values to be brought in/or left out. This powerful feature can support in controlling the amount of data your qvw is holding – helping in fine tuning the performance of your dashboard and productionising your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 10:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists/m-p/270728#M1192947</guid>
      <dc:creator />
      <dc:date>2017-07-10T10:14:17Z</dc:date>
    </item>
  </channel>
</rss>

