<?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: RangeSum or Multiple Sums in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018538#M937915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to My sum({&amp;lt;Field name={'Value'}&amp;gt;}Sales)+&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Field name={'Value'}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;try it in this way&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 07:53:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-12T07:53:05Z</dc:date>
    <item>
      <title>RangeSum or Multiple Sums in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018533#M937910</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 want to sum 2 different amount values in set analysis. However, the 2 amount values are dependent on selections of 2 different fields available in list boxes. I prefer not to use any IF conditions and rather use set analysis. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(RangeSum(If(GetSelectedCount(MonthCurrent) and [Category]='Credit',sum(SalesCurrent * -1)),If(GetSelectedCount(MonthProjected) and [Category]='Credit', Sum(SalesProjected * -1))),'$#,##0'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 21:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018533#M937910</guid>
      <dc:creator />
      <dc:date>2016-02-11T21:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum or Multiple Sums in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018534#M937911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have not tested this, but may be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Sum({&amp;lt;MonthCurrent = {"=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; line-height: 1.5em; font-size: 13.3333px;"&gt;GetSelectedCount(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;MonthCurrent) &amp;gt; 0"}, Category = {'Credit'}&amp;gt;} (SalesCurrent * -1)),&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;MonthProjected = {"=&lt;/SPAN&gt;GetSelectedCount(MonthProjected) &amp;gt; 0"}, Category = {'Credit'}&amp;gt;} (SalesProjected * -1))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 21:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018534#M937911</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-11T21:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum or Multiple Sums in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018535#M937912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! This is coming up correct now. Can we show the sum even if no Months are selected ? i.e if no months are selected from MonthCurrent or MonthProjected, it should show the total sum of MonthCurrent and MonthProjected together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018535#M937912</guid>
      <dc:creator />
      <dc:date>2016-02-11T22:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum or Multiple Sums in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018536#M937913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I know where you are coming from, but could you detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- why you don't want to use the if() statement here?&lt;/P&gt;&lt;P&gt;Since it's not evaluated per record, there is no big performance impact here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How Category field is related to your fact / sales fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For checking the selection in month fields, I could imagine either a straight value assignment using an GetfieldSelections() dollar sign expansion in a field modifier (like&amp;nbsp; &lt;EM&gt;MonthCurrent = {$(=GetFieldSelections(MonthCurrent,',',12))}&lt;/EM&gt; ) or shorter a field name field modifier ( &lt;EM&gt;MonthCurrent = MonthCurrentSelector )&lt;/EM&gt; using a data island or alternate state foryour selections (a solution which you don't like, if I remember correctly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a maintenance point of view, I don't think the set analysis expression will be easier to understand than the above posted expression (given that I think I know some things about your model).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018536#M937913</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T22:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum or Multiple Sums in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018537#M937914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should be default QV behaviour. Just remove the field modifier for months field or the if() statement that checks selections in months fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018537#M937914</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-12T07:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum or Multiple Sums in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018538#M937915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to My sum({&amp;lt;Field name={'Value'}&amp;gt;}Sales)+&lt;SPAN style="font-size: 13.3333px;"&gt; sum({&amp;lt;Field name={'Value'}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;try it in this way&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-or-Multiple-Sums-in-Set-Analysis/m-p/1018538#M937915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T07:53:05Z</dc:date>
    </item>
  </channel>
</rss>

