<?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 difference of amounts of two dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433718#M96841</link>
    <description>&lt;P&gt;Thank you very much, all solutions are working fine!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 11:33:28 GMT</pubDate>
    <dc:creator>jw22</dc:creator>
    <dc:date>2024-03-22T11:33:28Z</dc:date>
    <item>
      <title>Calculate difference of amounts of two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433595#M96823</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;
&lt;P&gt;I have an table with following data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jw22_0-1711092851639.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162530iDA046E8C0CB0EC33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jw22_0-1711092851639.png" alt="jw22_0-1711092851639.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And as filter panel I have "Date".&lt;/P&gt;
&lt;P&gt;I now want a Measure where the difference between two Amounts of &lt;STRONG&gt;two&lt;/STRONG&gt; Dates is calculated.&lt;/P&gt;
&lt;P&gt;When 19.03.2024 and 20.03.2024 in the filter pane is selected, I want the measure to show -500. (1000-1500). Always the Amount of the older selected Date minus the newer selected Date.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 07:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433595#M96823</guid>
      <dc:creator>jw22</dc:creator>
      <dc:date>2024-03-22T07:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference of amounts of two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433606#M96824</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;Sum({&amp;lt;Date={"$(=Min(Date))"}&amp;gt;} Amount) - Sum({&amp;lt;Date={"$(Max(Date))"}&amp;gt;} Amount)&lt;/PRE&gt;
&lt;P&gt;If it doesn't work, try adding the date formatting:&lt;/P&gt;
&lt;PRE&gt;Sum({&amp;lt;Date={"$(=Date(Min(Date), 'DD.MM.YYYY'))"}&amp;gt;} Amount) - Sum({&amp;lt;Date={"$(=Date(Max(Date), 'DD.MM.YYYY'))"}&amp;gt;} Amount)&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Mar 2024 08:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433606#M96824</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-03-22T08:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference of amounts of two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433611#M96825</link>
      <description>&lt;P&gt;Hello, you can use alternate state for this.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Alternate%20States.htm#" target="_blank"&gt;Alternate States | QlikView Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clement15_0-1711095648001.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162531iE118E8EAB90F333B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clement15_0-1711095648001.png" alt="Clement15_0-1711095648001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 08:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433611#M96825</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-03-22T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference of amounts of two dates</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433718#M96841</link>
      <description>&lt;P&gt;Thank you very much, all solutions are working fine!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 11:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-difference-of-amounts-of-two-dates/m-p/2433718#M96841</guid>
      <dc:creator>jw22</dc:creator>
      <dc:date>2024-03-22T11:33:28Z</dc:date>
    </item>
  </channel>
</rss>

