<?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 Date Calculation Fails in Chart Expression to Filter Dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-Calculation-Fails-in-Chart-Expression-to-Filter-Dimension/m-p/1760846#M58823</link>
    <description>&lt;P&gt;I have a strange issue. When I use a text chart object, I am able to calculate the difference between two dates:&lt;/P&gt;&lt;P&gt;Max(WarrantyDate) - Min(WarrantyDate): 11/10/2020 - 11/08/2020&amp;nbsp; = 2&lt;/P&gt;&lt;P&gt;However, when I try the same thing for a chart table dimension filter, it doesn't work:&lt;/P&gt;&lt;P&gt;If(Num(Max(WarrantyDate) - Min(WarrantyDate)) = [Number Warranty Days],&amp;nbsp;&amp;nbsp;[Number Warranty Days])&lt;/P&gt;&lt;P&gt;The subtraction to determine the date difference doesn't work.&amp;nbsp; I have tried using a variable to store the difference and reference it but while it works for displaying the result in a text object, it also is useless in a chart expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 18:11:41 GMT</pubDate>
    <dc:creator>FerdiSisko</dc:creator>
    <dc:date>2020-11-11T18:11:41Z</dc:date>
    <item>
      <title>Date Calculation Fails in Chart Expression to Filter Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Calculation-Fails-in-Chart-Expression-to-Filter-Dimension/m-p/1760846#M58823</link>
      <description>&lt;P&gt;I have a strange issue. When I use a text chart object, I am able to calculate the difference between two dates:&lt;/P&gt;&lt;P&gt;Max(WarrantyDate) - Min(WarrantyDate): 11/10/2020 - 11/08/2020&amp;nbsp; = 2&lt;/P&gt;&lt;P&gt;However, when I try the same thing for a chart table dimension filter, it doesn't work:&lt;/P&gt;&lt;P&gt;If(Num(Max(WarrantyDate) - Min(WarrantyDate)) = [Number Warranty Days],&amp;nbsp;&amp;nbsp;[Number Warranty Days])&lt;/P&gt;&lt;P&gt;The subtraction to determine the date difference doesn't work.&amp;nbsp; I have tried using a variable to store the difference and reference it but while it works for displaying the result in a text object, it also is useless in a chart expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 18:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Calculation-Fails-in-Chart-Expression-to-Filter-Dimension/m-p/1760846#M58823</guid>
      <dc:creator>FerdiSisko</dc:creator>
      <dc:date>2020-11-11T18:11:41Z</dc:date>
    </item>
  </channel>
</rss>

