<?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 Average last three days except Sunday in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906471#M1002274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi because of your help in my last discussion I set the following expression in order to get the average of sales in the last 3 three days given a particular date vDateRotura&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14333494568462619 jive_text_macro" jivemacro_uid="_14333494568462619" modifiedtitle="true"&gt;
&lt;P&gt; sum({&amp;lt;CalendarDate={"&amp;gt;=$(=max(date(vDateRotura-3)))&amp;lt;=$(=max(date(vDateRotura-1)))"}&amp;gt; }&amp;nbsp; VENTAS.Peso)&lt;/P&gt;
&lt;P&gt;/Count(DISTINCT {&amp;lt;CalendarDate={"&amp;gt;=$(=max(date(vDateRotura-3)))&amp;lt;=$(=max(date(vDateRotura-1)))"}&amp;gt; }&amp;nbsp; CalendarDate)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I would like to achive is the same expression but excluding the sundays. E.g. If the given date falls on Thrusday I want the average of previous Friday+Saturday+Monday.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 16:42:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-03T16:42:30Z</dc:date>
    <item>
      <title>Average last three days except Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906471#M1002274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi because of your help in my last discussion I set the following expression in order to get the average of sales in the last 3 three days given a particular date vDateRotura&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14333494568462619 jive_text_macro" jivemacro_uid="_14333494568462619" modifiedtitle="true"&gt;
&lt;P&gt; sum({&amp;lt;CalendarDate={"&amp;gt;=$(=max(date(vDateRotura-3)))&amp;lt;=$(=max(date(vDateRotura-1)))"}&amp;gt; }&amp;nbsp; VENTAS.Peso)&lt;/P&gt;
&lt;P&gt;/Count(DISTINCT {&amp;lt;CalendarDate={"&amp;gt;=$(=max(date(vDateRotura-3)))&amp;lt;=$(=max(date(vDateRotura-1)))"}&amp;gt; }&amp;nbsp; CalendarDate)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I would like to achive is the same expression but excluding the sundays. E.g. If the given date falls on Thrusday I want the average of previous Friday+Saturday+Monday.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906471#M1002274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-03T16:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Average last three days except Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906472#M1002275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi add this in the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weekday(vDateRotura)={*}-{7}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906472#M1002275</guid>
      <dc:creator>rakesh_kumar</dc:creator>
      <dc:date>2015-06-03T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average last three days except Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906473#M1002276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Rakesh, I don't know exactly how to do it. Could you please lead me?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 17:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906473#M1002276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-03T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Average last three days except Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906474#M1002277</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;Due to restrictions on the system I am replying this thread I am unable to copy and paste your whole expression here, but it will will be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CalendarDate={" ..."}, weekday(vDateRotura) = {*}-{7}&amp;gt;} ventas.peso)&lt;/P&gt;&lt;P&gt;/ Count(Disctinct {&amp;lt;CalendarDate={"..."}, weekday(vDateRotura)={*}-{7}&amp;gt;} CalendarDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 17:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906474#M1002277</guid>
      <dc:creator>rakesh_kumar</dc:creator>
      <dc:date>2015-06-03T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Average last three days except Sunday</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906475#M1002278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work. Maybe I'm doing something wrong. I didn't say that vDateRotura is a variable. Thank you anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 17:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-three-days-except-Sunday/m-p/906475#M1002278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-03T17:45:41Z</dc:date>
    </item>
  </channel>
</rss>

