<?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 Make a Chart Box divide by the monthly total. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273445#M1186421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, funny how the simplest measure is so often the solution.&amp;nbsp; I didn't realize you could utilize total without a &amp;lt;field&amp;gt; expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 22:34:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-19T22:34:35Z</dc:date>
    <item>
      <title>Make a Chart Box divide by the monthly total.</title>
      <link>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273441#M1186417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have a code written that identifies customers on the basis of their credit rating and what month they became a client.&amp;nbsp; The chart box then regurtitates the number of customers for each of our five categories on a monthly basis.&amp;nbsp; However, now I need it do the same but take the number in each category and divide it by the total number of customers in that month.&amp;nbsp; What I like to be able to do is simply have each number divide by the expression total I&amp;nbsp; have added as the bottom row.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I just tried looks like this, but gives me a result of 0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} Acct_Pre_Screen_Black)/count(TOTAL&amp;lt;{1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} Acct_Pre_Screen_Black&amp;gt; {1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} Acct_Pre_Screen_Black)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 22:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273441#M1186417</guid>
      <dc:creator />
      <dc:date>2011-09-19T22:12:32Z</dc:date>
    </item>
    <item>
      <title>Make a Chart Box divide by the monthly total.</title>
      <link>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273442#M1186418</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 believe you shouldn't put the set expression within the TOTAL&amp;lt;fields&amp;gt;, so maybe change it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} Acct_Pre_Screen_Black)&lt;/P&gt;&lt;P&gt;/count({1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} TOTAL&amp;lt;Acct_Pre_Screen_Black&amp;gt; Acct_Pre_Screen_Black)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are your dimensions in your chart? I assume the first part of your division calculates successfully to a number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 22:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273442#M1186418</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T22:20:55Z</dc:date>
    </item>
    <item>
      <title>Make a Chart Box divide by the monthly total.</title>
      <link>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273443#M1186419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I say what you are saying, but that results in all 1's.&amp;nbsp; Basically that makes it so each of the five categories divideds by the total of itself, I need it to divide by the sum of all.&amp;nbsp; And yes, if I eliminate the division, I get a number.&amp;nbsp; That is how this report began but now we are more interested in the numbers as a % of the total.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 22:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273443#M1186419</guid>
      <dc:creator />
      <dc:date>2011-09-19T22:27:39Z</dc:date>
    </item>
    <item>
      <title>Make a Chart Box divide by the monthly total.</title>
      <link>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273444#M1186420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} Acct_Pre_Screen_Black)&lt;/P&gt;&lt;P&gt; /count({1&amp;lt;Acct_CCDMonth = {1}, Acct_CCDYear = {$(vThisYear)}&amp;gt;} TOTAL Acct_Pre_Screen_Black)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 22:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273444#M1186420</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-19T22:31:41Z</dc:date>
    </item>
    <item>
      <title>Make a Chart Box divide by the monthly total.</title>
      <link>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273445#M1186421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, funny how the simplest measure is so often the solution.&amp;nbsp; I didn't realize you could utilize total without a &amp;lt;field&amp;gt; expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 22:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Make-a-Chart-Box-divide-by-the-monthly-total/m-p/273445#M1186421</guid>
      <dc:creator />
      <dc:date>2011-09-19T22:34:35Z</dc:date>
    </item>
  </channel>
</rss>

