<?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 based on value and give new name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86119#M757944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have the detailed level kept, for example in another sheet or so. Is it possible to do in the expression of a chart or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should of course included that in my initial question. Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2018 09:40:02 GMT</pubDate>
    <dc:creator>marcusbohman</dc:creator>
    <dc:date>2018-09-02T09:40:02Z</dc:date>
    <item>
      <title>Sum based on value and give new name</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86117#M757942</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 read a file with categories and values as below. There are many categories and some of them have very low value so I want to group them into a new category called "Others".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); 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;Category&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;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&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;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a static selection of which categories to sum as others so the output is as below.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); 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;Category&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;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Others&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86117#M757942</guid>
      <dc:creator>marcusbohman</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on value and give new name</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86118#M757943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's static, just use&lt;/P&gt;&lt;P&gt;Load if(Category = 4 or Category = 5, 'Others',Category) as Category, Value.&lt;/P&gt;&lt;P&gt;You can then use sum(Value) in your expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to do this at the script level, you can - you'll just have to GROUP BY the new category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, if it's dynamic, you can still use the same thing -&lt;/P&gt;&lt;P&gt;Load if(Value &amp;lt; 20,'Others',Category) as Category, Value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2018 09:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86118#M757943</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2018-09-02T09:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on value and give new name</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86119#M757944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have the detailed level kept, for example in another sheet or so. Is it possible to do in the expression of a chart or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should of course included that in my initial question. Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2018 09:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86119#M757944</guid>
      <dc:creator>marcusbohman</dc:creator>
      <dc:date>2018-09-02T09:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on value and give new name</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86120#M757945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem at all - just load the original category as well.&lt;/P&gt;&lt;P&gt;Load Category as OriginalCategory, if(Category = 4 or Category = 5, 'Others',Category) as Category, Value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2018 10:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-value-and-give-new-name/m-p/86120#M757945</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2018-09-02T10:10:10Z</dc:date>
    </item>
  </channel>
</rss>

