<?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: if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if/m-p/1131333#M905069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lenght is used .. i dont get any values.. not sure why.. but for example if i put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (closing date) = '' or '-' ,date(opening date),-- it correctly takes from other column.. but if i put one if condition it does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 12:24:24 GMT</pubDate>
    <dc:creator>raadwiptec</dc:creator>
    <dc:date>2016-06-28T12:24:24Z</dc:date>
    <item>
      <title>if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131325#M905061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following required in expression.. i have 3 columns &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;closing date&lt;/P&gt;&lt;P&gt;last date&lt;/P&gt;&lt;P&gt;opening date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My condition is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if closing date is blank or null the take the date from opening date column ,if the opening date is null or blank then take the date from last date column&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/if/m-p/1131325#M905061</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131326#M905062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim([Closing Date])) &amp;gt; 0, [Closing Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim([Opening Date])) &amp;gt; 0, [Opening Date], [Last Date]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 11:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131326#M905062</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-28T11:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131327#M905063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len is not working as many of the data is null or - &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 11:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131327#M905063</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-06-28T11:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131328#M905064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try This..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([closing date])=1,[Closing Date],&lt;/P&gt;&lt;P&gt;if(GetSelectedCount([Opening Date])=1,[Opening Date], [Last Date]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 11:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131328#M905064</guid>
      <dc:creator>jayaseelan</dc:creator>
      <dc:date>2016-06-28T11:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131329#M905065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim([Closing date]))=0,If(Len(Trim([opening date])) &amp;gt; 0,[Opening date],[Last date]),[Closing date])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 11:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131329#M905065</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-06-28T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131330#M905066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly why Sunny is suggesting to use the len(trim()) combo. It handlles empty fields, whitespace strings, Null values all in the same way. This is a best practice if you cannot expect the data source to return a single "no value present" indicator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131330#M905066</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-06-28T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131331#M905067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jayasselan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is giving results but it only takes &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Last Date values......it is not considering even if opening dates are there&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131331#M905067</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-06-28T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131332#M905068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you provide screenshot of the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131332#M905068</guid>
      <dc:creator />
      <dc:date>2016-06-28T12:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131333#M905069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lenght is used .. i dont get any values.. not sure why.. but for example if i put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (closing date) = '' or '-' ,date(opening date),-- it correctly takes from other column.. but if i put one if condition it does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131333#M905069</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-06-28T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131334#M905070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this means that the hyphen is actually present in your date fields? And not just the representation of a Null value in a QlikView object? You may want to change the zeroes in Sunny's expression into 1s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this still doesn't work, then we are lacking context details. Please upload an example document that exhibits this behavior. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131334#M905070</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-06-28T12:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131335#M905071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You also try this expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if([Closing Date]&amp;lt;[Last Date],[Last Date],if([Last Date]&amp;lt;[Opening Date],[Opening Date],if([Opening Date]&amp;lt;[Closing Date],[Closing Date])))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131335#M905071</guid>
      <dc:creator>susovan</dc:creator>
      <dc:date>2016-06-28T12:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131336#M905072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi peter,, 1 is fair good. still testing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 12:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131336#M905072</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-06-28T12:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131337#M905073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I think that the possible solution is this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;IF(Closing_Date = '' , Opening_Date , IF(Opening_Date = '' , Last_Date , &lt;SPAN style="font-size: 13.3333px;"&gt;Closing_Date))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131337#M905073</guid>
      <dc:creator />
      <dc:date>2016-06-28T13:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131338#M905074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the isnull() function and combine it with the [field] = '' and you'll get the result. Remember that working with &lt;EM&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/EM&gt; values in your data makes it tricky. You should handle them in your load script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(Closing_Date)=-1 or Closing_Date='',if(isnull(Opening_Date)=-1 or Opening_Date='',Last_Date,Opening_Date),Closing_Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 07:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131338#M905074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-02T07:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131339#M905075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is the value is not null.. but something like '/' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 06:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131339#M905075</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-07-04T06:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131340#M905076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;isnull(date(date#(20160917,'YYYYMMDD'),'YYYY-MM-DD'))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;That returns 0 for valid an -1 for invalid dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 06:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131340#M905076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-04T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131341#M905077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thomas in your expression what is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;20160917?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 06:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131341#M905077</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-07-04T06:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131342#M905078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌It's a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year 2016&lt;/P&gt;&lt;P&gt;Month 09&lt;/P&gt;&lt;P&gt;Day 17&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 06:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131342#M905078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-04T06:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131343#M905079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my curent issue is my data looks as below after the expression. Once the closing date is populated..it creates a new line..showing it as a duplicate value in the report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1030px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="278"&gt;Country&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="170"&gt;Printer&amp;nbsp; Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="65"&gt;Code&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="50"&gt;Status&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;destination Country&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="59"&gt;Quantity&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;Closing Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;Opening Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;Last Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;uk&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;hp-printer0323&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;14CC023&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Delivered&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;sweden&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;09/05/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;09/05/2015&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;/&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;uk&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;hp-printer0323&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;14CC023&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Delivered&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;sweden&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;09/05/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;28/05/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 07:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131343#M905079</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2016-07-04T07:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: if</title>
      <link>https://community.qlik.com/t5/QlikView/if/m-p/1131344#M905080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, then use the following in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;,date(date#(Closing_Date,'DD/MM/YYYY'),'DD/MM/YYYY') as Closing_Date&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;,date(date#(Opening_Date,'DD/MM/YYYY'),'DD/MM/YYYY') as Opening_Date&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;,date(date#(Last_Date,'DD/MM/YYYY'),'DD/MM/YYYY') as Last_Date&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;And then use this code on the fields:&lt;/P&gt;&lt;P&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;&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;if(isnull(Closing_Date)=-1,if(isnull(Opening_Date)=-1,Last_Date,Opening_Date),Closing_Date)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if/m-p/1131344#M905080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-04T09:33:03Z</dc:date>
    </item>
  </channel>
</rss>

