<?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: count the records in two tables association in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456692#M35864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;d1:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param1,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param2,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param3,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as d1_Flag&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;FROM [lib://qvd data/d1.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_a,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_b,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as d2_Flag,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Yes' as Flag&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FROM [lib://qvd data/d2.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Where Exists(ID)&lt;/EM&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_a,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_b,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as d2_Flag,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'No' as Flag&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FROM [lib://qvd data/d2.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Where NOT Exists(ID)&lt;/EM&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;// Resident Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;NoConcatenate&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Load *,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d1_Flag=1 and&amp;nbsp; ISNULL(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d2_Flag),'Only d1',&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp; &lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;if(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;Flag&lt;/EM&gt;&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;='Yes','d1 &amp;amp; d2',&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;if(&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Flag='No','d2'))) as Table_Value&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Resident &lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d1;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;drop table d1;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;to count only from d1 table &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;count(Distinct {&amp;lt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Table_Value={'&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;Only d1'&lt;/EM&gt;&lt;/EM&gt;}&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&amp;gt;}ID)&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;for in Both:&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;count(Distinct {&amp;lt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Table_Value={'&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d1 &amp;amp; d2'&lt;/EM&gt;&lt;/EM&gt;}&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&amp;gt;}ID)&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;for only d2:&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count(Distinct {&amp;lt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Table_Value={'&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;d2&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;}ID)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Thanks,&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Mukram,&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2017 18:32:30 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2017-12-29T18:32:30Z</dc:date>
    <item>
      <title>count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456689#M35861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I load into my app two tables which have one common field that joins them together - simply like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;d1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM [lib://qvd data/d1.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;d2:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_a,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_b&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;FROM [lib://qvd data/d2.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;Data in d1 contains the data with one row per each ID only, whereas d2 can have more rows with the same ID. The data from d1 and d2 is partly common, however there are some records in d1 which do not exist in d2 and the other way round. What I need is to calculate:&lt;/P&gt;&lt;P&gt;1) how many records (distinct) are in d1 and d2&lt;/P&gt;&lt;P&gt;2) how many records &lt;SPAN style="font-size: 13.3333px;"&gt;(distinct) &lt;/SPAN&gt;are in &lt;SPAN style="font-size: 13.3333px;"&gt;d1 &lt;/SPAN&gt;and not in &lt;SPAN style="font-size: 13.3333px;"&gt;d2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3)&lt;SPAN style="font-size: 13.3333px;"&gt; how many records &lt;SPAN style="font-size: 13.3333px;"&gt;(distinct) &lt;/SPAN&gt;are in &lt;SPAN style="font-size: 13.3333px;"&gt;d2 &lt;/SPAN&gt;and not in &lt;SPAN style="font-size: 13.3333px;"&gt;d1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried to add new field to each table with value = 1 &lt;EM&gt;('1' as '&lt;SPAN style="font-size: 13.3333px;"&gt; d1&lt;/SPAN&gt;_bin', '1' as 'd2_bin')&lt;/EM&gt; and I created a dimension which is based on concatenation of 1 or NULLs:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if(d1_bin = 1 and d2_bin = 1, 'd1&amp;amp;d2', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(d1_bin = 1 and IsNull(&lt;SPAN style="font-size: 13.3333px;"&gt;d2_bin &lt;/SPAN&gt;), '&lt;SPAN style="font-size: 13.3333px;"&gt;d1 &lt;/SPAN&gt;only',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;SPAN style="font-size: 13.3333px;"&gt;d2_bin &lt;/SPAN&gt;= 1 and IsNull(&lt;SPAN style="font-size: 13.3333px;"&gt;d1_bin &lt;/SPAN&gt;), '&lt;SPAN style="font-size: 13.3333px;"&gt;d2 &lt;/SPAN&gt;only')))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives the correct result I guess - looks like in the table it puts correct values according to the data. But if I want to select eg. &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;'d1 only'&lt;/EM&gt;, the selection that appears in the top bar includes &lt;EM&gt;d1=1&lt;/EM&gt;, which actually gives both '&lt;EM&gt;d1 only'&lt;/EM&gt; and '&lt;EM&gt;d1&amp;amp;d2'.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is there a way to fix it or do I miss an obvious solution for this? I've searched through the forum but couldn't really use the solutions posted..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Another thing is that I cannot count distinct values of the tables - even if I put count(distinct ID), I am getting the same value as in count(ID) - and it's in fact the result of distinct count - no idea why and no idea how to check what could be the cause...?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kasia&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 10:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456689#M35861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-29T10:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456690#M35862</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;I have some solutions in my mind to implement. &lt;/P&gt;&lt;P&gt;but can you prepare some dummy data and attach i will work on it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456690#M35862</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-12-29T17:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456691#M35863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like the attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 18:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456691#M35863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-29T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456692#M35864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;d1:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param1,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param2,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1.param3,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as d1_Flag&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;FROM [lib://qvd data/d1.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_a,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_b,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as d2_Flag,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Yes' as Flag&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FROM [lib://qvd data/d2.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Where Exists(ID)&lt;/EM&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_a,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2.param_b,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as d2_Flag,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'No' as Flag&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FROM [lib://qvd data/d2.qvd]&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(qvd)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Where NOT Exists(ID)&lt;/EM&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;// Resident Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;NoConcatenate&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Load *,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d1_Flag=1 and&amp;nbsp; ISNULL(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d2_Flag),'Only d1',&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp; &lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;if(&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;Flag&lt;/EM&gt;&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;='Yes','d1 &amp;amp; d2',&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;if(&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Flag='No','d2'))) as Table_Value&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Resident &lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d1;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;drop table d1;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;to count only from d1 table &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;count(Distinct {&amp;lt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Table_Value={'&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;Only d1'&lt;/EM&gt;&lt;/EM&gt;}&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&amp;gt;}ID)&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;for in Both:&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;count(Distinct {&amp;lt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Table_Value={'&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;d1 &amp;amp; d2'&lt;/EM&gt;&lt;/EM&gt;}&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&amp;gt;}ID)&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;for only d2:&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count(Distinct {&amp;lt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;Table_Value={'&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;d2&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;}ID)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Thanks,&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Mukram,&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 18:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456692#M35864</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-12-29T18:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456693#M35865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the solution! I transformed it a little bit so that both tables are loaded from .qvd and then joined afterwards. It works! however the app is adding some synthetic keys while loading data... is that ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'm wondering whether there is a chance to combine it into one field saying 'd1 only', 'd2 only', 'd1&amp;amp;d2' but that's just about to compress three filter panes into one, for now it's fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's interesting is that when selected 'd1&amp;amp;d2' to 'Yes' (so I get data existing in both tables), count and count distinct become to behave properly - does it mean that generally I cannot use regular count when having some divergent data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456693#M35865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T14:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456694#M35866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you @Mohammed! The solution looks good for me, however I am wondering whether it would took twice as much time to perform - it needs to load the tables twice, once looking for existing data in another table, second looking for blanks - but I may be wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Anyway thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456694#M35866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T14:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456695#M35867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you add the bit in&lt;EM style="color: #ff0000;"&gt; red italics&lt;/EM&gt; below to my sample qvf then the new field &lt;EM style="color: #ff0000; font-size: 13.3333px;"&gt;[d Type]&amp;nbsp; &lt;/EM&gt;should allow you to just use that for your single filter pane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; if ( [d1.Table] = 'd1' and isnull([d2.Table])&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; , dual('Yes',1) , dual('No',0) )&amp;nbsp; as [d1.Only] ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; if ( [d2.Table] = 'd2' and isnull([d1.Table])&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; , dual('Yes',1) , dual('No',0) )&amp;nbsp; as [d2.Only] ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; if ( [d2.Table] = 'd2' and [d1.Table] = 'd1'&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; , dual('Yes',1) , dual('No',0) )&amp;nbsp; as [d1.and.d2] ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #ff0000;"&gt;&amp;nbsp; if ( [d1.Table] = 'd1' and isnull([d2.Table])&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #ff0000;"&gt;&amp;nbsp; , 'd1.Only' ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #ff0000;"&gt;&amp;nbsp; if ( [d2.Table] = 'd2' and isnull([d1.Table])&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #ff0000;"&gt;&amp;nbsp; , 'd2.Only' ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #ff0000;"&gt;&amp;nbsp; if ( [d2.Table] = 'd2' and [d1.Table] = 'd1'&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM style="color: #ff0000;"&gt;&amp;nbsp; , 'd1.and.d2' ) ) ) as [d Type] ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp; *&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;resident Temp ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In my sample I only had one table, but if you have a synthetic key you must have one or more tables.&amp;nbsp; Double check that any temporary tables are deleted, in my example it does a &lt;EM&gt;Drop Table Temp ;&lt;/EM&gt; at the end.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 17:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456695#M35867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-02T17:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: count the records in two tables association</title>
      <link>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456696#M35868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thank you!&lt;/P&gt;&lt;P&gt;Sure, I did forgot to drop a temp table... thanks &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, 05 Jan 2018 18:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-the-records-in-two-tables-association/m-p/1456696#M35868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T18:59:12Z</dc:date>
    </item>
  </channel>
</rss>

