<?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: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1543241#M39179</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Just coming back to this so people of the future can look back at this:&lt;/P&gt;&lt;P&gt;I was able to resolve my issue by configuring the sorting order of the chart.&lt;/P&gt;&lt;P&gt;Under dimensions, I set #1 to be the class(aggr()) and #2 to be the timestamp.date&lt;/P&gt;&lt;P&gt;Under sorting order, I set #1 to timestamp.date, #2 to the class(aggr())&lt;/P&gt;&lt;P&gt;By doing this, a healthy overlay of % distribution was born.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 827px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5798i0ABDC425E02BDCCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 19:59:15 GMT</pubDate>
    <dc:creator>Sazabi</dc:creator>
    <dc:date>2019-02-12T19:59:15Z</dc:date>
    <item>
      <title>Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a Chart</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534133#M38484</link>
      <description>&lt;P&gt;Hello Qlik Friends!!&lt;/P&gt;&lt;P&gt;I am looking to do a date overlay of cumulative&amp;nbsp; totals. (one line of cumulative&amp;nbsp; totals per day on a line chart).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My 1st dimension&lt;/STRONG&gt;: a calculated dimension using the class() function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My 2nd dimension&lt;/STRONG&gt;:&amp;nbsp; a date timestamp field.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My measure&lt;/STRONG&gt;: &lt;SPAN&gt;rangesum(above(Count(field),0,rowno()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Without the 2nd dimension, the linechart is fine as a summary, but once that 2nd dimension is put in, it does not calculate correctly. It seems the numbers aren't being accumulated by rangesum()..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Briefly scanning across the community, according to some other threads (like &lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/RangeSum-with-2-Dimensions/m-p/15716#M1100" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/RangeSum-with-2-Dimensions/m-p/15716#M1100&lt;/A&gt; and&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Rangesum-Above-with-Multiple-Dimensions/m-p/45217#M3041" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Rangesum-Above-with-Multiple-Dimensions/m-p/45217#M3041&lt;/A&gt;), I am supposed to aggr() my measure by the 2 dimensions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Therefore my new measure should look like :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;aggr(rangesum(above(Count(&lt;/SPAN&gt;&lt;SPAN&gt;field&lt;/SPAN&gt;&lt;SPAN&gt;),0,rowno())),class(),timestampfield)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, they are turning my values null for me.&lt;/P&gt;&lt;P&gt;I wouldn't want to use TOTAL in this case either as I am looking for the cumulative sum by dates.&lt;/P&gt;&lt;P&gt;Are we able to aggr() by a class() function?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;L&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 21:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534133#M38484</guid>
      <dc:creator>Sazabi</dc:creator>
      <dc:date>2019-01-23T21:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534224#M38490</link>
      <description>&lt;P&gt;As Qlik funda: We can't use calculated dimensions over Aggr(). So, I suggest you to directly use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(rangesum(above(Count(field),0,rowno())),Dimension,timestampfield) &lt;FONT color="#339966"&gt;// Class() always need one dimension, For that you can define dimension name&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 06:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534224#M38490</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-01-24T06:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534482#M38498</link>
      <description>&lt;P&gt;Would you be able to share an image of what you get when you use this&lt;/P&gt;&lt;PRE&gt;RangeSum(Above(Count(field), 0, RowNo()))&lt;/PRE&gt;&lt;P&gt;and point out what is not right and what would you want to get instead?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 13:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534482#M38498</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-24T13:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534709#M38525</link>
      <description>&lt;P&gt;Sure Sunny!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 1 Dimension :&lt;/P&gt;&lt;P&gt;class(aggr(sum(field),field2),2)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4433i9C18E089FACEFD24/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 2 Dimensions:&lt;/P&gt;&lt;P&gt;1. class(aggr(sum(field),field2),2)&lt;/P&gt;&lt;P&gt;2. timestamp.autoCalendar.Date&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4432i3880B8067516FF45/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal I am trying to get to (example):&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4434i3D7439D15895C850/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first example with 1 dimension is perfect! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, we&amp;nbsp;can see in the second example that when the chart is broken out by date, rangesum appears to not be doing its job...even when filtered to a single date.&lt;/P&gt;&lt;P&gt;Ideally I want to see the first example broken out per day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534709#M38525</guid>
      <dc:creator>Sazabi</dc:creator>
      <dc:date>2019-01-24T18:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534715#M38527</link>
      <description>&lt;P&gt;Not sure if this will work or not, but can you try this&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;Aggr(&lt;BR /&gt;&lt;/FONT&gt;     RangeSum(Above(Count(field), 0, RowNo()))&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;, &lt;SPAN&gt;timestamp.autoCalendar.Date, field2)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534715#M38527</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-24T18:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534722#M38528</link>
      <description>&lt;P&gt;Will do Sunny!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, is field2 =&amp;nbsp;class(aggr(sum(field),field2),2)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;is it the field2 within the class()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534722#M38528</guid>
      <dc:creator>Sazabi</dc:creator>
      <dc:date>2019-01-24T18:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534724#M38529</link>
      <description>&lt;P&gt;field2 within Class()... second option....&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1534724#M38529</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-24T18:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1535362#M38601</link>
      <description>&lt;P&gt;Hi Sunny, here is what it looks like with 1 and 2 days selected with your recommended expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4558iFE02ACE1413FCD10/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4556iA9ABCA5D1DA86BA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1535362#M38601</guid>
      <dc:creator>Sazabi</dc:creator>
      <dc:date>2019-01-25T17:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1535376#M38605</link>
      <description>&lt;P&gt;Not what I expected... would you be able to share a sample to play around with this?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 18:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1535376#M38605</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-25T18:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1543241#M39179</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Just coming back to this so people of the future can look back at this:&lt;/P&gt;&lt;P&gt;I was able to resolve my issue by configuring the sorting order of the chart.&lt;/P&gt;&lt;P&gt;Under dimensions, I set #1 to be the class(aggr()) and #2 to be the timestamp.date&lt;/P&gt;&lt;P&gt;Under sorting order, I set #1 to timestamp.date, #2 to the class(aggr())&lt;/P&gt;&lt;P&gt;By doing this, a healthy overlay of % distribution was born.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 827px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5798i0ABDC425E02BDCCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 19:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1543241#M39179</guid>
      <dc:creator>Sazabi</dc:creator>
      <dc:date>2019-02-12T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Measure Expression by class()  When Dealing with Rangesum() Across 2 Dimensions in a C</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1543571#M39198</link>
      <description>&lt;P&gt;Would you be able to share a qvf file to show what you did? Like a sample file&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 12:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregate-Measure-Expression-by-class-When-Dealing-with-Rangesum/m-p/1543571#M39198</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-13T12:08:45Z</dc:date>
    </item>
  </channel>
</rss>

