<?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: Sum expression in Table chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457783#M170931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a TOTAL qualifer, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(TOTAL&amp;lt;Client&amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: ah, sorry, you probably need&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;=sum(TOTAL&amp;lt;Month&amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 15:05:48 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-10-01T15:05:48Z</dc:date>
    <item>
      <title>Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457782#M170930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm having trouble writing a expression for the next situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a table chart, i have my periods (month - year), and the customers. &lt;/P&gt;&lt;P&gt;I want to add a column that have the percentage of sales by customer according to the total of sales o the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I'm doing in:&lt;/P&gt;&lt;P&gt;- Add the two dimensions (period, client)&lt;/P&gt;&lt;P&gt;- Get the sales of the customer ( sum(Sales) )&lt;/P&gt;&lt;P&gt;- Get the total sales of the month ( sum({$&amp;lt;Client=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the values i'm getting aren't the correct. The problem is getting the correct sum of sales of the month.&lt;/P&gt;&lt;P&gt;Any ideas of how to write the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 14:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457782#M170930</guid>
      <dc:creator />
      <dc:date>2012-10-01T14:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457783#M170931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a TOTAL qualifer, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(TOTAL&amp;lt;Client&amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: ah, sorry, you probably need&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;=sum(TOTAL&amp;lt;Month&amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 15:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457783#M170931</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T15:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457784#M170932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added that, but i got the total of all periods, not the total per period.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457784#M170932</guid>
      <dc:creator />
      <dc:date>2012-10-01T16:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457785#M170933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should work. You need to use the correct field name with the TOTAL qualifier, and field names are case sensitive in QV. If your dimension field is &lt;EM&gt;period, &lt;/EM&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(TOTAL&amp;lt;period&amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(Sales) / sum(TOTAL&amp;lt;period&amp;gt; Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should give you the percentage of Sales for a given Client and given period compared with the total sales for that period across all Clients.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 17:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457785#M170933</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T17:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457786#M170934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you're correct, it's working now, also i was using {} thinking it was set analysis.&lt;/P&gt;&lt;P&gt;Other question, this would work with dimensions created by expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 17:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457786#M170934</guid>
      <dc:creator />
      <dc:date>2012-10-01T17:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457787#M170935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean, a calculated dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 17:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457787#M170935</guid>
      <dc:creator />
      <dc:date>2012-10-01T17:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum expression in Table chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457788#M170936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I think you are able to use field names only with the TOTAL qualifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, create a field in the script to replace the calculated dimension with a field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 17:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-expression-in-Table-chart/m-p/457788#M170936</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T17:47:31Z</dc:date>
    </item>
  </channel>
</rss>

