<?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 Business Logic Previous Day when Dates are discrete in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Business-Logic-Previous-Day-when-Dates-are-discrete/m-p/2449819#M97873</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to check a generic solution for Previous Day calculation when dates are Discrete.&lt;/P&gt;
&lt;P&gt;in my case i am getting dates like below.&lt;/P&gt;
&lt;P&gt;Now i want max date which is 10-05-2024. which can simply calculate by max(BusinessDate)&lt;/P&gt;
&lt;P&gt;Previous Day = Should be 08-05-2024.&lt;/P&gt;
&lt;P&gt;if i select any date, it should consider as Max Date.. and Previous Date should be last available date in data.&lt;/P&gt;
&lt;P&gt;Say if i select 06-05-2024 then prev date should come 03-05-2024.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;TIA.&lt;/P&gt;
&lt;TABLE style="width: 100px;" width="100"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;01-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;02-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;03-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;06-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;07-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;08-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;10-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Fri, 15 Nov 2024 20:58:45 GMT</pubDate>
    <dc:creator>abhaysingh0402</dc:creator>
    <dc:date>2024-11-15T20:58:45Z</dc:date>
    <item>
      <title>Business Logic Previous Day when Dates are discrete</title>
      <link>https://community.qlik.com/t5/App-Development/Business-Logic-Previous-Day-when-Dates-are-discrete/m-p/2449819#M97873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to check a generic solution for Previous Day calculation when dates are Discrete.&lt;/P&gt;
&lt;P&gt;in my case i am getting dates like below.&lt;/P&gt;
&lt;P&gt;Now i want max date which is 10-05-2024. which can simply calculate by max(BusinessDate)&lt;/P&gt;
&lt;P&gt;Previous Day = Should be 08-05-2024.&lt;/P&gt;
&lt;P&gt;if i select any date, it should consider as Max Date.. and Previous Date should be last available date in data.&lt;/P&gt;
&lt;P&gt;Say if i select 06-05-2024 then prev date should come 03-05-2024.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;TIA.&lt;/P&gt;
&lt;TABLE style="width: 100px;" width="100"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;01-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;02-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;03-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;06-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;07-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;08-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="83.3333px"&gt;10-05-2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Business-Logic-Previous-Day-when-Dates-are-discrete/m-p/2449819#M97873</guid>
      <dc:creator>abhaysingh0402</dc:creator>
      <dc:date>2024-11-15T20:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Business Logic Previous Day when Dates are discrete</title>
      <link>https://community.qlik.com/t5/App-Development/Business-Logic-Previous-Day-when-Dates-are-discrete/m-p/2449927#M97880</link>
      <description>&lt;P&gt;hi, please check if below discussion helps u&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Replicate-Above-function-in-script/td-p/1263211" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Replicate-Above-function-in-script/td-p/1263211&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 16:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Business-Logic-Previous-Day-when-Dates-are-discrete/m-p/2449927#M97880</guid>
      <dc:creator>musketeers</dc:creator>
      <dc:date>2024-05-07T16:11:45Z</dc:date>
    </item>
  </channel>
</rss>

