<?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' in text &amp; image in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-average-in-text-image/m-p/853174#M11778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to show an average of the last 30 days work of data. I can't get it to work in Text and Image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a table, here's what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(top([my_field], 1, 30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows my data in the table OK and calculates the correct average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't want this in a table, I want it in a Text &amp;amp; Image box. But when I put the same expression in Text &amp;amp; Image, I get a null output. My guess is that this has something to do with sorting. Of course, the documentation is of no help whatsoever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other way I can think of doing this is to use firstsortedvalue 30 times, but this seems to be an awful solution. I thought of using a set expression, but I can't for the life of me work out what the set expression would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My underlying data is in this form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, my_field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 22:28:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-16T22:28:11Z</dc:date>
    <item>
      <title>'Rolling average' in text &amp; image</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-average-in-text-image/m-p/853174#M11778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to show an average of the last 30 days work of data. I can't get it to work in Text and Image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a table, here's what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(top([my_field], 1, 30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows my data in the table OK and calculates the correct average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't want this in a table, I want it in a Text &amp;amp; Image box. But when I put the same expression in Text &amp;amp; Image, I get a null output. My guess is that this has something to do with sorting. Of course, the documentation is of no help whatsoever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other way I can think of doing this is to use firstsortedvalue 30 times, but this seems to be an awful solution. I thought of using a set expression, but I can't for the life of me work out what the set expression would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My underlying data is in this form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, my_field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 22:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-average-in-text-image/m-p/853174#M11778</guid>
      <dc:creator />
      <dc:date>2015-04-16T22:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: 'Rolling average' in text &amp; image</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-average-in-text-image/m-p/853175#M11779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;most likely is because it has more than one value, that the table box is not working&lt;/P&gt;&lt;P&gt;you can do set analysis this way &lt;/P&gt;&lt;P&gt;avg({&amp;lt; Date= {"&amp;gt;=$(=(today()-30))&amp;lt;=$(=(today()))"}&amp;gt;}SHIPPEDQTY) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 04:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-average-in-text-image/m-p/853175#M11779</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-17T04:46:57Z</dc:date>
    </item>
  </channel>
</rss>

