<?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: Count problems in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682524#M247442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide example please...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 10:05:47 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-10-27T10:05:47Z</dc:date>
    <item>
      <title>Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682519#M247437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need you help.&lt;/P&gt;&lt;P&gt;I have table KPI, where I made some Fact and Plan calculations and also wrote simple if expression &lt;/P&gt;&lt;P&gt;if (Fact&amp;gt;=Plan, ‘yes’, ’no’) .&lt;/P&gt;&lt;P&gt;I got ‘yes’ and ‘no’ KPI-es of every id with the fixations at a certain time. That works correct.&lt;/P&gt;&lt;P&gt;The problem is in counting ID-s with ‘yes’ and ‘no’&amp;nbsp; in chart.&amp;nbsp; How to count in chart diagram values from straight table? I used variables, but this approach also work incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69517_screen.png" style="width: 620px; height: 239px;" /&gt;&lt;/P&gt;&lt;P&gt;The result chart should look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69516_chart.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE align="left" border="1" cellpadding="0" cellspacing="0" style="border: none; margin-left: 6.75pt; margin-right: 6.75pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="47"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Id&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="57"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Plan&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="47"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Fact&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;State&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="47"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="57"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="47"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="47"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="57"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="47"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;no&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If there are any ideas how to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ook forward to you reply&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682519#M247437</guid>
      <dc:creator />
      <dc:date>2014-10-23T09:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682520#M247438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below three expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(Aggr(IF(sum({&amp;lt;Times={"&amp;gt;$(vTimeFrom) &amp;lt;$(vTimeTo)"}&amp;gt;}Fact_fiks)&amp;gt;=sum(Plan_fiks_day),1,0),id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT id) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(Aggr(IF(sum({&amp;lt;Times={"&amp;gt;$(vTimeFrom) &amp;lt;$(vTimeTo)"}&amp;gt;}Fact_fiks)&amp;lt;sum(Plan_fiks_day),1,0),id))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682520#M247438</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-10-23T09:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682521#M247439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Define the field State here as the first expr and rename it as State_Calc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.No of distinct Id:&lt;/P&gt;&lt;P&gt;the Expr is : Count(Distinct id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.No of Distinc id with state No:&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;State_Calc&lt;/SPAN&gt;={'No'}&amp;gt;}Distinct id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;SPAN style="font-size: 13.6000003814697px; line-height: 1.5em;"&gt;No of Distinc id with state Yes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;count({&amp;lt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;State_Calc&lt;/SPAN&gt;={'yes'}&amp;gt;}Distinct id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 09:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682521#M247439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-23T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682522#M247440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it works good! But what if not use binary(1,0) values in sum expression, for example instead of two States "yes" and "no", if I have other several states? In this case, how to count id-s whith other states?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682522#M247440</guid>
      <dc:creator />
      <dc:date>2014-10-24T08:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682523#M247441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, it seems that such approach work as mine, not correctly... the fact is that States are dynamically changed according to time ranges. Counts work correctly in stright table, but&amp;nbsp; in chart they dont't&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 07:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682523#M247441</guid>
      <dc:creator />
      <dc:date>2014-10-27T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682524#M247442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide example please...!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 10:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682524#M247442</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-10-27T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Count problems</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682525#M247443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, i created 3 kpi states: ok, shortage, exceeded&lt;/P&gt;&lt;P&gt;According to the KPI table , there are should be 2 id with state 'shortage', 1 id with 'ok' and no one id with 'exceeded' states in Diagramm.&lt;/P&gt;&lt;P&gt;Also qvd file is attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69727_screen1.png" style="width: 620px; height: 249px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 12:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problems/m-p/682525#M247443</guid>
      <dc:creator />
      <dc:date>2014-10-27T12:58:18Z</dc:date>
    </item>
  </channel>
</rss>

