<?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: Calculate max date difference b/w dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834308#M68878</link>
    <description>&lt;P&gt;Take a look at the attached qvf file. There I show both script and in app solutions for your max difference problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1631014384749.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61498iC3D498E2BE19CC3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1631014384749.png" alt="Vegar_0-1631014384749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 11:33:30 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-09-07T11:33:30Z</dc:date>
    <item>
      <title>Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834136#M68868</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;I am having data like below.&lt;/P&gt;&lt;P&gt;Startdate,closedate,location&lt;/P&gt;&lt;P&gt;1/1/2021,2/1/2021,ind&lt;/P&gt;&lt;P&gt;4/1/2021,10/1/2021,ind&lt;/P&gt;&lt;P&gt;5/1/2021,7/1/2021,UK&lt;/P&gt;&lt;P&gt;8/1/2021,15/1/2021,uk&lt;/P&gt;&lt;P&gt;Based on the above data i want to calculate the maximum date difference between the dates based on location.&lt;/P&gt;&lt;P&gt;Could you please help me on the same&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834136#M68868</guid>
      <dc:creator>ksk278074</dc:creator>
      <dc:date>2021-11-30T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834139#M68869</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;max(CloseDate-StartDate ) as DateDifference,&lt;/P&gt;&lt;P&gt;Location&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Source&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group By Location;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 04:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834139#M68869</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-07T04:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834163#M68871</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not getting by using above script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 07:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834163#M68871</guid>
      <dc:creator>ksk278074</dc:creator>
      <dc:date>2021-09-07T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834173#M68872</link>
      <description>&lt;P&gt;Consider this sample script:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;SET DateFormat='D/M/YYYY';&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;LOAD MAX(Closedate-Startdate) as DateDifference, Location &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;inline [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; Startdate, Closedate, Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; 1/1/2021,2/1/2021,Ind&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; 4/1/2021,10/1/2021,Ind&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; 5/1/2021,7/1/2021,UK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; 8/1/2021,15/1/2021,UK]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Group By Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Qlik&amp;nbsp; Sense is case sensitive when it comes to values.&amp;nbsp; UK and uk are condisered as two different locations in Qlik Sense. In my sample above both UK are spelled with capital letters.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 07:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834173#M68872</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-07T07:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834175#M68873</link>
      <description>&lt;P&gt;If you want to do it in the application without pre-aggregations in the data you could try an expression like this.&lt;/P&gt;&lt;P&gt;=aggr(MAX(Closedate-Startdate), Location)&amp;nbsp;&lt;/P&gt;&lt;P&gt;or just&amp;nbsp;&lt;/P&gt;&lt;P&gt;=MAX(Closedate-Startdate)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;depending on how your objects are created.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 07:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834175#M68873</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-07T07:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834252#M68875</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i want to do it on front end how can we do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 09:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834252#M68875</guid>
      <dc:creator>ksk278074</dc:creator>
      <dc:date>2021-09-07T09:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max date difference b/w dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834308#M68878</link>
      <description>&lt;P&gt;Take a look at the attached qvf file. There I show both script and in app solutions for your max difference problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1631014384749.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/61498iC3D498E2BE19CC3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_0-1631014384749.png" alt="Vegar_0-1631014384749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 11:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-max-date-difference-b-w-dates/m-p/1834308#M68878</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-07T11:33:30Z</dc:date>
    </item>
  </channel>
</rss>

