<?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 How to calculate previous date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-calculate-previous-date/m-p/1993251#M82199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have below expression for the current date column which is working fine, have to calculate previous date for another column.&lt;/P&gt;
&lt;P&gt;=sum(if(DT.Date = aggr(nodistinct max(DT.Date),measure),qty))&lt;/P&gt;
&lt;P&gt;I tried using below expression for previous date but it's not working , c&lt;SPAN&gt;an someone help me with the correct way?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=sum(if(DT.Date = aggr(nodistinct date(max(DT.Date)-1,'MM/DD/YYYY'),measure),qty))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 10:54:25 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2022-10-17T10:54:25Z</dc:date>
    <item>
      <title>How to calculate previous date</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-previous-date/m-p/1993251#M82199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have below expression for the current date column which is working fine, have to calculate previous date for another column.&lt;/P&gt;
&lt;P&gt;=sum(if(DT.Date = aggr(nodistinct max(DT.Date),measure),qty))&lt;/P&gt;
&lt;P&gt;I tried using below expression for previous date but it's not working , c&lt;SPAN&gt;an someone help me with the correct way?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=sum(if(DT.Date = aggr(nodistinct date(max(DT.Date)-1,'MM/DD/YYYY'),measure),qty))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 10:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-previous-date/m-p/1993251#M82199</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2022-10-17T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate previous date</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-calculate-previous-date/m-p/1996395#M82505</link>
      <description>&lt;P&gt;What do you get when you use your current formula for previous date?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 06:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-calculate-previous-date/m-p/1996395#M82505</guid>
      <dc:creator>Andrew_Delaney</dc:creator>
      <dc:date>2022-10-25T06:26:38Z</dc:date>
    </item>
  </channel>
</rss>

