<?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 Basic data comparison question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175444#M43881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;I've been trying to do this for a couple of days and just not been able to...&lt;/P&gt;&lt;P&gt;Its a pretty basic job: I have two tables, one with raw sales data (call it RawSales), one with processed sales data ( ExcelSales). Some sales are legitimately excluded in the final data set. I want to check that all sales records from RawSales are present in the FinalSales table, apart from any exclusions. If any are missing, I want to show those records in a table to the user.&lt;/P&gt;&lt;P&gt;Each record has a unique id which i can use to join/compare on, and I have made sure that all no other fields have the same name in the joining tables.&lt;/P&gt;&lt;P&gt;The method I am using is:&lt;/P&gt;&lt;P&gt;JointTable:&lt;/P&gt;&lt;P&gt;Load [column list], RawTransactionID as TransactionID resident RawSales; left join load [column list], ExcelTransactionID as TransactionID resident ExcelSales;&lt;/P&gt;&lt;P&gt;Then I create another resident table, where:&lt;/P&gt;&lt;P&gt;IssueSales:&lt;/P&gt;&lt;P&gt;load [columnlist] resident JointTable where isnull(ExcelProductCode) =1 and JointProductCode &amp;lt;&amp;gt; 'Excluded';&lt;/P&gt;&lt;P&gt;I am assuming that joining behaviour is similar to SQL Server. However this does not give me any records in the IssueSales table, even though I know that there are missing records in ExcelSales.&lt;/P&gt;&lt;P&gt;Am I doing something wrong? And is there a better way to do what I am trying to do?&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;Jay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2009 22:40:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-03T22:40:51Z</dc:date>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175444#M43881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;I've been trying to do this for a couple of days and just not been able to...&lt;/P&gt;&lt;P&gt;Its a pretty basic job: I have two tables, one with raw sales data (call it RawSales), one with processed sales data ( ExcelSales). Some sales are legitimately excluded in the final data set. I want to check that all sales records from RawSales are present in the FinalSales table, apart from any exclusions. If any are missing, I want to show those records in a table to the user.&lt;/P&gt;&lt;P&gt;Each record has a unique id which i can use to join/compare on, and I have made sure that all no other fields have the same name in the joining tables.&lt;/P&gt;&lt;P&gt;The method I am using is:&lt;/P&gt;&lt;P&gt;JointTable:&lt;/P&gt;&lt;P&gt;Load [column list], RawTransactionID as TransactionID resident RawSales; left join load [column list], ExcelTransactionID as TransactionID resident ExcelSales;&lt;/P&gt;&lt;P&gt;Then I create another resident table, where:&lt;/P&gt;&lt;P&gt;IssueSales:&lt;/P&gt;&lt;P&gt;load [columnlist] resident JointTable where isnull(ExcelProductCode) =1 and JointProductCode &amp;lt;&amp;gt; 'Excluded';&lt;/P&gt;&lt;P&gt;I am assuming that joining behaviour is similar to SQL Server. However this does not give me any records in the IssueSales table, even though I know that there are missing records in ExcelSales.&lt;/P&gt;&lt;P&gt;Am I doing something wrong? And is there a better way to do what I am trying to do?&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;Jay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 22:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175444#M43881</guid>
      <dc:creator />
      <dc:date>2009-09-03T22:40:51Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175445#M43882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;1. Try replacing isnull() = 1 by the following:&lt;/P&gt;&lt;P&gt;len(trim(ExcelProductCode)) = 0&lt;/P&gt;&lt;P&gt;sometimes isnull() behaves funny... Besides, it's probably wrong to compare the result of the Boolean function to 1, because true= negative 1 in QlikView. It would be enough to state where isnull() and ...&lt;/P&gt;&lt;P&gt;2. For troubleshooting purposes, count rows in your JointTable before the left join and after the left join. Sometimes, depending on the nature of the data, you might get "surprising" results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 22:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175445#M43882</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-03T22:50:57Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175446#M43883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg, I'll try that.&lt;/P&gt;&lt;P&gt;Incidentally, is there a way to just run bits of a script without reloading all the data? In this case, the change is on the last table but to check if it works, I'll have to reload the previous two tables, which are pretty big.&lt;/P&gt;&lt;P&gt;I am using a reduced data set for testing but it would be handy to be able to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 23:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175446#M43883</guid>
      <dc:creator />
      <dc:date>2009-09-03T23:30:54Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175447#M43884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry it's too late for me to make a complete model to test it. But when you have a table with all the data wouldn't be simpler to just make a graph (table) to list the records where your condition is met? Why create another table in the script?&lt;/P&gt;&lt;P&gt;I mean you make a column with an expression that is 1 if the condition is met and show only those lines. You can also make a conditional formula that only shows a line if the condition is met like if (condition, 1) all the rest will be hidden.&lt;/P&gt;&lt;P&gt;Should it not work if you show the full table you would be able to catch at least one record to see what's wrong .&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 23:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175447#M43884</guid>
      <dc:creator>eiconsulting</dc:creator>
      <dc:date>2009-09-03T23:31:59Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175448#M43885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work as well Flavio, thanks. I'm just not sure if my left join is doing the job. I'll try both suggestions now and post back in an hour or so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 15:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175448#M43885</guid>
      <dc:creator />
      <dc:date>2009-09-04T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175449#M43886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;THanks - my comparing to 1 was the problem. both isnull() by itself and len(trim()) = 0 worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 17:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175449#M43886</guid>
      <dc:creator />
      <dc:date>2009-09-04T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175450#M43887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Flavio&lt;/P&gt;&lt;P&gt;My single resident table is made by joining the other two tables. How would I introduce an extra column in there?&lt;/P&gt;&lt;P&gt;I tried creating a table object and putting the data from the JointTable in there, and using the calculation condition to select for isnull(ExcelDistiName) but that didnt seem to filter the dataset correctly....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 17:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175450#M43887</guid>
      <dc:creator />
      <dc:date>2009-09-04T17:53:37Z</dc:date>
    </item>
    <item>
      <title>Basic data comparison question</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175451#M43888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry I see what you mean. Yep, that worked as well! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 18:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-data-comparison-question/m-p/175451#M43888</guid>
      <dc:creator />
      <dc:date>2009-09-04T18:21:21Z</dc:date>
    </item>
  </channel>
</rss>

