<?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 ordering in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-ordering/m-p/1683802#M52070</link>
    <description>&lt;P&gt;I finally got this one.&amp;nbsp; &amp;nbsp;Cumulative total w/ no trailing line and months in the correct order using a sort expression.&amp;nbsp; Posting here in case someone else has a similar issue.&amp;nbsp; May not be the prettiest solution, but it works so I'm going with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(SUM({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[MIPR SENT OBLI AMT])+SUM({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[CC SENT AMOUNT])= 0 ,'-',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(TOTAL Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[MIPR SENT OBLI AMT]),0,RowNo()))+RangeSum(Above(TOTAL Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[CC SENT AMOUNT]),0,RowNo())))&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 14:31:48 GMT</pubDate>
    <dc:creator>RottieGirl</dc:creator>
    <dc:date>2020-03-11T14:31:48Z</dc:date>
    <item>
      <title>Aggr ordering</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-ordering/m-p/1682950#M51991</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can someone help me with the ordering when using AGGR()? (I'm am very new to qlik so I hopefully I'm using the correct terminololgy.)&lt;/P&gt;&lt;P&gt;I'm trying to calculate the cumulative total for the FY using the expression below:&amp;nbsp; (red line only, the other two are done using a different expression).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(rangesum(Above(total Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[MIPR SENT OBLI AMT]),0,RowNo())),[REPORT DATE.autoCalendar.FiscalMonth])&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;+aggr(rangesum(Above(total Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[CC SENT AMOUNT]),0,RowNo())),[REPORT DATE.autoCalendar.FiscalMonth])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, it will not sort according to the Fiscal Year, even when I use a sort expression.&amp;nbsp; The months are shown correctly, but the Dec and Feb totals are swapped.&lt;/P&gt;&lt;P&gt;My script editor shows:&amp;nbsp;SET FirstMonthOfYear=10; --- if that helps.&lt;/P&gt;&lt;P&gt;I've tried every setting I can find to force the months to order correctly, but nothing has worked so far.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chart 1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29766i78D07463F53EC22E/image-size/large?v=v2&amp;amp;px=999" role="button" title="chart 1.png" alt="chart 1.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Alternative calculations have worked for both the cumulative total and the month order, but then I get a trailing line across the chart for the rest of the FY, which I do not want:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(TOTAL Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[MIPR SENT OBLI AMT]),0,RowNo(TOTAL)))+RangeSum(Above(TOTAL Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[CC SENT AMOUNT]),0,RowNo(TOTAL)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chart.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29767i87398C2B642E79E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="chart.png" alt="chart.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(FYI - This is a large data set using a data connection to our financial system, so I have been hesitant to change anything in the script editor....not sure what can be changed w/o messing up the data connection. We are trying to automate this data pull for monthly reporting.)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-ordering/m-p/1682950#M51991</guid>
      <dc:creator>RottieGirl</dc:creator>
      <dc:date>2024-11-16T03:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr ordering</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-ordering/m-p/1683802#M52070</link>
      <description>&lt;P&gt;I finally got this one.&amp;nbsp; &amp;nbsp;Cumulative total w/ no trailing line and months in the correct order using a sort expression.&amp;nbsp; Posting here in case someone else has a similar issue.&amp;nbsp; May not be the prettiest solution, but it works so I'm going with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(SUM({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[MIPR SENT OBLI AMT])+SUM({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[CC SENT AMOUNT])= 0 ,'-',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(TOTAL Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[MIPR SENT OBLI AMT]),0,RowNo()))+RangeSum(Above(TOTAL Sum({$&amp;lt;[REPORT DATE.autoCalendar.FiscalMonth]={'Oct','Nov','Dec','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep'},[REPORT DATE.autoCalendar.FiscalYear]={'FY2020'}&amp;gt;}[CC SENT AMOUNT]),0,RowNo())))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 14:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-ordering/m-p/1683802#M52070</guid>
      <dc:creator>RottieGirl</dc:creator>
      <dc:date>2020-03-11T14:31:48Z</dc:date>
    </item>
  </channel>
</rss>

