<?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: Calculating a percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498592#M554526</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;You created th total in script so it always be static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For dynamic based on selction you should use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(Total &amp;lt;[&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;Effective Date&lt;/SPAN&gt;]&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Aug 2013 21:03:51 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-08-16T21:03:51Z</dc:date>
    <item>
      <title>Calculating a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498587#M554521</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’m attempting to display the percentage of processing time for various jobs.&amp;nbsp; I initially created a straight table chart with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Effective Date&lt;/P&gt;&lt;P&gt;Job Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Sum([Duration In Minutes]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relative is checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have about 25 job groups.&amp;nbsp; The problem is that when I select a few job groups instead of displaying all job groups my expression displays numbers that increase so that the total is 100%.&amp;nbsp; That’s not accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is for the correct percentages to be displayed whether displaying all the job groups or only looking at a few.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 21:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498587#M554521</guid>
      <dc:creator />
      <dc:date>2013-08-15T21:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498588#M554522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using "Relative" will always lead to the total of 100%, so in won't be useful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, calculate the % manually, using keyword ALL - it means ignoring chart dimensions and user selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum([Duration In Minutes])&lt;/SPAN&gt;/&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum( ALL [Duration In Minutes])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;If you need a more granular definition of what selections to respect and what selections to ignore, then you'll need to replace ALL with a corresponding Set Analysis condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Oleg Troyansky&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 21:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498588#M554522</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-08-15T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498589#M554523</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;Thanks for your response.&amp;nbsp; I tried this which got me what I need.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 14:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498589#M554523</guid>
      <dc:creator />
      <dc:date>2013-08-16T14:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498590#M554524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, what I ended up doing that got me what I really needed was modified the load script to include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;EffectiveDateDurationAgg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;"Effective Date"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;"Duration In Minutes"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;[Daily Total Duration]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; MetricHist&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;"Effective Date"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I modified my expression to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;[Daily Total Duration]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I select a job, the percentage remains unchanged.&amp;nbsp; If I selected a job before it would change from the actual percentage to 100%.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 20:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498590#M554524</guid>
      <dc:creator />
      <dc:date>2013-08-16T20:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498591#M554525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is an example of the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="45648" class="jive-image-thumbnail jive-image" height="327" onclick="" alt="Percentage2.png" src="https://community.qlik.com/legacyfs/online/45648_Percentage2.png" width="549" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 20:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498591#M554525</guid>
      <dc:creator />
      <dc:date>2013-08-16T20:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498592#M554526</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;You created th total in script so it always be static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For dynamic based on selction you should use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(Total &amp;lt;[&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px; background-color: #ffffff;"&gt;Effective Date&lt;/SPAN&gt;]&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Duration In Minutes]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 21:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-percentage/m-p/498592#M554526</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-16T21:03:51Z</dc:date>
    </item>
  </channel>
</rss>

