<?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: sum distinct from various tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838451#M294757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attach some sample file and your expected output so that it would be easier to understand and provide the solution.&amp;nbsp; Go through below link it helps you in getting the answers from community easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7538"&gt;Qlik Community Tip: Posting Successful Discussion Threads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 07:57:22 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-07-09T07:57:22Z</dc:date>
    <item>
      <title>sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838450#M294756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to find distinct values off&amp;nbsp; various tables then sum those up.&lt;/P&gt;&lt;P&gt;Now because some of the entries returned from the various tables are the same (as in duplicates) when I count or sum&amp;nbsp; the results&lt;/P&gt;&lt;P&gt;I get a figure that is less the duplicates (mind you these resultant distinct are correct).&lt;/P&gt;&lt;P&gt;In effect what I finally get is a sum distinct of the distinct.&lt;/P&gt;&lt;P&gt;As opposed to just a summing of distincts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 07:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838450#M294756</guid>
      <dc:creator />
      <dc:date>2015-07-09T07:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838451#M294757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Attach some sample file and your expected output so that it would be easier to understand and provide the solution.&amp;nbsp; Go through below link it helps you in getting the answers from community easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7538"&gt;Qlik Community Tip: Posting Successful Discussion Threads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 07:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838451#M294757</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-09T07:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838452#M294758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="QV egs.PNG" class="jive-image image-1" src="/legacyfs/online/92363_QV egs.PNG" style="height: 469px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 08:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838452#M294758</guid>
      <dc:creator />
      <dc:date>2015-07-09T08:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838453#M294759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a snap shot, I hope that clears what it is I am trying to achieve.&lt;/P&gt;&lt;P&gt;I imagined I could use set analysis but came to naught.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 08:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838453#M294759</guid>
      <dc:creator />
      <dc:date>2015-07-09T08:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838454#M294760</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;How you link this two tables in Qlikview?&amp;nbsp; Can you attach the Qlikview file you are working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression hope it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Rangesum($(=Concat(DISTINCT FieldName, ', ')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace fieldname with your actual field name in the above expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 09:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838454#M294760</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-09T09:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838455#M294761</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;If you got the answer close this thread by giving Correct Answer to the helpful post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 10:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838455#M294761</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-09T10:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838456#M294762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day Jagan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the attempt .&lt;/P&gt;&lt;P&gt;I  get the second result , which is incorrect.&lt;/P&gt;&lt;P&gt;I am reading up on Rangesum with a view to see if twicking it would suffice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Khumalo&lt;/P&gt;&lt;P&gt;Data Analyst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0847774443&lt;/P&gt;&lt;P&gt;prince.khumalo@cellc.co.za&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;This email and its contents are subject to our email legal notice which can be viewed at http://www.cellc.co.za/dl/cms/downloads/Email_legal_notice.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 10:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838456#M294762</guid>
      <dc:creator />
      <dc:date>2015-07-09T10:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838457#M294763</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 should work, if you attach sample file and your expected output then it would be easier to analyse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 10:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838457#M294763</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-09T10:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838458#M294764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can do the sum for each of the table in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Agents, Trainings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Join(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;LOAD Sum(Distinct Trainings) as SumTraining&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Agents, Trainings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;F, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;G, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;H, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Join(Table2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;LOAD Sum(Distinct Trainings) as SumTraining&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Resident Table2&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you can try this expression in your text box object:&lt;STRONG&gt;=Sum(DISTINCT SumTraining)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92385" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92385_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;BR /&gt;&lt;/STRONG&gt;Right now the above file is create a synthetic key, but to avoid that I will probably concatenate them together to avoid any synthetic keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&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;Resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (FinalTable)&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;Resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Tables Table1, Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 11:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838458#M294764</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-09T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838459#M294765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunindia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error in expression  :     ')' expected load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is preventing me from moving forward and I can’t for the life of me figure how come/where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have input exactly as per your illustration in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Khumalo&lt;/P&gt;&lt;P&gt;Data Analyst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0847774443&lt;/P&gt;&lt;P&gt;prince.khumalo@cellc.co.za&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;This email and its contents are subject to our email legal notice which can be viewed at http://www.cellc.co.za/dl/cms/downloads/Email_legal_notice.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838459#M294765</guid>
      <dc:creator />
      <dc:date>2015-07-09T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838460#M294766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this happen when you reload? or is it happening on a front end chart object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838460#M294766</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-09T15:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838461#M294767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixed that error,  thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution you provided only works if the resultant distinct product  does not produce a duplicate.&lt;/P&gt;&lt;P&gt;Because I am referencing many tables some return the same result as in the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the solution falters, or am I being too simple headed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prince Khumalo&lt;/P&gt;&lt;P&gt;Data Analyst&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0847774443&lt;/P&gt;&lt;P&gt;prince.khumalo@cellc.co.za&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;This email and its contents are subject to our email legal notice which can be viewed at http://www.cellc.co.za/dl/cms/downloads/Email_legal_notice.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838461#M294767</guid>
      <dc:creator />
      <dc:date>2015-07-09T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838462#M294768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I am not sure what output you are seeking? With the attached sample, are you expecting to see a number other than 69?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838462#M294768</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-09T16:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838463#M294769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; I am&amp;nbsp; rather spent for the day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pardon me, the result that should return there is 82&amp;nbsp; that is (13+13+17+39).&lt;/P&gt;&lt;P&gt;There is 4 tables providing results and two of the results are identical (13).&lt;/P&gt;&lt;P&gt;Only one of the 13 is taken into account when in the front end we are summing the distinct.&lt;/P&gt;&lt;P&gt;Well if we dont sum distinct a ridiculous figure comes through ...518 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838463#M294769</guid>
      <dc:creator />
      <dc:date>2015-07-09T16:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838464#M294770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, my bad. I changed the script a little bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;SPAN style="color: #ff0000;"&gt;, 'T1' as Table&lt;/SPAN&gt; Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Agents, Trainings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Distinct Trainings) as SumTraining&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;SPAN style="color: #ff0000;"&gt;, 'T2' as Table&lt;/SPAN&gt; Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Agents, Trainings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;F, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;G, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;H, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;J, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Distinct Trainings) as SumTraining&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;SPAN style="color: #ff0000;"&gt;, 'T3' as Table&lt;/SPAN&gt; Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Agents, Trainings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;K, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;L, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;M, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hn, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I&amp;amp;J, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;P, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;N, 17&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;O,5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Distinct Trainings) as SumTraining&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;SPAN style="color: #ff0000;"&gt;, 'T4' as Table&lt;/SPAN&gt; Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Agents, Trainings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ab, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bc, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cd, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;De, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Table4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Distinct Trainings) as SumTraining&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table4;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92430_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838464#M294770</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-09T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838465#M294771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New Expression: &lt;STRONG&gt;=Sum(Aggr(SumTraining, Table))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838465#M294771</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-09T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838466#M294772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;Much munch APPRECIATED&amp;nbsp; Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838466#M294772</guid>
      <dc:creator />
      <dc:date>2015-07-09T17:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838467#M294773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad I was able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838467#M294773</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-09T17:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838468#M294774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/Paw1na1Paw"&gt;Paw1na1Paw&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I tried &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/jagan"&gt;jagan&lt;/A&gt; logic.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92468_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92469_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Rangesum($(=Concat(DISTINCT TRAININGS1, ', ')))+Rangesum($(=Concat(DISTINCT TRAININGS2, ', ')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 04:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838468#M294774</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-07-10T04:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: sum distinct from various tables</title>
      <link>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838469#M294775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goo day&amp;nbsp; Qlikview Wizard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy with the solution arrived at with Sunny.&lt;/P&gt;&lt;P&gt;I am currently driven to a dead line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be putting your suggested solution to the test later. And will feed back&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 06:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-distinct-from-various-tables/m-p/838469#M294775</guid>
      <dc:creator />
      <dc:date>2015-07-10T06:02:08Z</dc:date>
    </item>
  </channel>
</rss>

