<?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: Why is data doubled up here? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214502#M389153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; = Count(Value)* Count([Weight in Fund])&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;= Count(DISTINCT (Value * [Weight in Fund]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 15:51:01 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2016-12-06T15:51:01Z</dc:date>
    <item>
      <title>Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214501#M389152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have reduced data down to one example selection state which gives this issue.&amp;nbsp; So no selections are now needed to replicate this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression (for now just in a text box - stripped it right back to what seems to be the root problem):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;count(Value*[Weight in Fund])&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Which gives a count of 2.&amp;nbsp; I can't see why this is - can't see any multiple rows of non-island data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Individually, the components of the product are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;count(Value)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;count([Weight in Fund])&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;which both give a count of 1, as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB I'm actually wanting to do a sum, but I'm just troubleshooting with a count for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reduced QVW attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated - this is bubbling up to a weighted average style calc in a pivot table and REALLY confusing users when they cross check with Excel.&amp;nbsp; I have no idea why it is doubled up. &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>Tue, 06 Dec 2016 15:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214501#M389152</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2016-12-06T15:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214502#M389153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; = Count(Value)* Count([Weight in Fund])&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;= Count(DISTINCT (Value * [Weight in Fund]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214502#M389153</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-06T15:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214503#M389154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is because , you Main table (CompanyAdditional) thru which&amp;nbsp; Value is Associated to Weight in Funds has 2 rows of Data for the same value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;=count(Distinct Value*[Weight in Fund])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214503#M389154</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-06T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214504#M389155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be to Sum, you need this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(Value*[Weight in Fund], File))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214504#M389155</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-06T16:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214505#M389156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/216189"&gt;vinieme12&lt;/A&gt;‌ , &lt;A href="https://community.qlik.com/qlik-users/98547"&gt;vishsaggi&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vineeth -&lt;/P&gt;&lt;P&gt;I had not spotted that doubled data in CompanyAdditional.&amp;nbsp; This seems to be the root problem (and explains why, in the non-reduced version of my QVW, I have the problem for some selections and not others).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwarath -&lt;/P&gt;&lt;P&gt;Unfortunately I actually need to do a sum product in a pivot table (expandable to the individual components too).&amp;nbsp; This count is a simplification of where the problem occurs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;Value=-{"",'$(null())'}&amp;gt;}Value*[Weight in Fund])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Value=-{"",'$(null())'}&amp;gt;}[Weight in Fund])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;so I can't use count(distinct...) either, as some of the values might be identical for different rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny - &lt;/P&gt;&lt;P&gt;I will try using aggr in my function like you suggest, over File - thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will update you all once tested!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will also look upstream in the data processing to find out why I've got duplicates in CompanyAdditional.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214505#M389156</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2016-12-06T16:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214506#M389157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the reason for the duplicates - a dodgy left join.&amp;nbsp; Now resolved.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214506#M389157</guid>
      <dc:creator>sarahallen1</dc:creator>
      <dc:date>2016-12-07T08:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data doubled up here?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214507#M389158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 08:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-data-doubled-up-here/m-p/1214507#M389158</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-07T08:53:34Z</dc:date>
    </item>
  </channel>
</rss>

