<?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 Rolling Average Stacked Bar Causing Duplication Within Trending Axis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-Average-Stacked-Bar-Causing-Duplication-Within-Trending/m-p/2092009#M89514</link>
    <description>&lt;P&gt;Hi - I have a horizontally stacked bar chart which is stacked by field = Status the measure is counting IDs&lt;/P&gt;
&lt;P&gt;The date axis is populated using a variable:&amp;nbsp;[$(=$(vDateAxis))] which is populated by a dropdown.&lt;/P&gt;
&lt;P&gt;I am trying to calculate a 3 period rolling average. i.e. if monthly is selected it would look at current month plus previous 2 months and do an average, same for year, same for quarter etc.&lt;/P&gt;
&lt;P&gt;I am having an issue whereby the months get duplicated when trying my expression:&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="bc5891_1-1688981843313.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111882i2BF3C37112C496C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bc5891_1-1688981843313.png" alt="bc5891_1-1688981843313.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The measure I am using is :&lt;BR /&gt;Aggr(nodistinct RangeAvg(Above(Count(distinct {&amp;lt;[$(=$(vDateAxis))]&amp;gt;}[ID]),0,2)), ([$(=$(vDateAxis))], (Numeric)))&lt;/P&gt;
&lt;P&gt;vDateAxis is the variable which populated the&amp;nbsp;Date axis and .&amp;nbsp; The date axis populates the axis correctly, but when this expression is used the duplication happens.&lt;BR /&gt;&lt;BR /&gt;I cannot share my app unfortunately but any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2023 09:41:59 GMT</pubDate>
    <dc:creator>bc5891</dc:creator>
    <dc:date>2023-07-10T09:41:59Z</dc:date>
    <item>
      <title>Rolling Average Stacked Bar Causing Duplication Within Trending Axis</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Average-Stacked-Bar-Causing-Duplication-Within-Trending/m-p/2092009#M89514</link>
      <description>&lt;P&gt;Hi - I have a horizontally stacked bar chart which is stacked by field = Status the measure is counting IDs&lt;/P&gt;
&lt;P&gt;The date axis is populated using a variable:&amp;nbsp;[$(=$(vDateAxis))] which is populated by a dropdown.&lt;/P&gt;
&lt;P&gt;I am trying to calculate a 3 period rolling average. i.e. if monthly is selected it would look at current month plus previous 2 months and do an average, same for year, same for quarter etc.&lt;/P&gt;
&lt;P&gt;I am having an issue whereby the months get duplicated when trying my expression:&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="bc5891_1-1688981843313.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/111882i2BF3C37112C496C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bc5891_1-1688981843313.png" alt="bc5891_1-1688981843313.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The measure I am using is :&lt;BR /&gt;Aggr(nodistinct RangeAvg(Above(Count(distinct {&amp;lt;[$(=$(vDateAxis))]&amp;gt;}[ID]),0,2)), ([$(=$(vDateAxis))], (Numeric)))&lt;/P&gt;
&lt;P&gt;vDateAxis is the variable which populated the&amp;nbsp;Date axis and .&amp;nbsp; The date axis populates the axis correctly, but when this expression is used the duplication happens.&lt;BR /&gt;&lt;BR /&gt;I cannot share my app unfortunately but any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 09:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Average-Stacked-Bar-Causing-Duplication-Within-Trending/m-p/2092009#M89514</guid>
      <dc:creator>bc5891</dc:creator>
      <dc:date>2023-07-10T09:41:59Z</dc:date>
    </item>
  </channel>
</rss>

