<?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: Percent calculation error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445874#M1154813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;upload your sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 07:49:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-18T07:49:02Z</dc:date>
    <item>
      <title>Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445871#M1154810</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 have a string in a bar chart like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM(100-(if([Level 1 Line]='3658' and P2_skär='X',count (distinct (Machine_Skär)))/9)*100,0)&amp;amp;'%'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two records where Level 1 Line is 3658&lt;/P&gt;&lt;P&gt;One of the records has an X in P2_skär&lt;/P&gt;&lt;P&gt;In Machine_Skär there is one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like my bar to rise to 89% (Machine_Skär/9) but i only get 78%&lt;/P&gt;&lt;P&gt;It seems that the second record without the X is counted in the equation too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody see what fault i make? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 11:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445871#M1154810</guid>
      <dc:creator />
      <dc:date>2013-03-15T11:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445872#M1154811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(count({&amp;lt;[Level 1 line] = {"3658"}, P2_skär= {"X"}&amp;gt;} Distinct Machine_Skär)/9,'#,##0.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 11:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445872#M1154811</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-15T11:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445873#M1154812</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;Nope, this did not work at all...&lt;/P&gt;&lt;P&gt;It did not separate the Level 1 Line and the percentages is not right.&lt;/P&gt;&lt;P&gt;I will try further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 07:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445873#M1154812</guid>
      <dc:creator />
      <dc:date>2013-03-18T07:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445874#M1154813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;upload your sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 07:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445874#M1154813</guid>
      <dc:creator />
      <dc:date>2013-03-18T07:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445875#M1154814</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;to show values in percent may be you are concatenating with % symbol. Which gives wrong percentages.&lt;/P&gt;&lt;P&gt;So in NUM() function instead of 0 use '#,##0.00%'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 08:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445875#M1154814</guid>
      <dc:creator />
      <dc:date>2013-03-18T08:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445876#M1154815</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;In the chart you can see that in Jan the percentages is 67%.&lt;/P&gt;&lt;P&gt;In Jan there are three different Machines but only two are marked with X and therefore the result for Jan should be 78%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is not right in the calculation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM(100-(if([Level 1 Line]='3658' and P2_skär='X',count (distinct (Machine_Skär)))/9)*100,0)&amp;amp;'%'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="35106" class="jive-image-thumbnail jive-image" onclick="" alt="2013-03-18 09-46-37.jpg" src="/legacyfs/online/35106_2013-03-18 09-46-37.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 08:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445876#M1154815</guid>
      <dc:creator />
      <dc:date>2013-03-18T08:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445877#M1154816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: NUM (100-(if([Level 1 Line]='3658', count ({&amp;lt;P2_skär={'X'}&amp;gt;} distinct Machine_Skär))/9)*100,0)&amp;amp;'%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;You can include both options if you want x or X: &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;P2_skär={'x','X'}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445877#M1154816</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-18T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445878#M1154817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks! This works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one more tiny thing.... If i have a small x, how do i get a detection of that. X or x could be in that cell...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 11:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445878#M1154817</guid>
      <dc:creator />
      <dc:date>2013-03-19T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Percent calculation error</title>
      <link>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445879#M1154818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percent-calculation-error/m-p/445879#M1154818</guid>
      <dc:creator />
      <dc:date>2015-03-24T14:04:42Z</dc:date>
    </item>
  </channel>
</rss>

