<?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: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441112#M432399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well one is a distinct count the other one is not.... May be you need Sum(Aggr()) here&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;[Table Name]&amp;gt;}Aggr(Count(DISTINCT {&amp;lt;[Table Name]&amp;gt;} [Original API Name]), [Original API Name], [Table Name]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or DISTINCT Count &lt;STRONG style="font-size: 13.3333px;"&gt;[Original API Name]&amp;amp;&lt;STRONG style="font-size: 13.3333px;"&gt;[Table Name]&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=Count(DISTINCT {&amp;lt;[Table Name]&amp;gt;} [Original API Name]&amp;amp;[Table Name])&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2017 17:24:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-09-05T17:24:16Z</dc:date>
    <item>
      <title>Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441111#M432398</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've a straight table with following two dimensions Original API and Table Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached sample data set with simple data model, but it is not same in my actual scenario. I've included a screen shot of it for understanding. It will be difficult for me to provide that here. If required I can try to replicate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen shots of Actual Table and KPI Calculations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CountDifference.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175643_CountDifference.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ExpressionSettings.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/175644_ExpressionSettings.PNG" style="width: 519px; height: 411px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Portion of Data Model for above can be seen in screen shot below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Datamodel2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/175645_Datamodel2.PNG" style="width: 620px; height: 261px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441111#M432398</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-05T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441112#M432399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well one is a distinct count the other one is not.... May be you need Sum(Aggr()) here&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;[Table Name]&amp;gt;}Aggr(Count(DISTINCT {&amp;lt;[Table Name]&amp;gt;} [Original API Name]), [Original API Name], [Table Name]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or DISTINCT Count &lt;STRONG style="font-size: 13.3333px;"&gt;[Original API Name]&amp;amp;&lt;STRONG style="font-size: 13.3333px;"&gt;[Table Name]&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=Count(DISTINCT {&amp;lt;[Table Name]&amp;gt;} [Original API Name]&amp;amp;[Table Name])&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441112#M432399</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T17:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441113#M432400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why aggr()?&amp;nbsp; Just removing the DISTINCT makes both the table and the KPI return the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441113#M432400</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-09-05T17:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441114#M432401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was not sure why use DISTINCT in the first place... may be there is a reason to use it... but yes, you are right... removing DISTINCT should do it in this case &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441114#M432401</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T17:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441115#M432402</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;Yes, both expressions are working. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441115#M432402</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-05T17:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441116#M432403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing distinct provides higher count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Table Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Original API Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Table Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Count is 3544&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;it may be due to values of other dimensions within those two tables from the actual data model.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441116#M432403</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-05T17:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441117#M432404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both these expressions provided expected count of 1103.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441117#M432404</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-05T17:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441118#M432405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not removing DISTINCT from this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;[Table Name]&amp;gt;} [Original API Name]&amp;amp;[Table Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should use DISTINCT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; {&amp;lt;[Table Name]&amp;gt;} [Original API Name]&amp;amp;[Table Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob mentioned about removing DISTINCT from this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;DISTINCT&lt;/SPAN&gt;&lt;/SPAN&gt; {&amp;lt;[Table Name]&amp;gt;} [Original API Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not sure what you are really doing and that is why I didn't suggest this to you in the first place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441118#M432405</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T17:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table count vs Count as KPI is not matching when additional dimnesions are present in the data model</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441119#M432406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I had tried that before posting the question. It gives me count of 3544. In this dashboard user is trying to use transactional information with metadata of tables where that information is getting stored. In order to do all that I had to juggle data model and data processing to achieve the functionality the user wanted. I've been able to achieve all of that so far. This count was off which I had noticed so I wanted to take care of it and I was having challenge to get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to you and Rob for helping us out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 14:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-count-vs-Count-as-KPI-is-not-matching-when/m-p/1441119#M432406</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-09-06T14:56:29Z</dc:date>
    </item>
  </channel>
</rss>

