<?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: Date Calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-Calculation/m-p/2459188#M98701</link>
    <description>&lt;P&gt;If you want to add such conditions you will need some simple but probably nested if-loops, like:&lt;/P&gt;
&lt;P&gt;... if(DateZ = null(), null(), if(DateX - DateY &amp;lt; 0, DateZ - DateY,&amp;nbsp;DateX - DateY)) ...&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 15:31:22 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-06-04T15:31:22Z</dc:date>
    <item>
      <title>Date Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Calculation/m-p/2459121#M98697</link>
      <description>&lt;P&gt;I have this existing expression&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;round(Avg({&amp;lt;[Item Type]={'Inventory Item','Inventory Cebu'}&amp;gt;}Aggr(Date([Order Date1],'DD/MM/YYYY') - date([Approved Date],'DD/MM/YYYY'),&lt;/P&gt;
&lt;P&gt;[Purchase Order No.],ShipID)))&lt;BR /&gt;&lt;BR /&gt;I want to add that if&amp;nbsp;Date([Order Date1],'DD/MM/YYYY') - date([Approved Date],'DD/MM/YYYY') is negative it would use Order Date 2.&lt;BR /&gt;&lt;BR /&gt;And also if&amp;nbsp;Date([Order Date1],'DD/MM/YYYY') - date([Approved Date],'DD/MM/YYYY') is negative and also Order date 2 is null it will not add up to the round(avg).&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Calculation/m-p/2459121#M98697</guid>
      <dc:creator>KevinJ</dc:creator>
      <dc:date>2024-11-15T20:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Calculation/m-p/2459188#M98701</link>
      <description>&lt;P&gt;If you want to add such conditions you will need some simple but probably nested if-loops, like:&lt;/P&gt;
&lt;P&gt;... if(DateZ = null(), null(), if(DateX - DateY &amp;lt; 0, DateZ - DateY,&amp;nbsp;DateX - DateY)) ...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Calculation/m-p/2459188#M98701</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-06-04T15:31:22Z</dc:date>
    </item>
  </channel>
</rss>

