<?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 Calculating percentage value in a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270858#M1179110</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;Can you attach the Qlikview file.&amp;nbsp; It would be useful to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 05:28:00 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-02-13T05:28:00Z</dc:date>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270851#M1179094</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 one bar chart with two dimensions&lt;/P&gt;&lt;P&gt;1) MonthYear (which has values like Jan 2010, Feb 2010, etc) &lt;/P&gt;&lt;P&gt;2) Type (which has values 'A', 'B' and 'C')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression shows the count of books for selected date range (I have two calender objects for that) for the respective monthyear and type.&lt;/P&gt;&lt;P&gt;It is working fine, but what I need to display is percentage of each type of books for respective months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g. in Jan 2010; there are total 500 books, out of which 100 are of type A, 200 each of type B and C.&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to display for Jan 2010, for type A, 20%, for type B and C 40% each. This should vary as per the count of books for other months.&lt;/P&gt;&lt;P&gt;I am not getting how to achive it. Could you please help me out? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Date = {"&amp;gt;=$(vFromDate) &amp;lt;=$(vToDate)"}&amp;gt;} BookID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(As I am having personnel edition of qlikview; I will not be able to open any external .qvw file)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270851#M1179094</guid>
      <dc:creator />
      <dc:date>2012-02-10T10:24:00Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270852#M1179096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({&amp;lt;Date = {"&amp;gt;=$(vFromDate) &amp;lt;=$(vToDate)"}&amp;gt;} BookID) / count({&amp;lt;Date = {"&amp;gt;=$(vFromDate) &amp;lt;=$(vToDate)"}&amp;gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp; Total BookID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Show in Percent(%) in number tab for the exp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270852#M1179096</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-02-10T10:32:28Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270853#M1179097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have a field in the name month year then,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try with this expression,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count(Books)/Count(Total &amp;lt;MonthYear&amp;gt; Books)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check the in percentage option in the number tab of the chart properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270853#M1179097</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-10T10:38:07Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270854#M1179099</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;Try the following expession&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Date = {"&amp;gt;=$(vFromDate) &amp;lt;=$(vToDate)"}&amp;gt;} BookID) / &lt;/P&gt;&lt;P&gt;Count({&amp;lt;Date = {"&amp;gt;=$(vFromDate) &amp;lt;=$(vToDate)"}&amp;gt;} Total &amp;lt;MonthYear&amp;gt; Books)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2012 07:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270854#M1179099</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-11T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270855#M1179101</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;This expression gives me wrong results. I have 36 books of type 'A' and 23 books of type 'B' in the month of Jan 2010. So th total books&amp;nbsp; = 59. So my requirement is that while showing percentage for Jan 2010, it should be based on 59. i.e.type 'A' books = 61.01% and 38.93%. But after implementing the solution given by you, it is giving results as type 'A' books = 27% and type 'B' books = 17% which is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 05:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270855#M1179101</guid>
      <dc:creator />
      <dc:date>2012-02-13T05:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270856#M1179103</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;This expression gives me wrong results. I calculated a field in script as MonthYear = monthname(Date). I have 36 books of type 'A' and 23 books of type 'B' in the month of Jan 2010. So th total books&amp;nbsp; = 59. So my requirement is that while showing percentage for Jan 2010, it should be based on 59. i.e.type 'A' books = 61.01% and 38.93%. But after implementing the solution given by you, it is giving results as type 'A' books = 2% and type 'B' books = 1% which is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 05:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270856#M1179103</guid>
      <dc:creator />
      <dc:date>2012-02-13T05:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270857#M1179107</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;This expression gives me wrong results. I calculated a field in script as MonthYear = monthname(Date). I have 36 books of type 'A' and 23 books of type 'B' in the month of Jan 2010. So th total books&amp;nbsp; = 59. So my requirement is that while showing percentage for Jan 2010, it should be based on 59. i.e.type 'A' books = 61.01% and 38.93%. But after implementing the solution given by you, it is giving results as type 'A' books = 2% and type 'B' books = 1% which is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 05:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270857#M1179107</guid>
      <dc:creator />
      <dc:date>2012-02-13T05:23:03Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270858#M1179110</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;Can you attach the Qlikview file.&amp;nbsp; It would be useful to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 05:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270858#M1179110</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-13T05:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270859#M1179111</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;Please check the attached file for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 08:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270859#M1179111</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-13T08:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270860#M1179112</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 cant attach qlikview file. Also I can't open your file as I have&lt;/P&gt;&lt;P&gt;personnel edition of qlikview. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, Feb 13, 2012 at 1:35 PM, jagan mohan &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 13:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270860#M1179112</guid>
      <dc:creator />
      <dc:date>2012-02-13T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270861#M1179113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you able to attach sample data and image of the chart that shows wrong %?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270861#M1179113</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-13T14:05:09Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270862#M1179114</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;The content in the attached file is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Script:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthYear, BookID, Count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2010, A, 45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2010, B, 56&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan 2010, C, 54&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2010, A, 21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2010, B, 42&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb 2010, C, 32&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Straight table&lt;/P&gt;&lt;P&gt;I used MonthYear and BookID as dimensions.&lt;/P&gt;&lt;P&gt;Expression : =Sum(Count)/Sum(Total&amp;lt;MonthYear&amp;gt;Count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270862#M1179114</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-02-13T14:14:04Z</dc:date>
    </item>
    <item>
      <title>Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270863#M1179115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure I understand, but what would I do (TOTAL-A) / A and (TOTAL-B) / B and percentage checkbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 14:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270863#M1179115</guid>
      <dc:creator />
      <dc:date>2012-02-13T14:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating percentage value in a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270864#M1179116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, my problem got solved. I used divisor as Total  BookId.&lt;/P&gt;&lt;P&gt;Thanks all for your help. &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;2012/2/13 Gabriel Vázquez &amp;lt;qliktech@sgaur.hosted.jivesoftware.com&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;**&lt;/P&gt;&lt;P&gt;     QlikCommunity &amp;lt;http://community.qlik.com/index.jspa&amp;gt;&lt;/P&gt;&lt;P&gt;Re: Calculating percentage value in a chart&lt;/P&gt;&lt;P&gt;created by Gabriel Vázquez&amp;lt;http://community.qlik.com/people/gabriel.vazquez&amp;gt;in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New to QlikView&lt;/STRONG&gt; - View the full discussion&amp;lt;http://community.qlik.com/message/191041#191041&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 04:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-percentage-value-in-a-chart/m-p/270864#M1179116</guid>
      <dc:creator />
      <dc:date>2012-02-14T04:10:58Z</dc:date>
    </item>
  </channel>
</rss>

