<?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 Sum of multiple categories in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260436#M581481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Up to now, I suggested starting with object expressions in the front end, no load script modification involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that I don't really understand your data, could you post a small data sample? Just some lines of your table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 16:01:23 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-01-09T16:01:23Z</dc:date>
    <item>
      <title>Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260432#M581477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not able to make Qlikview doing a sum...I have a field "PTBRAND" that can show the following values: desktop, mobile, server, options....&lt;/P&gt;&lt;P&gt;I am trying to obtain a graph of quantities with the sum of desktop, mobile and server to be compared to the sum of options quantities......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260432#M581477</guid>
      <dc:creator />
      <dc:date>2012-01-09T15:31:05Z</dc:date>
    </item>
    <item>
      <title>Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260433#M581478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a calculated dimension, create a chart object, go to dimension tab and add a calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( match(PTBRAND,'desktop','mobile','server'), 'OverallComputer','Options')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(PTBRAND)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Not sure, is this what you want to count, or do you have another field you want to count sum?]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260433#M581478</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-09T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260434#M581479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the reply, I tried but it doesn't work....I have the "PTBRAND" field with the desktop, mobile, server, options values and quantities and I am trying to aggregate desktop, mobile and server as machines to be compared to the options in order to check how many optionscompared to the "machines"&amp;nbsp; were sold....&lt;/P&gt;&lt;P&gt;I tried your script but it doesn't work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260434#M581479</guid>
      <dc:creator />
      <dc:date>2012-01-09T15:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260435#M581480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, I tried but it doesn't work....I have the "PTBRAND" field with the desktop, mobile, server, options values and quantities and I am trying to aggregate desktop, mobile and server as machines to be compared to the options in order to check how many options compared to the "machines"&amp;nbsp; were sold....&lt;/P&gt;&lt;P&gt;I tried your script but it doesn't work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260435#M581480</guid>
      <dc:creator />
      <dc:date>2012-01-09T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260436#M581481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Up to now, I suggested starting with object expressions in the front end, no load script modification involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that I don't really understand your data, could you post a small data sample? Just some lines of your table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 16:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260436#M581481</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-09T16:01:23Z</dc:date>
    </item>
    <item>
      <title>Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260437#M581482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="example.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/10193_example.jpg" width="450" /&gt;Here it is! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 16:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260437#M581482</guid>
      <dc:creator />
      <dc:date>2012-01-09T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260438#M581483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="10193" alt="example.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/10193_example.jpg" width="450" /&gt;Here it is! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 16:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260438#M581483</guid>
      <dc:creator />
      <dc:date>2012-01-09T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260439#M581484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, you have an additionally field CAs with number you want to sum, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a bit more comfortable to post such data as text, e.g. with an inline table:&lt;/P&gt;&lt;P&gt;LOAD * &lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;PTBRAND, CAs&lt;/P&gt;&lt;P&gt;OPTIONS, 283546&lt;/P&gt;&lt;P&gt;MOBILE, 131937&lt;/P&gt;&lt;P&gt;DESKTOP, 42962&lt;/P&gt;&lt;P&gt;MONITORS, 30548&lt;/P&gt;&lt;P&gt;THINKPLUS SERVER, 13009&lt;/P&gt;&lt;P&gt;WORKSTATION, 3917&lt;/P&gt;&lt;P&gt;TABLET, 142&lt;/P&gt;&lt;P&gt;LENSERVER, 107&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this, I created a small demo app, with a straight table chart with calculated dimension&lt;/P&gt;&lt;P&gt;=if(match(PTBRAND,'OPTIONS'),'OPTIONS','HARDWARE')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and expression&lt;/P&gt;&lt;P&gt;=sum(CAs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This resulted in a table with two line:&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=if(match(PTBRAND,'OPTIONS'),'OPTIONS','HARDWARE')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;sum(CAs)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;506168&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;OPTIONS&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;283546&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;HARDWARE&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;222622&lt;/SPAN&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;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 16:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260439#M581484</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-09T16:25:21Z</dc:date>
    </item>
    <item>
      <title>Sum of multiple categories</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260440#M581485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Great! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 16:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-multiple-categories/m-p/260440#M581485</guid>
      <dc:creator />
      <dc:date>2012-01-09T16:35:07Z</dc:date>
    </item>
  </channel>
</rss>

