<?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 Sum Distinct with SET Parameter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174552#M43336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;BR /&gt; I have a problem I need to sum distinct values in a range&lt;/P&gt;&lt;P&gt;es.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="203"&gt;&lt;COL style="width: 56pt;" width="75" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15pt; width: 56pt;" width="75"&gt;01/01/2010&lt;/TD&gt;&lt;TD align="right" style="width: 48pt;" width="64"&gt;10&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15pt;"&gt;02/01/2010&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15pt;"&gt;02/01/2010&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that consider the sum = 20 because on 2/1/2010 there are two same values. I solve the problem with this formula&lt;/P&gt;&lt;P&gt;SUM( AGGR(SUM( DISTINCT (Bdg_vendita)), [Data]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that in the same table I need to shows data to the previous year. I try to use this&lt;/P&gt;&lt;P&gt;Sum( AGGR(SUM({ $ &amp;lt;Anno_Fisc={$(ANNO_FISC_PREC)}&amp;gt; } DISTINCT (Bdg_vendita)), [Data]))&lt;/P&gt;&lt;P&gt;and this&lt;/P&gt;&lt;P&gt;Sum({ $ &amp;lt;Anno_Fisc={$(ANNO_FISC_PREC)}&amp;gt; } AGGR(sum( distinct(Bdg_vendita)), Data))&lt;/P&gt;&lt;P&gt;...but it doesn't works... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;THANKS&lt;BR /&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jan 2011 23:20:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-18T23:20:27Z</dc:date>
    <item>
      <title>Sum Distinct with SET Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174552#M43336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;BR /&gt; I have a problem I need to sum distinct values in a range&lt;/P&gt;&lt;P&gt;es.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="203"&gt;&lt;COL style="width: 56pt;" width="75" /&gt;&lt;COL span="2" style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15pt; width: 56pt;" width="75"&gt;01/01/2010&lt;/TD&gt;&lt;TD align="right" style="width: 48pt;" width="64"&gt;10&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15pt;"&gt;02/01/2010&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD align="right" class="xl65" height="20" style="height: 15pt;"&gt;02/01/2010&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that consider the sum = 20 because on 2/1/2010 there are two same values. I solve the problem with this formula&lt;/P&gt;&lt;P&gt;SUM( AGGR(SUM( DISTINCT (Bdg_vendita)), [Data]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that in the same table I need to shows data to the previous year. I try to use this&lt;/P&gt;&lt;P&gt;Sum( AGGR(SUM({ $ &amp;lt;Anno_Fisc={$(ANNO_FISC_PREC)}&amp;gt; } DISTINCT (Bdg_vendita)), [Data]))&lt;/P&gt;&lt;P&gt;and this&lt;/P&gt;&lt;P&gt;Sum({ $ &amp;lt;Anno_Fisc={$(ANNO_FISC_PREC)}&amp;gt; } AGGR(sum( distinct(Bdg_vendita)), Data))&lt;/P&gt;&lt;P&gt;...but it doesn't works... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;THANKS&lt;BR /&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 23:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174552#M43336</guid>
      <dc:creator />
      <dc:date>2011-01-18T23:20:27Z</dc:date>
    </item>
    <item>
      <title>Sum Distinct with SET Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174553#M43337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you need the set in both places instead of just one or the other. So probably this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;Anno_Fisc={$(ANNO_FISC_PREC)}&amp;gt;} aggr(sum({&amp;lt;Anno_Fisc={$(ANNO_FISC_PREC)}&amp;gt;} distinct Bdg_vendita),Data))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jan 2011 23:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174553#M43337</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-18T23:55:23Z</dc:date>
    </item>
    <item>
      <title>Sum Distinct with SET Parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174554#M43338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GREAT IT WORKS !!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THKS&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 00:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Distinct-with-SET-Parameter/m-p/174554#M43338</guid>
      <dc:creator />
      <dc:date>2011-01-19T00:04:39Z</dc:date>
    </item>
  </channel>
</rss>

