<?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: Problem with percentage calculation in Trellis charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624693#M1109484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno- You can use Manish expression if you need total years value in each trills chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 09:49:45 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2014-03-12T09:49:45Z</dc:date>
    <item>
      <title>Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624685#M1109473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all&lt;/P&gt;&lt;P&gt;I have a problem with calculation percentage in Trelllis charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the enrollment of Bachelor- and Masterstudents in 8 different Universities in Denmark in a Trellis chart. I have no problem showing the actual number in my first Trellis Chart, but I also want a Trellis Chart where I have calculated the ration (in %)of all Bachelorstudents enrolled in each University divided by all enrolled Bachelorstudents in Total. The data ratio should sum to 100% in each of the Years in the Chart (2007-2013) . Likewise I want the same percentage for Masterstudents in the Chart (called "Kandidat" in Danish).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use these dimensions/expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;University&lt;/LI&gt;&lt;LI&gt;Year&lt;/LI&gt;&lt;LI&gt;Type (Bachelor/Master)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Status={'Samlet'}, Type={'dkuni, optag'}&amp;gt;} sum) / sum({$&amp;lt;Status={'Samlet'}, Type={'dkuni, optag'}&amp;gt;} TOTAL sum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Listbox (where I select from Faculties - in the case in the Picture underneath it is "Humaniora" which 6 Universities have) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However my Trellis Charts looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV forum mar14.png" class="jive-image" src="/legacyfs/online/54732_QV forum mar14.png" /&gt;&lt;/P&gt;&lt;P&gt;Clearly the percentages are not calculated correctly - what am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my data in excel-format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope somebody can help - thanx &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;Cheers&lt;/P&gt;&lt;P&gt;Bruno&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;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624685#M1109473</guid>
      <dc:creator />
      <dc:date>2014-03-11T13:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624686#M1109474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clearly understood your question.&lt;/P&gt;&lt;P&gt;Can you let me know what could be the result you are expecting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624686#M1109474</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-11T13:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624687#M1109475</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 find the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624687#M1109475</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2014-03-11T13:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624688#M1109476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan&lt;/P&gt;&lt;P&gt;Thanks for your answer, but it's not quite what I was looking for. I guess I was not specific enough in my original post - my fault, sorry &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;To be more specific:&lt;/P&gt;&lt;P&gt;The user have to choose one, and only one Faculty. But the expression calculates the percentage out of all 5 faculties together and not for each faculty as I wanted. (the selected Faculty should sum to 100 % if all Universities are summed for bachelorstudents and to 100% if all Universities for masterstudents summed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this something you know how to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot &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;Cheers&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 13:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624688#M1109476</guid>
      <dc:creator />
      <dc:date>2014-03-11T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624689#M1109477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still we are confuse. Can you explain little bit more. If possible give output result what you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624689#M1109477</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2014-03-11T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624690#M1109478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan&lt;/P&gt;&lt;P&gt;I can try - here it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only one listbox where the user can choose 1 (and only 1) of 5 faculties. Given by an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose Faculty='Humaniora', the following Trellis Chart should show (Each single chart represents 1 of the 6 Universities that have the Faculty 'Humaniora'):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV forum mar15 n1.png" class="jive-image" src="/legacyfs/online/54786_QV forum mar15 n1.png" /&gt;&lt;/P&gt;&lt;P&gt;Mark the for each Year AND each Type (Bachelor/Kandidat) the cumulutative percent for all Universities adds up to 100%. If I choose another Faculty (for example 'Samfundsvidenskab'), the new Trellis chart would look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV forum mar15 n2.png" class="jive-image" src="/legacyfs/online/54787_QV forum mar15 n2.png" /&gt;&lt;/P&gt;&lt;P&gt;Again the cumulutative percentage for each Year and each Type adds up to 100 %. Thats what I want my Trellis Chart to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this makes it clearer, and that you have a solution &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;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bruno&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 08:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624690#M1109478</guid>
      <dc:creator />
      <dc:date>2014-03-12T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624691#M1109479</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 find the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had calculated like this,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Bachelor Exp:&lt;/P&gt;&lt;P&gt;100*(Sum of Bachelor value&amp;nbsp; for each university and year / Sum of total Bachelor value for all university and years(i.e. total value for all university and all years) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In numbers tab I had checked Show percent. It will calculate the exp with 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Based on selection in faculty the expression will change in Numerator and denominator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select Humaniora, it gives the result based on Humaniora.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to change denominator based on your current selection in app, use {1}. If you want to remove Faculty selection in denominator, use {&amp;lt;Faculty =&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624691#M1109479</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2014-03-12T09:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624692#M1109480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like This ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update : &lt;/P&gt;&lt;P&gt;Change your expressions as below..&lt;/P&gt;&lt;P&gt;for Bachelor&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Degree={'Bachelor'}&amp;gt;}Val)/Sum(TOTAL &amp;lt;Year&amp;gt; {&amp;lt;Degree={'Bachelor'}&amp;gt;}Val)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Kandidat&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Degree={'Kandidat'}&amp;gt;}Val)/Sum(TOTAL &amp;lt;Year&amp;gt; {&amp;lt;Degree={'Kandidat'}&amp;gt;}Val)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624692#M1109480</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-12T09:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624693#M1109484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno- You can use Manish expression if you need total years value in each trills chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 09:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624693#M1109484</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2014-03-12T09:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624694#M1109487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan&lt;/P&gt;&lt;P&gt;Thanks for your answers, but I'm sorry to tell you that I'ts still not what I want the Trellis to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my first example Picture above for Faculty='Humanities and Type='Kandidat', you can see that the values for the 6 universities in 2013 cumulates to 100% (KU=28%, AU=22%, AAU=12%, SDU=22%, CBS=7%, RUC=9%).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the chart to cumulate to 100% each year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your answer the percentages are to low. Maybe it's because the expression cumulates for all Years and not for each Year seperately.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV forum mar15 n3.png" class="jive-image" src="/legacyfs/online/54797_QV forum mar15 n3.png" style="width: 620px; height: 335px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the answer is a Manish expression, but I don't know what it is. I tried to google it, but didn't get anything. Do you know where I can find information on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for all your help so far &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;Thanks&lt;/P&gt;&lt;P&gt;Bruno&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 10:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624694#M1109487</guid>
      <dc:creator />
      <dc:date>2014-03-12T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624695#M1109490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By bad - I didn't see Manish answer and thought that there was something called a "Manish Expression" in Qlikview (guess WHO's feeling like a complete fool now &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;Thanks a lot both of you - You solved my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 10:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624695#M1109490</guid>
      <dc:creator />
      <dc:date>2014-03-12T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with percentage calculation in Trellis charts</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624696#M1109492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt; My pleasure ...!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 10:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-percentage-calculation-in-Trellis-charts/m-p/624696#M1109492</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-12T10:19:56Z</dc:date>
    </item>
  </channel>
</rss>

