<?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: Expression % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1174006#M633073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct Order) / count (Distinct &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; Order)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 15:26:12 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2016-06-22T15:26:12Z</dc:date>
    <item>
      <title>Expression %</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1174003#M633067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wonder if you can help me I have a Chart that I'm currently running this expression on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is counting the orders that only have the OC field set to C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I'm trying to achieve is&amp;nbsp; this but then divide it by total orders to work out the % of orders going via this method if that makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for instance when I select a customers name it shows me 30% of there orders when via Method C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SQL you would do a simple Count Orders / Orders where OC = C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 13:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1174003#M633067</guid>
      <dc:creator />
      <dc:date>2016-06-22T13:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression %</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1174004#M633068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I understand your question right but try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct Order) / count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1174004#M633068</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-22T15:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression %</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1174005#M633070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;WHat are you exactly triying to do?&lt;/P&gt;&lt;P&gt;If you need to check the % of OC=C orders compare to total orders, try this:&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct Order)/count (Distinct Order)*100&lt;/P&gt;&lt;P&gt;If you need to check the % of OC=C orders of a given client compare to total OC=C orders, try this:&lt;/P&gt;&lt;P&gt;=count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct Order)/count ({&amp;lt;[OC] = {'C'}&amp;gt;}TOTAL Distinct Order)*100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1174005#M633070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-22T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression %</title>
      <link>https://community.qlik.com/t5/QlikView/Expression/m-p/1174006#M633073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count ({&amp;lt;[OC] = {'C'}&amp;gt;} Distinct Order) / count (Distinct &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; Order)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 15:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression/m-p/1174006#M633073</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2016-06-22T15:26:12Z</dc:date>
    </item>
  </channel>
</rss>

