<?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 Selected Dates Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687123#M52343</link>
    <description>&lt;P&gt;I have a data set with ETL Date and Amount.&amp;nbsp; Requirement is that&amp;nbsp; when the user selects 2 different ETL Dates,&amp;nbsp; it should give me the below:&lt;/P&gt;&lt;P&gt;-Sum(ETL Date 1) - Sum( Etl Date 2)&lt;/P&gt;&lt;P&gt;-Sum(ETL Date 1)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum(ETL Date 2)&lt;/P&gt;&lt;P&gt;I used&amp;nbsp; the below expression to&amp;nbsp; get the difference between 2 selected dates but it works only for a straight table&amp;nbsp; with ETL Date as a Dimension.&amp;nbsp; I need expression which can give me the above 2 requirements even in a KPI&amp;nbsp; or Text Object.&lt;/P&gt;&lt;P&gt;Attached please find the sample app with the sample data&lt;/P&gt;&lt;P&gt;Rangesum(&lt;BR /&gt;Sum(Amount),&lt;BR /&gt;-Above(Sum(Amount))* Avg(1))&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 21:15:34 GMT</pubDate>
    <dc:creator>Rehan</dc:creator>
    <dc:date>2020-03-23T21:15:34Z</dc:date>
    <item>
      <title>Selected Dates Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687123#M52343</link>
      <description>&lt;P&gt;I have a data set with ETL Date and Amount.&amp;nbsp; Requirement is that&amp;nbsp; when the user selects 2 different ETL Dates,&amp;nbsp; it should give me the below:&lt;/P&gt;&lt;P&gt;-Sum(ETL Date 1) - Sum( Etl Date 2)&lt;/P&gt;&lt;P&gt;-Sum(ETL Date 1)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum(ETL Date 2)&lt;/P&gt;&lt;P&gt;I used&amp;nbsp; the below expression to&amp;nbsp; get the difference between 2 selected dates but it works only for a straight table&amp;nbsp; with ETL Date as a Dimension.&amp;nbsp; I need expression which can give me the above 2 requirements even in a KPI&amp;nbsp; or Text Object.&lt;/P&gt;&lt;P&gt;Attached please find the sample app with the sample data&lt;/P&gt;&lt;P&gt;Rangesum(&lt;BR /&gt;Sum(Amount),&lt;BR /&gt;-Above(Sum(Amount))* Avg(1))&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687123#M52343</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-03-23T21:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Dates Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687156#M52344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/65059"&gt;@Rehan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Got a bit confused regarding what you are trying to achieve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if in the attachment, the scenario is:&lt;/P&gt;&lt;P&gt;&amp;gt;Select 2 dates&lt;BR /&gt;&amp;gt;Get the difference of both the days sales then,&lt;/P&gt;&lt;P&gt;Use this formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[ETL Date] = {"$(=Max([ETL Date]))"}&amp;gt;}Amount)&lt;BR /&gt;-&lt;BR /&gt;Sum({&amp;lt;[ETL Date] = {"$(=Min([ETL Date]))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached the qvw for reference. let me know if there is some different expectation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers!!!&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 01:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687156#M52344</guid>
      <dc:creator>ashishkalia</dc:creator>
      <dc:date>2020-03-24T01:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Dates Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687313#M52363</link>
      <description>&lt;P&gt;I need the max and MIn date from the 2 selected dates not from the entire data set&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 13:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selected-Dates-Issue/m-p/1687313#M52363</guid>
      <dc:creator>Rehan</dc:creator>
      <dc:date>2020-03-24T13:34:30Z</dc:date>
    </item>
  </channel>
</rss>

