<?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: Using chart column sum in a separate expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438088#M431793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Type={'Webcasts'}&amp;gt;}Duration)/Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {$&amp;lt;Type={'Webcasts'}&amp;gt;}Duration)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 15:12:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-21T15:12:59Z</dc:date>
    <item>
      <title>Using chart column sum in a separate expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438087#M431792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart showing support minutes per event size. The expression column header also has a total, and I want to provide the percentage of the total related to each entry. I haven't been able to get this to work, and I would appreciate any suggestions from this group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, my data chart looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Event Size&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Support Minutes&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Small&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Medium&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Large&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Support Minutes header totals 6000. I want to create an additional column that shows 16.6%, 50%, and 33.3% respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here are the issues I have encountered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have to add a specific Interval Format (mm) to get the time to calculate and show and calculate minutes properly. However, the Interval format option does not allow the "Show in Percent (%)" option. The format settings which do allow "Show in Percent (%)" format the data incorrectly.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The values involved in creating the "minutes" entries require set analysis as well as the results of individual selections&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Creating a variable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varSupportTime =&amp;nbsp; SUM({$&amp;lt;Type={'Webcasts'}&amp;gt;}Duration)&amp;nbsp;&amp;nbsp;&amp;nbsp; this one results in a value of mm2e+002, so not helpful.&lt;/LI&gt;&lt;LI&gt;I've tried adding the NUM function&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(SUM({$&amp;lt;Type={'Webcasts'}&amp;gt;}Duration),'mm') to force the formatting, but this didn't work.&lt;/LI&gt;&lt;LI&gt;The variable, if built correctly, could be used to divide the Support Minutes and generate a percentage.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An additional issue with my variable is that it does not change with additional selections. For example, right now it totals the entire data set. If I want to select a specific month, week, location, etc, I would want the sum to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What do I need to do to get a percentage column which shows the value in the Support Minutes column divided by the total of that column, while at the same time maintaining the number format (mm)? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438087#M431792</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-08-21T14:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using chart column sum in a separate expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438088#M431793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Type={'Webcasts'}&amp;gt;}Duration)/Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {$&amp;lt;Type={'Webcasts'}&amp;gt;}Duration)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438088#M431793</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-21T15:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using chart column sum in a separate expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438089#M431794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I knew it had to be easy. That worked perfectly Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-chart-column-sum-in-a-separate-expression/m-p/1438089#M431794</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-08-21T15:36:16Z</dc:date>
    </item>
  </channel>
</rss>

