<?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: Moving average in a line chart with RangeAVG in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1723669#M55071</link>
    <description>&lt;P&gt;Can you try this Michael -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(
  RangeAvg(
  Below(
  Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)
  , 0,3))
  , Vraag, (WeekYear, (NUMERIC)))&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(
  RangeAvg(
  Above(
  Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)
  , 0,3))
  , Vraag, (WeekYear, (NUMERIC)))&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 30 Jun 2020 18:26:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-06-30T18:26:28Z</dc:date>
    <item>
      <title>Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722233#M54954</link>
      <description>&lt;P&gt;Hi fellow developers,&lt;/P&gt;&lt;P&gt;I'm trying to show several measures in a single line chart.&lt;/P&gt;&lt;P&gt;For 3 categories I want to show the moving average of the past three weeks.&lt;/P&gt;&lt;P&gt;This works in a pivot table when I put the categories in the columns and this formula in the measure:&lt;/P&gt;&lt;P&gt;RangeAvg(&lt;BR /&gt;&amp;nbsp; Below(&lt;BR /&gt;&amp;nbsp; Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)&lt;BR /&gt;&amp;nbsp; , 0,3))&lt;/P&gt;&lt;P&gt;However, this does not work in the line chart. I think this has to do because of the categories.&lt;/P&gt;&lt;P&gt;That is why I tried using an AGGR function just like here&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-App-Development/Rangesum-Above-in-Line-Chart/td-p/1645489" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-App-Development/Rangesum-Above-in-Line-Chart/td-p/1645489. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;These numbers are not correct unfortunately in the pivot table - it also does not work in the line chart.&lt;/P&gt;&lt;P&gt;Aggr(&lt;BR /&gt;&amp;nbsp; RangeAvg(&lt;BR /&gt;&amp;nbsp; Below(&lt;BR /&gt;&amp;nbsp; Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)&lt;BR /&gt;&amp;nbsp; , 0,3))&lt;BR /&gt;&amp;nbsp; , Vraag, WeekYear)&lt;/P&gt;&lt;P&gt;I tried playing with above/below and week/weekyear but that does not help.&lt;/P&gt;&lt;P&gt;Does anyone know how to fix this? Is my syntax wrong? I would like to prevent myself adding a seperate measure for every category because I would have to do it for a lot charts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;Here is an example of what I want to do with the line chart, and the scores in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot line chart rangeavg.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36271iCE8D9743445A2343/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot line chart rangeavg.png" alt="screenshot line chart rangeavg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my line chart settings. My categories are in 'Statements' and I've used a if statement to pick a few categories.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot line chart rangeavg settings.png" style="width: 248px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36272i082275428BE387B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot line chart rangeavg settings.png" alt="screenshot line chart rangeavg settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722233#M54954</guid>
      <dc:creator>escaper-</dc:creator>
      <dc:date>2024-11-16T18:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722729#M54994</link>
      <description>&lt;P&gt;What version of Qlik Sense are you running?&lt;BR /&gt;&lt;BR /&gt;As of February 2020 release, modifiers like Moving Averages are configurable via the UI for Table, Bar, Combo, and Line Charts.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Measures/modifiers.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Measures/modifiers.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qliktom_0-1593200529759.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36390i95180D41915579F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qliktom_0-1593200529759.png" alt="qliktom_0-1593200529759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 19:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722729#M54994</guid>
      <dc:creator>QlikTom</dc:creator>
      <dc:date>2020-06-26T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722734#M54995</link>
      <description>&lt;P&gt;We're on nov 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The page you shared shows an interesting picture of multiple moving averages. I will definitely explore the option to upgrade the server.&lt;/P&gt;&lt;P&gt;Does this mean it wasn't possible before?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 20:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722734#M54995</guid>
      <dc:creator>escaper-</dc:creator>
      <dc:date>2020-06-26T20:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722743#M54996</link>
      <description>&lt;P&gt;It was possible, but required you to author your own expressions.&lt;/P&gt;&lt;P&gt;As you can see, selecting Moving Average from a dropdown menu and choosing in how many steps back you want to go is a little easier. I just wanted to confirm you were doing it the hard way if you didn't have to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe there are several posts on the community about doing this this via expression:&lt;BR /&gt;This one looks promising, it is QlikView, but the expression syntax is the same.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;P.S. a lot more than just moving averages have been added since Nov 2019, you can keep an eye on the new stuff here:&lt;BR /&gt;&lt;A href="https://demos.qlik.com/qliksense/WhatsNew" target="_blank"&gt;https://demos.qlik.com/qliksense/WhatsNew&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 20:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1722743#M54996</guid>
      <dc:creator>QlikTom</dc:creator>
      <dc:date>2020-06-26T20:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1723669#M55071</link>
      <description>&lt;P&gt;Can you try this Michael -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(
  RangeAvg(
  Below(
  Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)
  , 0,3))
  , Vraag, (WeekYear, (NUMERIC)))&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(
  RangeAvg(
  Above(
  Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)
  , 0,3))
  , Vraag, (WeekYear, (NUMERIC)))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1723669#M55071</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-06-30T18:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1726808#M55398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying and taking a look. What does adding the NUMERIC part do?&lt;/P&gt;&lt;P&gt;Unfortunately it did not affect the result. It gives me the same line as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aggr(&lt;BR /&gt;RangeAvg(&lt;BR /&gt;Below(&lt;BR /&gt;Sum( {$ &amp;lt;Merk={'BrandX'}, Antwoord={'1'} &amp;gt;} Weight)/Sum({$ &amp;lt;Merk={'BrandX'}, Antwoord-={'Niet beantwoord'} &amp;gt;} Weight)&lt;BR /&gt;, 0,3))&lt;BR /&gt;, Vraag, WeekYear)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a workaround by only showing one line in the line chart and the server update will be planned later to try the new feature.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 12:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1726808#M55398</guid>
      <dc:creator>escaper-</dc:creator>
      <dc:date>2020-07-10T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1726880#M55404</link>
      <description>&lt;P&gt;You can read about NUMERIC part here -&amp;gt;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-sortable-Aggr-function-is-finally-here/ba-p/1470262" target="_blank" rel="noopener"&gt;The sortable Aggr function is finally here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1726880#M55404</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-07-10T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average in a line chart with RangeAVG</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1732440#M55906</link>
      <description>&lt;P&gt;As this challenge is easier solved in a more recent version of Qlik Sense (as has been posted), I suggest we put upgrading on my ToDo list. I will be back on your site next week. It should be fine to kick the version to April 2020 SP5 without much trouble.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 12:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-in-a-line-chart-with-RangeAVG/m-p/1732440#M55906</guid>
      <dc:creator>onnoemergo</dc:creator>
      <dc:date>2020-07-31T12:56:44Z</dc:date>
    </item>
  </channel>
</rss>

