<?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 Accumulating count zero when selecting dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655407#M48987</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a line chart that basically count the number of users i have on time line, with accumulating formula:&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;RangeSum(Above(Count({$&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation)&amp;gt;} Distinct UserID), 0, RowNo()))&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when selecting dates in the chart, the numbers are dropping,&amp;nbsp;&lt;BR /&gt;i guess i understand way,&amp;nbsp;&lt;/P&gt;&lt;P&gt;but how can i prevent this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to filter the count with other dimensions but disregard the slicing of the time dimension in the line chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see attached video&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:53:25 GMT</pubDate>
    <dc:creator>gal_polak</dc:creator>
    <dc:date>2024-11-16T03:53:25Z</dc:date>
    <item>
      <title>Accumulating count zero when selecting dates</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655407#M48987</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a line chart that basically count the number of users i have on time line, with accumulating formula:&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino"&gt;RangeSum(Above(Count({$&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation)&amp;gt;} Distinct UserID), 0, RowNo()))&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when selecting dates in the chart, the numbers are dropping,&amp;nbsp;&lt;BR /&gt;i guess i understand way,&amp;nbsp;&lt;/P&gt;&lt;P&gt;but how can i prevent this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to filter the count with other dimensions but disregard the slicing of the time dimension in the line chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see attached video&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655407#M48987</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2024-11-16T03:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating count zero when selecting dates</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655422#M48993</link>
      <description>&lt;P&gt;Try ignoring selection in Date field within the Count() function and then multiply with a dummy expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeSum(Above(
  Count({$&amp;lt;DateField, RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation)&amp;gt;} Distinct UserID)
, 0, RowNo()))

*

Avg({&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation)&amp;gt;} 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 12:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655422#M48993</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-09T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating count zero when selecting dates</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655441#M49000</link>
      <description>&lt;P&gt;So what you suggested didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it seems that this is working:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$(=
RangeSum(Above(
Count({$&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation),Date={'&amp;lt;$(=Min(Date))'}, [Week Start Date]=&amp;gt;} Distinct UserID)
,0,RowNo()))
)

+

RangeSum(Above(Count({$&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation)&amp;gt;} Distinct UserID), 0, RowNo()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically adding the accumulating count&amp;nbsp; up until the selected date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655441#M49000</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2019-12-09T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating count zero when selecting dates</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655443#M49001</link>
      <description>&lt;P&gt;If this is the route you want to go... why do you need RangeSum() in the first part of the expression... this should work too&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$(=Count({$&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation),Date={'&amp;lt;$(=Min(Date))'}, [Week Start Date]=&amp;gt;} Distinct UserID)
)

+

RangeSum(Above(Count({$&amp;lt;RecordSource = {'UserCreated'}, $(=SetAnalysisPopulation)&amp;gt;} Distinct UserID), 0, RowNo()))&lt;/LI-CODE&gt;&lt;P&gt;Having said that, the expression I provided should have worked as well... all you needed was to replace the field you are making selection/s in the first part of the expression.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655443#M49001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-09T13:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulating count zero when selecting dates</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655450#M49003</link>
      <description>&lt;P&gt;I guess you are right,&amp;nbsp;&lt;/P&gt;&lt;P&gt;also tested what you suggested, and it works the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulating-count-zero-when-selecting-dates/m-p/1655450#M49003</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2019-12-09T13:29:41Z</dc:date>
    </item>
  </channel>
</rss>

