<?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 Counting data and expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147690#M26099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(Orders) / Sum(total &amp;lt;Week&amp;gt; Orders)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The total &amp;lt;Dim&amp;gt; part of the expression essentially sums by that dimension.&lt;/P&gt;&lt;P&gt;Sorry, I just went back to read that second paragraph and I'm not certain this will work with how you're calculating the Orders. I thought it was a field. I think for your situation you should try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count(distinct [order id]) / Count(distinct total &amp;lt;"Time Cycle"&amp;gt; [order id])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2009 02:16:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-25T02:16:57Z</dc:date>
    <item>
      <title>Counting data and expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147689#M26098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've just generated this table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-288_sourceID:288" /&gt;&lt;/P&gt;&lt;P&gt;The "Number of Orders" field is being displayed by counting the number of orders after they've been filtered by Month and by Advice Status. What I want to do thuogh, is display these numbers as a percentage by week, or by whichever "Time Cycle" is being used. For example,the week of "9 Nov 2008" has 26 orders in total, so for appropriate orders I want to display 34.7% (9/26 x 100).&lt;/P&gt;&lt;P&gt;Seems simple enough but I can't figure out how to get the total number of orders in a Time Cycle. The way i'm calculating number of orders, is with the expression: =count(distinct [order id]), which after the table does all the filtering, gives me a number by Time Cycle by Advice Status. What I can't figure out, is how to incorporate the total number of orders in a time cycle so that I can make the division and get a percentage instead of a number.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 01:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147689#M26098</guid>
      <dc:creator />
      <dc:date>2009-06-25T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Counting data and expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147690#M26099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(Orders) / Sum(total &amp;lt;Week&amp;gt; Orders)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The total &amp;lt;Dim&amp;gt; part of the expression essentially sums by that dimension.&lt;/P&gt;&lt;P&gt;Sorry, I just went back to read that second paragraph and I'm not certain this will work with how you're calculating the Orders. I thought it was a field. I think for your situation you should try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count(distinct [order id]) / Count(distinct total &amp;lt;"Time Cycle"&amp;gt; [order id])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 02:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147690#M26099</guid>
      <dc:creator />
      <dc:date>2009-06-25T02:16:57Z</dc:date>
    </item>
    <item>
      <title>Counting data and expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147691#M26100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks again NMiller!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 02:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-data-and-expressions/m-p/147691#M26100</guid>
      <dc:creator />
      <dc:date>2009-06-25T02:30:56Z</dc:date>
    </item>
  </channel>
</rss>

