<?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 Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325424#M498573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no format issues. My query is to get the previous months date variable to compare it with date1 and show the balance for the previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only get the current balance by reportdate variable i.e. Jun 11 as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;I tried creating a seperate field for each 3 averages but still could not get any solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/31256"&gt;http://community.qlik.com/thread/31256&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;because if i create a seperate field for each previous month then i couldn't compare it in set analysis as per below link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/101556#101556"&gt;http://community.qlik.com/message/101556#101556&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;Shumail &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 12:52:45 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2011-07-06T12:52:45Z</dc:date>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325418#M498567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I am trying to get the average sales on the basis of following date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt; border-collapse: collapse;" width="128"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="width: 48pt; height: 15pt;" width="64"&gt;Date1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; width: 48pt;" width="64"&gt;Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Dec-09&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Dec-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Jan-11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Feb-11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Mar-11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;840&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Apr-11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;May-11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: medium none; height: 15pt;"&gt;Jun-11&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: medium none; border-left: medium none;"&gt;1800&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I need to have three expressions for averages as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Average MTD: (Current Month Sales + Previous Month Sales) / 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thing is my table is not simple to get the sales for current month i am already using set analysis as below&lt;/P&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;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and in order to get the Average MTD I tried this but not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;(sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) + &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) )/2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$1}{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) +&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Average YTD: (Current Month Sales + Begining of Year Sales) / 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Idea how to do it [:S]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Average One Year: (Current Month Sales + (12 Months Backward Sales)) / 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also No Idea on this [:S]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please anyone help me.... Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325418#M498567</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-06-28T06:33:05Z</dc:date>
    </item>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325419#M498568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody please help me on the above message plsssss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 09:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325419#M498568</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-06-28T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325420#M498569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please send ur application .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 09:35:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325420#M498569</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2011-06-28T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325421#M498570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;due to some security issues at my work place i cannot share the file. the thing is i am only having issues with date1 in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;Script Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;AccNo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;limit&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;delq&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;FROM&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;E:\Output\QVDs\ActiveAcc.qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;MinMaxDates:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;minstring&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;StartDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;maxstring&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;as&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;ReportDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;resident&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;CardMast_MOM;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;ReportDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'ReportDate'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) + &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)/2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 14:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325421#M498570</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-06-28T14:38:17Z</dc:date>
    </item>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325422#M498571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can any one help me on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325422#M498571</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-06T12:02:57Z</dc:date>
    </item>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325423#M498572</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; I dont know will this work for you or not, but you can try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt; sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date(Date#($(#=ReportDate),'Give the format in which it is there in field'),'MM/DD/YYYY')"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please dont forget to enter the same format in which the data is there in field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So for example if the data is like this&amp;nbsp; 12-Jul-2011 then the expression will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt; sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date(Date#($(#=ReportDate),'DD-MMM-YYYY&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;'),'MM/DD/YYYY')"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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, 06 Jul 2011 12:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325423#M498572</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-06T12:22:30Z</dc:date>
    </item>
    <item>
      <title>Average Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325424#M498573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no format issues. My query is to get the previous months date variable to compare it with date1 and show the balance for the previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only get the current balance by reportdate variable i.e. Jun 11 as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;"=$(=Date($(#=ReportDate),'MM/DD/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;I tried creating a seperate field for each 3 averages but still could not get any solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/31256"&gt;http://community.qlik.com/thread/31256&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;because if i create a seperate field for each previous month then i couldn't compare it in set analysis as per below link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/101556#101556"&gt;http://community.qlik.com/message/101556#101556&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;Shumail &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Sales/m-p/325424#M498573</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-06T12:52:45Z</dc:date>
    </item>
  </channel>
</rss>

