<?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 with non consecutive data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Moving-average-with-non-consecutive-data/m-p/1613498#M45688</link>
    <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;Status_Date={"&amp;gt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)-30)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;FONT color="#000000"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&amp;lt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;/FONT&gt;)"}&amp;gt;} ASSETNUM)/ count(distinct {&amp;lt;Status_Date={"&amp;gt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)-30)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;/FONT&gt;)&amp;lt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;/FONT&gt;)"}&amp;gt;} ASSETNUM)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 14:04:22 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-08-17T14:04:22Z</dc:date>
    <item>
      <title>Moving average with non consecutive data</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-with-non-consecutive-data/m-p/1611816#M45484</link>
      <description>&lt;P&gt;I would like to calculate the moving average of counts of my data.&lt;/P&gt;&lt;P&gt;My data describes each time an asset has been inspected/repaired by its AssetNum, so i will have a row for every time an Asset has been visited. Many assets may be visited in one day, but there are days where no assets have been visited&lt;/P&gt;&lt;P&gt;I would like to have a moving average over 30 days, preferably centred on the current day.&lt;/P&gt;&lt;P&gt;I know i could do this with RangeAvg(Above(count(AssetNum),-15,30)) if the data had consecutive dates available.&lt;/P&gt;&lt;P&gt;I have tried this formula to calculate the average over the past 30 days, but the distinct counting of the dates in the range isn't working, can someone offer some advice?&lt;/P&gt;&lt;P&gt;Status_Date is the date, and ASSETNUM is a alphanumeric id for each asset.&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Status_Date={"&amp;gt;=$(=max(Status_Date)-30)&amp;lt;=$(=max(Status_Date))"}&amp;gt;} ASSETNUM)/ count(distinct {&amp;lt;Status_Date={"&amp;gt;=$(=max(Status_Date)-30)&amp;lt;=$(=max(Status_Date))"}&amp;gt;} ASSETNUM)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-with-non-consecutive-data/m-p/1611816#M45484</guid>
      <dc:creator>beaubellamy</dc:creator>
      <dc:date>2024-11-16T04:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving average with non consecutive data</title>
      <link>https://community.qlik.com/t5/App-Development/Moving-average-with-non-consecutive-data/m-p/1613498#M45688</link>
      <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({&amp;lt;Status_Date={"&amp;gt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)-30)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;FONT color="#000000"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&amp;lt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;/FONT&gt;)"}&amp;gt;} ASSETNUM)/ count(distinct {&amp;lt;Status_Date={"&amp;gt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)-30)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;/FONT&gt;)&amp;lt;=$(=&lt;FONT color="#FF0000"&gt;Date(&lt;/FONT&gt;max(Status_Date)&lt;FONT color="#FF0000"&gt;, 'Original Format')&lt;/FONT&gt;)"}&amp;gt;} ASSETNUM)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 14:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Moving-average-with-non-consecutive-data/m-p/1613498#M45688</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-08-17T14:04:22Z</dc:date>
    </item>
  </channel>
</rss>

