<?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: Average for a week based on selected date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930629#M321780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the attachment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hirish&lt;IMG alt="7days.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105890_7days.PNG" style="height: 219px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 12:20:45 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2015-11-18T12:20:45Z</dc:date>
    <item>
      <title>Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930623#M321774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the Average for the 5 days say for example in the below table. If i select Report Date as 25/09/2015 then my average should display as&amp;nbsp; 11.4 in the text box i.e. avg of 21/09/2015 to 25/09/2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 294px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;ID&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;ReportDate&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Sum(CallsAnswered)&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top-style: none; text-align: center;"&gt;10658&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;21/09/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top-style: none; text-align: center;"&gt;10658&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;22/09/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top-style: none; text-align: center;"&gt;10658&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;23/09/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top-style: none; text-align: center;"&gt;10658&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;24/09/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="17" style="border-top-style: none; text-align: center;"&gt;10658&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;25/09/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930623#M321774</guid>
      <dc:creator>makrishnaraj</dc:creator>
      <dc:date>2015-11-18T10:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930624#M321775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try sth like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg({&amp;lt;ReportDate={'&amp;gt;=$(=date(max(YourDateField)-5,'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;$(=date(max(YourDateField),'DD/MM/YYYY')&lt;/SPAN&gt;&amp;gt;} CallAnswered)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930624#M321775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930625#M321776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you Information, as you have mentioned &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(YourDateField),&lt;/SPAN&gt;&amp;nbsp; the DateField is also a ReportDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930625#M321776</guid>
      <dc:creator>makrishnaraj</dc:creator>
      <dc:date>2015-11-18T10:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930626#M321777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay, simply try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=avg({&amp;lt;ReportDate={'&amp;gt;=$(=date(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ReportDate&lt;/SPAN&gt;)-5,'DD/MM/YYYY')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;$(=date(max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ReportDate&lt;/SPAN&gt;),'DD/MM/YYYY')&lt;/SPAN&gt;&amp;gt;} CallAnswered)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930626#M321777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T10:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930627#M321778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930627#M321778</guid>
      <dc:creator />
      <dc:date>2015-11-18T10:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930628#M321779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the below formula &amp;amp; it worked for me.&lt;/P&gt;&lt;P&gt;=(Sum({&amp;lt;ReportDate={"&amp;gt;=$(=date(max(ReportDate)-5))&amp;lt;=$(=date(max(ReportDate)))"}&amp;gt;} CallsAnswered))/5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 11:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930628#M321779</guid>
      <dc:creator>makrishnaraj</dc:creator>
      <dc:date>2015-11-18T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average for a week based on selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930629#M321780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the attachment .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hirish&lt;IMG alt="7days.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105890_7days.PNG" style="height: 219px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 12:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-for-a-week-based-on-selected-date/m-p/930629#M321780</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-11-18T12:20:45Z</dc:date>
    </item>
  </channel>
</rss>

