<?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: How to calculate previous Date 's sum(Sales)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332304#M842089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just attached my sample qvw file. Please can you edit the 'Demo' straight table chart. Currently it does not show any data for&lt;/P&gt;&lt;P&gt;'Prior Date Sale' column's value under it.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161455_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2017 12:44:08 GMT</pubDate>
    <dc:creator>ananyaghosh</dc:creator>
    <dc:date>2017-04-27T12:44:08Z</dc:date>
    <item>
      <title>How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332299#M842084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the below table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;[Data]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;load&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; DateData, Sales&lt;BR /&gt; 12/11/2017, 2012&lt;BR /&gt; 12/10/2017, 2015&lt;BR /&gt; 12/09/2017, 2016&lt;BR /&gt; 12/08/2017, 2017&lt;BR /&gt; 12/07/2017, 2018&lt;BR /&gt; ]&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;and use a straight table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;and use &lt;SPAN style="color: #800000;"&gt; DateData&lt;/SPAN&gt; as dimension and &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Process Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(date(only([Process Date]-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Posting Amount USD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt; as expression. But I get '0' for all fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Please help me what is wrong in the expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Sandip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332299#M842084</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332300#M842085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(Sum({&amp;lt;DateData&amp;gt;}Sales)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 11:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332300#M842085</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T11:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332301#M842086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample attached&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161451_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 11:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332301#M842086</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T11:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332302#M842087</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;May be expression&amp;nbsp; Above(Sum (Sales))?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 11:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332302#M842087</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-04-27T11:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332303#M842088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AsOfTable example attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 11:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332303#M842088</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332304#M842089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just attached my sample qvw file. Please can you edit the 'Demo' straight table chart. Currently it does not show any data for&lt;/P&gt;&lt;P&gt;'Prior Date Sale' column's value under it.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161455_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332304#M842089</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2017-04-27T12:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332305#M842090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you used two dimension, you needed to add Total after Above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; Sum({&amp;lt;[Process Date]&amp;gt;}[Sales Posting Amount USD])) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332305#M842090</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332306#M842091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it looks ok. But I need to implement the logic as : if the previous day's value is null or not exists in data model, then it will be null, but you can see that for Prior Date: 12/07/2016 , it is not present in the data model, but the prior date sale value is coming for 12/08/2017. SO it should be null or blank value. So instead of showing -100 it should show only 0 in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the logic should be if a date's prior date is not present in the data, it will show null or 0 prior date sale's column value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161475_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332306#M842091</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2017-04-27T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332307#M842092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then it would be best to use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt; approach here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332307#M842092</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T13:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332308#M842093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have seen it. But I did not understand how to implement it in my case.&lt;/P&gt;&lt;P&gt;So I am requesting you if you can implement it in my sample QVW document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332308#M842093</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2017-04-27T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332309#M842094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have the source files to run... but will try to do a binary load to try to make it work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332309#M842094</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T13:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332310#M842095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this looks good&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332310#M842095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332311#M842096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks and Thanks a Lot.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;But in your as of calendar I need three more fields like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;previous month, previous week and previous year and last 9 and 6 months flag.&lt;/P&gt;&lt;P&gt;So can u give me that script also. because how can I make difference between weeks and months and year also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case if you help me I will be very thankful to you.&lt;/P&gt;&lt;P&gt;Please help me for previous month, previous week and previous year and last 9 and 6 months calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just waiting for your reply.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332311#M842096</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2017-04-27T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous Date 's sum(Sales)?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332312#M842097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you even looked at the script I have provided and the link I have shared? Can you try to give this a try on your end and ask for help if it doesn't help... or if someone else have time, they will help you out....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck brother....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. As a recommendation, try to provide your requirement in one go (if possible).... I am sure once someone figures this out for you... you must have a list of other things you would like them to add &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-previous-Date-s-sum-Sales/m-p/1332312#M842097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T14:34:49Z</dc:date>
    </item>
  </channel>
</rss>

