<?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: Re: Sum by Expression in Chart in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722196#M899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katherine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can work in two different ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. By adding a List box for the Status field and add the expression sum(Hours) in it&lt;/P&gt;&lt;P&gt;2. By creating a calculated dimension in a straight table and use the aggr() function, together with the sum(Hours) function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the attached example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Agis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 12:26:26 GMT</pubDate>
    <dc:creator>Agis-Kalogiannis</dc:creator>
    <dc:date>2014-09-30T12:26:26Z</dc:date>
    <item>
      <title>Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722192#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in QlikView 11 and I want to display the sum of one column of data in a table chart, but am having trouble with the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample of my data:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="200" style="border: 1px solid #000000; width: 143px; height: 187px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Status&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Hours&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Open&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Open&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Open&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Open&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;Closed&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Closed&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Closed&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display the total number of open hours&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="50" style="border: 1px solid #000000; width: 86px; height: 45px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Open Hours&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I'm trying to do this using a table chart. I can get the sum by status easily enough, but I can't filter for open. Here's the expression I'm using:&lt;/P&gt;&lt;P&gt;Sum({Status = 'Open'} [TOTAL [Hours])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the template that pops up for expressions, but I'm lost on how to translate it into what I'm trying to do:&lt;/P&gt;&lt;P&gt;Sum ({[SetExpression][DISTINCT][ALL][TOTAL[&amp;lt;fld{, fld}&amp;gt;]]} expr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any and all help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 02:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722192#M895</guid>
      <dc:creator />
      <dc:date>2014-09-30T02:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722193#M896</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 below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;Status = {'Open'}&amp;gt;} [TOTAL [Hours])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sushil&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 04:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722193#M896</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-09-30T04:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722194#M897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;Status = {'Open'}&amp;gt;} TOTAL [Hours])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 04:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722194#M897</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-09-30T04:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722195#M898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, that got me to the right value, but it displays the sum of the &lt;EM&gt;open&lt;/EM&gt; hours for all statuses:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="75" style="border: 1px solid rgb(0, 0, 0); width: 140px; height: 25px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Status&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Hours&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Open&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Closed&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I suppress this to only show the open status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722195#M898</guid>
      <dc:creator />
      <dc:date>2014-09-30T12:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722196#M899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katherine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can work in two different ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. By adding a List box for the Status field and add the expression sum(Hours) in it&lt;/P&gt;&lt;P&gt;2. By creating a calculated dimension in a straight table and use the aggr() function, together with the sum(Hours) function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the attached example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Agis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722196#M899</guid>
      <dc:creator>Agis-Kalogiannis</dc:creator>
      <dc:date>2014-09-30T12:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722197#M900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whoa! My QlikView world just blew open!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/keep-qlikview-simple/"&gt;"anywhere you see an ellipses (…) in QlikView you can insert an expression."&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how to use a text box to display a calculated field:&lt;/P&gt;&lt;P&gt;1. In the "text" section under the general tab, enter your formula: &lt;/P&gt;&lt;P&gt;= num(Sum({&amp;lt;Status = {'F'}&amp;gt;} TOTAL [Total Status Hours]),'#,##0') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boom! You've got a text box with your calculated field. Gorgeous!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you guys for your help, I would still have been stuck without the formula suggestions!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722197#M900</guid>
      <dc:creator />
      <dc:date>2014-09-30T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sum by Expression in Chart</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722198#M901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I though you actually wanted to show all the possible status values there in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad you found it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Sum-by-Expression-in-Chart/m-p/722198#M901</guid>
      <dc:creator>Agis-Kalogiannis</dc:creator>
      <dc:date>2014-09-30T14:22:01Z</dc:date>
    </item>
  </channel>
</rss>

