<?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: 30 days average not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326036#M120064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ﻿﻿I tried the attached example but it still seems to not be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the count of the days (as weekends and bankholidays don't have data) I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Business_Date={"&amp;lt;=$(v30DayAvgED)&amp;gt;$(v30DayAvgSD)"}&amp;gt;} distinct Business_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereby:&lt;/P&gt;&lt;P&gt;v30DayAvgED = date(max(Business_Date), 'dd-MMM-yy')&lt;/P&gt;&lt;P&gt;v30DayAvgSD = date((max(Business_Date)-31), 'dd-MMM-YY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this is giving me 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 12:07:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-25T12:07:41Z</dc:date>
    <item>
      <title>30 days average not working</title>
      <link>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326034#M120062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿﻿﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;﻿﻿﻿﻿﻿﻿﻿Hi&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate a the previous 30 day average for any date selected ( average ranging from the max date selected to the previsous 30days) .&lt;/P&gt;&lt;P&gt;However my formula keeps giving me only the average for the number of days selected, not the 30 day average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Count(﻿﻿﻿﻿﻿﻿﻿﻿$&amp;lt;[Volume Flag]={'1'}, Business_Date+={"&amp;lt;$(=date(max(Business_Date),'dd-MMM-yy'))&amp;gt;$(=date((max(Business_Date)-31),'dd-MMM-yy'))"}&amp;gt;} Trade_ID))&lt;/P&gt;&lt;P&gt;/(Count($&amp;lt;Business_Date+={"&amp;lt;$(=date(max(Business_Date),'dd-MMM-yy')) &amp;gt;$﻿﻿(=date((max(Business_Date)-31),'dd-MMM-yy'))"}&amp;gt;}distinct Business_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help you can provide.&lt;/P&gt;&lt;P&gt;﻿﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 10:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326034#M120062</guid>
      <dc:creator />
      <dc:date>2011-05-25T10:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: 30 days average not working</title>
      <link>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326035#M120063</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please have a look at the attached Doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 11:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326035#M120063</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-25T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: 30 days average not working</title>
      <link>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326036#M120064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ﻿﻿I tried the attached example but it still seems to not be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the count of the days (as weekends and bankholidays don't have data) I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Business_Date={"&amp;lt;=$(v30DayAvgED)&amp;gt;$(v30DayAvgSD)"}&amp;gt;} distinct Business_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereby:&lt;/P&gt;&lt;P&gt;v30DayAvgED = date(max(Business_Date), 'dd-MMM-yy')&lt;/P&gt;&lt;P&gt;v30DayAvgSD = date((max(Business_Date)-31), 'dd-MMM-YY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this is giving me 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 12:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326036#M120064</guid>
      <dc:creator />
      <dc:date>2011-05-25T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: 30 days average not working</title>
      <link>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326037#M120065</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Its works at my side, with same varibale expression you have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tell me one thing have u created a year and month field using this date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If yes then you have to exclude the selection of them too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({$&amp;lt;Year=,Month=,Date1 = {"&amp;gt;=$(vPre)&amp;lt;=$(vSel)"}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 12:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/30-days-average-not-working/m-p/326037#M120065</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-05-25T12:17:28Z</dc:date>
    </item>
  </channel>
</rss>

