<?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 Cumulative percentage with Rangesum problem with set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807467#M65726</link>
    <description>&lt;P&gt;Hi, I'm having some trouble with a rangesum that calculates a cumulative percentage and trying to apply set analysis.&amp;nbsp; This is used in a chart to show a percent that met a criteria against the total set.&amp;nbsp; The data was being filtered in the load script to just take the last 7 days and worked as expected in this case.&amp;nbsp; Request was made for an additional view over 6 months so I changed the load script to bring in 6 months of data and added a field that gets set as an indicator if the data is within the last 7 days thinking I just needed to add some simple set analysis to the original chart.&amp;nbsp; When I did this, it only calculates the values for the last 7 days correctly but I get an entry for every date, not jus the ones that meet the set analysis criteria.&amp;nbsp; I don't want all the extra dates that show zeros.&lt;/P&gt;&lt;P&gt;In this image the chart shows the dates with no values, highlighted in yellow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wayneantinore-a_0-1620844808402.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54840iF1325ED8319E29D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wayneantinore-a_0-1620844808402.png" alt="wayneantinore-a_0-1620844808402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the rangesum function with the set analysis&lt;/P&gt;&lt;P&gt;Rangesum(above(Count({$&amp;lt;Last7Days={'Y'}&amp;gt;}[Order#])/ Aggr(nodistinct Count({$&amp;lt;Last7Days={'Y'}&amp;gt;}[Order#]),[Date Received]),0,RowNo()))&lt;/P&gt;&lt;P&gt;I've changed the set analysis condition to look at the [Date Received] field specifically and get the same results.&amp;nbsp; If I remove the set analysis condition from the Aggr I get the same results so it's like it doesn't even apply the set analysis there.&amp;nbsp; Thanks in advance for any help.&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 18:45:59 GMT</pubDate>
    <dc:creator>wayne-a</dc:creator>
    <dc:date>2021-05-12T18:45:59Z</dc:date>
    <item>
      <title>Cumulative percentage with Rangesum problem with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807467#M65726</link>
      <description>&lt;P&gt;Hi, I'm having some trouble with a rangesum that calculates a cumulative percentage and trying to apply set analysis.&amp;nbsp; This is used in a chart to show a percent that met a criteria against the total set.&amp;nbsp; The data was being filtered in the load script to just take the last 7 days and worked as expected in this case.&amp;nbsp; Request was made for an additional view over 6 months so I changed the load script to bring in 6 months of data and added a field that gets set as an indicator if the data is within the last 7 days thinking I just needed to add some simple set analysis to the original chart.&amp;nbsp; When I did this, it only calculates the values for the last 7 days correctly but I get an entry for every date, not jus the ones that meet the set analysis criteria.&amp;nbsp; I don't want all the extra dates that show zeros.&lt;/P&gt;&lt;P&gt;In this image the chart shows the dates with no values, highlighted in yellow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wayneantinore-a_0-1620844808402.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54840iF1325ED8319E29D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wayneantinore-a_0-1620844808402.png" alt="wayneantinore-a_0-1620844808402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the rangesum function with the set analysis&lt;/P&gt;&lt;P&gt;Rangesum(above(Count({$&amp;lt;Last7Days={'Y'}&amp;gt;}[Order#])/ Aggr(nodistinct Count({$&amp;lt;Last7Days={'Y'}&amp;gt;}[Order#]),[Date Received]),0,RowNo()))&lt;/P&gt;&lt;P&gt;I've changed the set analysis condition to look at the [Date Received] field specifically and get the same results.&amp;nbsp; If I remove the set analysis condition from the Aggr I get the same results so it's like it doesn't even apply the set analysis there.&amp;nbsp; Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 18:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807467#M65726</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2021-05-12T18:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative percentage with Rangesum problem with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807488#M65729</link>
      <description>&lt;P&gt;Have you tried un-setting the "Data handling"-&amp;gt;"Include zero values" or in the dimension use an expression and suppress Nulls&lt;/P&gt;&lt;P&gt;If (Last7Days='Y',[Date Received],Null())&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807488#M65729</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2021-05-12T19:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative percentage with Rangesum problem with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807693#M65745</link>
      <description>&lt;P&gt;Jwjackso thank you very much!&amp;nbsp; Setting the Data handling to not include zero values did it.&amp;nbsp; I completely missed that option.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 10:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-percentage-with-Rangesum-problem-with-set-analysis/m-p/1807693#M65745</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2021-05-13T10:57:07Z</dc:date>
    </item>
  </channel>
</rss>

