<?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 Substracting two dates in set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593226#M739068</link>
    <description>&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;I am trying to substract two dates&amp;nbsp; and compare the difference to another file and my expression is as below and its not working. The dimension I am using is AsOfDatefiled.&lt;/P&gt;&lt;P&gt;And my expression is&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DateFieldDiff = {"=(AsOfDateField -AsOfDateFieldPMFD)"}&amp;gt;}DataTypeCounter).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>SRG</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Substracting two dates in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593226#M739068</link>
      <description>&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;I am trying to substract two dates&amp;nbsp; and compare the difference to another file and my expression is as below and its not working. The dimension I am using is AsOfDatefiled.&lt;/P&gt;&lt;P&gt;And my expression is&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DateFieldDiff = {"=(AsOfDateField -AsOfDateFieldPMFD)"}&amp;gt;}DataTypeCounter).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593226#M739068</guid>
      <dc:creator>SRG</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Substracting two dates in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593244#M739069</link>
      <description>&lt;P&gt;Searches starting with = only care if the value returned is truthy or falsy, so your set expression as written will select all values in DateFieldDiff for which&amp;nbsp;&lt;SPAN&gt;AsOfDateField - AsOfDateFieldPMFD in not null and not zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I imagine what you want is this:&lt;BR /&gt;&lt;SPAN&gt;sum({&amp;lt;DateFieldDiff = {"=DateFieldDiff =(AsOfDateField - AsOfDateFieldPMFD)"}&amp;gt;}DataTypeCounter)&lt;BR /&gt;but hard to say if it will work without knowing the structure of your data model.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 18:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593244#M739069</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2019-06-18T18:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Substracting two dates in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593250#M739070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I am trying to do is calculate the number of days between AsOfDateField&amp;nbsp; and&amp;nbsp;AsOfDateFieldPMFD&amp;nbsp; and compare that number against the DateFieldDiff .&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if difference between the two date fields above is 32, I am trying to achieve the below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({&amp;lt;DateFieldDiff = {32}&amp;gt;}DataTypeCounter).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How ever I want to calculate the days between them dynamically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 18:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593250#M739070</guid>
      <dc:creator>SRG</dc:creator>
      <dc:date>2019-06-18T18:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Substracting two dates in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593252#M739071</link>
      <description>&lt;P&gt;Then in general I think my formula should work, but it still depends on how the three fields (&lt;SPAN&gt;DateFieldDiff,&amp;nbsp;AsOfDateField,&amp;nbsp;AsOfDateFieldPMFD&lt;/SPAN&gt;) are connected in the data.&lt;/P&gt;&lt;P&gt;If they are in the same table it will work, if AsOfDateField and AsOfDateFieldPMFD are on a separate data island and you make selections on them it will work, if it's something different, then It Depends (tm). Try the formula from my previous post and see if it gives you the result you want.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 18:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substracting-two-dates-in-set-expression/m-p/1593252#M739071</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2019-06-18T18:29:13Z</dc:date>
    </item>
  </channel>
</rss>

