<?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: Aggr() and multiple &amp;lt;set modifier&amp;gt;s in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298702#M27550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on various things if and how missing values and NULL's could be displayed. Maybe it's enough to disable the option of hiding NULL within the object-properties in tab presentation. Otherwise you could try to include your simplified and working expressions within the aggr again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 13:02:03 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-05-30T13:02:03Z</dc:date>
    <item>
      <title>Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298694#M27542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am visualizing a value for each month of current year (including a start value). Usually this works with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=vValueStart +Aggr(RangeSum(Above(total Sum({$&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Year={$(=vYear)},Month_nr={'&amp;lt;=12'}&amp;gt;&lt;SPAN style="font-size: 13.3333px;"&gt;}Value),0,RowNo(total))),Month_nr)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want now is to do some calculations, like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=vValueStart &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;+Aggr(RangeSum(Above(total Sum({$&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Type={1},Year={$(=vYear)},Month_nr={'&amp;lt;=12'}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;+&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Type={2},&lt;/SPAN&gt;Year={$(=vYear)},Month_nr={'&amp;lt;=12'}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;-&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Type={3},&lt;/SPAN&gt;Year={$(=vYear)},Month_nr={'&amp;lt;=12'}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;-&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Type={4},&lt;/SPAN&gt;Year={$(=vYear)},Month_nr={'&amp;lt;=12'}&amp;gt;&lt;SPAN style="font-size: 13.3333px;"&gt;}Value),0,RowNo(total))),Month_nr)&lt;/SPAN&gt;&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;However, this calculation does not work. I think it has to do with the combination of Aggr() and multiple &amp;lt;set modifier&amp;gt; but I can't figure out the solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janneke.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 20:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298694#M27542</guid>
      <dc:creator>Janneke</dc:creator>
      <dc:date>2021-12-22T20:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298695#M27543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure how you want to combine the different Type values but maybe the following does what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=vValueStart &lt;/P&gt;&lt;P&gt;+Aggr(RangeSum(Above(total Sum({$&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Type=&lt;STRONG&gt;{1,2}-{3,4}&lt;/STRONG&gt;,Year={$(=vYear)},Month_nr={'&amp;lt;=12'}&amp;gt;&lt;SPAN style="font-size: 13.3333px;"&gt;} Value),0,RowNo(total))),Month_nr)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 13:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298695#M27543</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-19T13:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298696#M27544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In lay-man words, what are you trying to do here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 13:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298696#M27544</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-19T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298697#M27545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I have different types of values. Some of them need to be added to the startvalue and some need to be subtracted. It is not only the type that is different. There are multiple dimensions that are included in what I simplified as Type = {1}.&lt;/P&gt;&lt;P&gt;I want a qraph that shows all the months of the year, but the values can only be shown for the months that are already passed (for now up to May). That is why I have the Aggr and RangeSum around the set analysis.&lt;/P&gt;&lt;P&gt;Hope you understand what I would like to achieve here.&lt;/P&gt;&lt;P&gt;Greetings, Janneke.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 13:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298697#M27545</guid>
      <dc:creator>Janneke</dc:creator>
      <dc:date>2017-05-23T13:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298698#M27546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thank you for your response, but this is not working for me.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have different types of values. Some of them need to be added to the startvalue and some need to be subtracted. It is not only the type that is different. There are multiple dimensions that are included in what I simplified as Type = {1}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Do you have another approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards, Janneke.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 13:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298698#M27546</guid>
      <dc:creator>Janneke</dc:creator>
      <dc:date>2017-05-23T13:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298699#M27547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide some raw data and the output you are expecting to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 13:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298699#M27547</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-23T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298700#M27548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it makes it not clearer what do you want to do. If I look on your answer to Sunny I'm not sure that you will need the aggr() and the above(). Periods in the future could be excluded by other ways - in a check that the date is smaller than today() or by using flags in tthe master-calendar or just by checking if certain data exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you try to simplify your approach - beginning just with your inner sum() and splitting your Type-conditions into several expressions, like here simplified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Type = {1}&amp;gt;} Value) + sum({&amp;lt; Type = {2}&amp;gt;} Value) - sum({&amp;lt; Type = {3}&amp;gt;} Value) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If those single-parts work like expected you could think of combining them and to shorten/simplify them into lesser expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 14:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298700#M27548</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-23T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298701#M27549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;You are right. That makes it easier. &lt;/P&gt;&lt;P&gt;Only problem with leaving the aggr() and above() out, is that the future months of the year will have the data of the last month, and I want those months visible on the graph, but without data.&lt;/P&gt;&lt;P&gt;Thank you for your help so far.&lt;/P&gt;&lt;P&gt;Janneke.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 12:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298701#M27549</guid>
      <dc:creator>Janneke</dc:creator>
      <dc:date>2017-05-30T12:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() and multiple &lt;set modifier&gt;s</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298702#M27550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on various things if and how missing values and NULL's could be displayed. Maybe it's enough to disable the option of hiding NULL within the object-properties in tab presentation. Otherwise you could try to include your simplified and working expressions within the aggr again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 13:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-multiple-lt-set-modifier-gt-s/m-p/1298702#M27550</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-30T13:02:03Z</dc:date>
    </item>
  </channel>
</rss>

