<?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: Table - Total Count differences in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564090#M1105081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Switch it to Sum of Rows, rather than expression totals on the Expression tab of the Chart properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 20:30:07 GMT</pubDate>
    <dc:creator>srchilukoori</dc:creator>
    <dc:date>2014-03-26T20:30:07Z</dc:date>
    <item>
      <title>Table - Total Count differences</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564089#M1105080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression to count IDs with three conditionals:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 158px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="63"&gt;Cod prod&lt;/TD&gt;&lt;TD width="95"&gt;Count Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;4428&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;4501&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;244&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;7&lt;/TD&gt;&lt;TD align="right"&gt;1119&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;8&lt;/TD&gt;&lt;TD align="right"&gt;3380&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Total&lt;/TD&gt;&lt;TD align="right"&gt;17053&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Flag_A &amp;lt;&amp;gt; 'No', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(distinct(ID))), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Productos.CodProducto = '150' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(distinct(ID)))/3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Flag_B = 'Si' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(distinct(ID)))/2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(distinct(ID))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, general total is 13.673, different to 17.053... Trying to resolve this issue, I found that Product 8 has Flag_B = 'Si' and the expression must take Count(ID)/2... The Count Total to Product ID 8 is fine (3.380) but the general total takes Count(ID), 6.670.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can fix this formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JFlorian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 20:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564089#M1105080</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2014-03-26T20:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table - Total Count differences</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564090#M1105081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Switch it to Sum of Rows, rather than expression totals on the Expression tab of the Chart properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 20:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564090#M1105081</guid>
      <dc:creator>srchilukoori</dc:creator>
      <dc:date>2014-03-26T20:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table - Total Count differences</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564091#M1105082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a workaround..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Count({&amp;lt;Flag_B={"Si"}, Año={$(vMaxAño)}&amp;gt;} Distinct ID)/2)&lt;/P&gt;&lt;P&gt;+(Count({&amp;lt;Flag_B={"No"}, Año={$(vMaxAño)}&amp;gt;} Distinct ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JFlorian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Total-Count-differences/m-p/564091#M1105082</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2014-04-02T13:09:14Z</dc:date>
    </item>
  </channel>
</rss>

