<?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: Calculate percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545652#M597699</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Based on the calculation of your excel, I think the KPI expression should be :&lt;/P&gt;&lt;PRE&gt;=(
Sum({&amp;lt;Stuksartikel = {"Ja"}&amp;gt;}RegAantal) + 
Sum({&amp;lt;Stuksartikel = {"Nee"}&amp;gt;}NettoKg)
)
/
(
Sum({&amp;lt;Stuksartikel = {"Ja"}&amp;gt;}Aantal) + 
Sum({&amp;lt;Stuksartikel = {"Nee"}&amp;gt;}Gewicht)
)&lt;/PRE&gt;&lt;P&gt;Please try.&lt;/P&gt;&lt;P&gt;Aiolos&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 07:56:24 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2019-02-18T07:56:24Z</dc:date>
    <item>
      <title>Calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545527#M597698</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an excel table attached to this question.&lt;/P&gt;&lt;P&gt;Here is wat i want to achieve:&lt;/P&gt;&lt;P&gt;We want to calculatie (based on any selection) the total percentage of In Full. So depending on if the artikel is a piece (aantal) or KG. it should calculate de deliveryperformance.&lt;/P&gt;&lt;P&gt;The outcome of this set of data should be a KPI on total: 102,73%.&lt;/P&gt;&lt;P&gt;The files in Qlik sense are dimension and meassurements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimensions are:&lt;/P&gt;&lt;P&gt;Datum, Deb.Nr, Deb.Naam, Art.Nr, Art.Naam, Aantal, Gewicht, RegAantal, NettoKg, Tijd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meassurements are:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stuksartikel&lt;/STRONG&gt; : IF(Stuksartikel = 'Ja','Ja','Nee')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#/KG Besteld&lt;/STRONG&gt;: IF(Stuksartikel = 'Ja', Sum(Aantal), Sum(Gewicht))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#/KG Geleverd&lt;/STRONG&gt;: IF(Stuksartikel = 'Ja', Sum(RegAantal),Sum([NettoKg]))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;% #/KG Uitgeleverd&lt;/STRONG&gt;: SUM(Distinct IF(Stuksartikel = 'Ja', RegAantal,NettoKg))/SUM(Distinct IF(Stuksartikel = 'Ja', Aantal,Gewicht))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope anyone can give me some idea’s how to make this KPI.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 19:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545527#M597698</guid>
      <dc:creator>AT79</dc:creator>
      <dc:date>2019-02-17T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545652#M597699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Based on the calculation of your excel, I think the KPI expression should be :&lt;/P&gt;&lt;PRE&gt;=(
Sum({&amp;lt;Stuksartikel = {"Ja"}&amp;gt;}RegAantal) + 
Sum({&amp;lt;Stuksartikel = {"Nee"}&amp;gt;}NettoKg)
)
/
(
Sum({&amp;lt;Stuksartikel = {"Ja"}&amp;gt;}Aantal) + 
Sum({&amp;lt;Stuksartikel = {"Nee"}&amp;gt;}Gewicht)
)&lt;/PRE&gt;&lt;P&gt;Please try.&lt;/P&gt;&lt;P&gt;Aiolos&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 07:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545652#M597699</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-02-18T07:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545715#M597700</link>
      <description>Hi Aiolos, With this formula, the outcome is 97,47%. It should be 102,73%</description>
      <pubDate>Mon, 18 Feb 2019 09:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545715#M597700</guid>
      <dc:creator>AT79</dc:creator>
      <dc:date>2019-02-18T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545773#M597701</link>
      <description>&lt;P&gt;I don't know whether you can open my attachment, but it works in my desktop:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculate percentage.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6230i1467E30C5BC75836/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calculate percentage.PNG" alt="Calculate percentage.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you still can't get the correct answer, could you please share your example?&lt;/P&gt;&lt;P&gt;it's fine for me to open qlikview or qliksense, then I can check why it's not correct.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Aiolos Zhao&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 10:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1545773#M597701</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-02-18T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1548355#M597702</link>
      <description>&lt;P&gt;Hi Aiolos,&lt;/P&gt;&lt;P&gt;thanks for the solution. I had to change something in my app, now it works with your Formula. My only problem now is that when i select only the stuksartikel or only the kg artikel the outcome stays the same.&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 18:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1548355#M597702</guid>
      <dc:creator>AT79</dc:creator>
      <dc:date>2019-02-23T18:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1548504#M597703</link>
      <description>Hi,&lt;BR /&gt;I don't see the column named [kg artikel],&lt;BR /&gt;but about the stuksartikel , yes, the result won't change.&lt;BR /&gt;because I hard-code the logic about the stuksartikel in the expression, like what you see:&lt;BR /&gt;Stuksartikel = {"Ja"}&lt;BR /&gt;Stuksartikel = {"Nee"}&lt;BR /&gt;Because I followed the logic in your excel, so if you think the logic is wrong, could you please give me a new logic to calculate what you want, then I will try to find a new expression to solve that.&lt;BR /&gt;Aiolos Zhao</description>
      <pubDate>Mon, 25 Feb 2019 05:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage/m-p/1548504#M597703</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-02-25T05:36:33Z</dc:date>
    </item>
  </channel>
</rss>

