<?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: Using two conditionals in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285941#M872460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(isNull([Date Received]), Today() - [Purchase Date], [Date Received] - [Purchase Date])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 15:39:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-21T15:39:30Z</dc:date>
    <item>
      <title>Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285940#M872459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I use QV as a final user so I am not skilled in programming and how QV works, special in Set Analysis &lt;/P&gt;&lt;P&gt;I need to get the subtract of two dates: Date Received - Purchase Date in order to calculate the Days Passed.&amp;nbsp; If the Date Received is blank, the operation must be the Actual Date (Today) - Purchase Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;IMG alt="two conditionals.JPG" class="jive-image image-1" src="/legacyfs/online/144413_two conditionals.JPG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285940#M872459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285941#M872460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(isNull([Date Received]), Today() - [Purchase Date], [Date Received] - [Purchase Date])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285941#M872460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T15:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285942#M872461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You could user the alt() function like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Alt([Date Received], Today()) - [Purchase Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285942#M872461</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2016-11-21T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285943#M872462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Interval([Date Received]-[Purchase Date],'d') &amp;gt; '0', Date(Interval([Date Received]-[Purchase Date]),'DD/MM/YYYY'), Date(Interval(Today()-[Purchase Date]),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If([Date Received] = ' ', &lt;STRONG style="font-size: 13.3333px;"&gt;Date(Interval(Today()-[Purchase Date]),'DD/MM/YYYY'), &lt;/STRONG&gt;Date(Interval([Date Received]-[Purchase Date]),'DD/MM/YYYY'))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285943#M872462</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-21T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285944#M872463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Anil Babu. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of your expression is a date format 'DD/MM/YYYY' and I need it in day numbers.&lt;/P&gt;&lt;P&gt;The expressions provided by Marcio Arruda and Vegar Lie Arntsen are working the way I need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all of you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285944#M872463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285945#M872464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pleased that you found an answer to your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Vegar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 17:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285945#M872464</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2016-11-21T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285946#M872465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use networkdays&amp;nbsp; with two date fields.&amp;nbsp; And you want&amp;nbsp; to calculate&amp;nbsp; all&amp;nbsp; days&amp;nbsp; right&amp;nbsp; if so use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Networkdays(date1, date2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 17:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285946#M872465</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-11-21T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using two conditionals in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285947#M872466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 18:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-two-conditionals-in-expression/m-p/1285947#M872466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T18:42:19Z</dc:date>
    </item>
  </channel>
</rss>

