<?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 How to improve the expression to sum or average measures over rolling x weeks in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-improve-the-expression-to-sum-or-average-measures-over/m-p/1872416#M71977</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hope to tap your expertise in improving the expression below.&lt;/P&gt;
&lt;P&gt;I am using the following expression in a straight table to report the inventory value on Sat 12am every week, for the past 6 weeks. In the straight table, each column is one measure for the data in that day for that week.&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;$(vInvDate)={"$(=Date(Weekstart(Max($(vInvDate)), 0, 5)))"}&amp;gt;} TotalInventoryUSD)&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;$(vInvDate)={"$(=Date(Weekstart(Max($(vInvDate)), -6, 5)))"}&amp;gt;} TotalInventoryUSD)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to have the average inventory value over the 6 weeks. Instead of add all the 6 sum expression then divided by 6, is there anyway to have a simpler expression to do the same?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 16:53:02 GMT</pubDate>
    <dc:creator>A7R3</dc:creator>
    <dc:date>2024-11-16T16:53:02Z</dc:date>
    <item>
      <title>How to improve the expression to sum or average measures over rolling x weeks</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-improve-the-expression-to-sum-or-average-measures-over/m-p/1872416#M71977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hope to tap your expertise in improving the expression below.&lt;/P&gt;
&lt;P&gt;I am using the following expression in a straight table to report the inventory value on Sat 12am every week, for the past 6 weeks. In the straight table, each column is one measure for the data in that day for that week.&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;$(vInvDate)={"$(=Date(Weekstart(Max($(vInvDate)), 0, 5)))"}&amp;gt;} TotalInventoryUSD)&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;$(vInvDate)={"$(=Date(Weekstart(Max($(vInvDate)), -6, 5)))"}&amp;gt;} TotalInventoryUSD)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I would like to have the average inventory value over the 6 weeks. Instead of add all the 6 sum expression then divided by 6, is there anyway to have a simpler expression to do the same?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-improve-the-expression-to-sum-or-average-measures-over/m-p/1872416#M71977</guid>
      <dc:creator>A7R3</dc:creator>
      <dc:date>2024-11-16T16:53:02Z</dc:date>
    </item>
  </channel>
</rss>

