<?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: Aggregation on full weeks using individual Date field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463372#M99031</link>
    <description>&lt;P&gt;Advanced aggregations with aggr() or TOTAL require native fields and not calculated dimensions. Therefore just replace this calculation with an appropriate field from the calendar.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 11:10:58 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-06-18T11:10:58Z</dc:date>
    <item>
      <title>Aggregation on full weeks using individual Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463167#M99016</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a line chart in an application with two dimensions.&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;IF(Date&amp;lt;Today(0),Date(Weekend(Date),'YYYY-MM-DD'))&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;LostHoursType&lt;/P&gt;
&lt;P&gt;The lines are SUM(LostHours)&lt;/P&gt;
&lt;P&gt;I am trying to add a reference line for the average.&lt;/P&gt;
&lt;P&gt;AVG(AGGR(SUM(LostHours),WeekEnd(Date)))&lt;/P&gt;
&lt;P&gt;Does not work.&lt;/P&gt;
&lt;P&gt;AVG(AGGR(SUM(LostHours),Date))&lt;/P&gt;
&lt;P&gt;Gives me the average for a single Date.&lt;/P&gt;
&lt;P&gt;How can I aggregate on a week worth of data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 19:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463167#M99016</guid>
      <dc:creator>SDT</dc:creator>
      <dc:date>2024-06-17T19:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on full weeks using individual Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463173#M99017</link>
      <description>&lt;P&gt;It is not exactly correct, but I ended up implementing this for now:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AVG(AGGR(SUM(LostHours),Date))*7&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 20:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463173#M99017</guid>
      <dc:creator>SDT</dc:creator>
      <dc:date>2024-06-17T20:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on full weeks using individual Date field</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463372#M99031</link>
      <description>&lt;P&gt;Advanced aggregations with aggr() or TOTAL require native fields and not calculated dimensions. Therefore just replace this calculation with an appropriate field from the calendar.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 11:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-on-full-weeks-using-individual-Date-field/m-p/2463372#M99031</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-18T11:10:58Z</dc:date>
    </item>
  </channel>
</rss>

