<?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 with if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694912#M725774</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I hope you are all keeping safe and well.&lt;/P&gt;&lt;P&gt;I have 2 dates in my data load&lt;/P&gt;&lt;P&gt;Issue Date&lt;BR /&gt;Voucher Date&lt;/P&gt;&lt;P&gt;My calendar is powered by the Voucher Date.&lt;/P&gt;&lt;P&gt;Voucher date is created when an invoice is posted but i also need to include the Issue date in the model and so wanted to employ an if statement to capture Issue Date as Voucher Date if the voucher date is blank.&lt;/P&gt;&lt;P&gt;Here is my best (just realised not working ) effort.&lt;/P&gt;&lt;P&gt;Date(if(( len([Voucher Date])=0) or [Voucher Date]&amp;gt;0 ,[Voucher Date],[Issue date] ),'DD/MM/YYYY') as [Voucher Date],&lt;/P&gt;&lt;P&gt;Can anyone help to modify this to capture issue date as Voucher date when the voucher date is blank?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:48:44 GMT</pubDate>
    <dc:creator>davyqliks</dc:creator>
    <dc:date>2024-11-16T00:48:44Z</dc:date>
    <item>
      <title>Date with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694912#M725774</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I hope you are all keeping safe and well.&lt;/P&gt;&lt;P&gt;I have 2 dates in my data load&lt;/P&gt;&lt;P&gt;Issue Date&lt;BR /&gt;Voucher Date&lt;/P&gt;&lt;P&gt;My calendar is powered by the Voucher Date.&lt;/P&gt;&lt;P&gt;Voucher date is created when an invoice is posted but i also need to include the Issue date in the model and so wanted to employ an if statement to capture Issue Date as Voucher Date if the voucher date is blank.&lt;/P&gt;&lt;P&gt;Here is my best (just realised not working ) effort.&lt;/P&gt;&lt;P&gt;Date(if(( len([Voucher Date])=0) or [Voucher Date]&amp;gt;0 ,[Voucher Date],[Issue date] ),'DD/MM/YYYY') as [Voucher Date],&lt;/P&gt;&lt;P&gt;Can anyone help to modify this to capture issue date as Voucher date when the voucher date is blank?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694912#M725774</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2024-11-16T00:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694939#M725775</link>
      <description>&lt;P&gt;your logic seems correct. try changing it to simple isnull() condition&lt;/P&gt;&lt;P&gt;if thats not working either i&amp;nbsp; feel there maybe some other data coming in. maybe spaces.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 14:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694939#M725775</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-04-20T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694955#M725776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for this.&lt;/P&gt;&lt;P&gt;I am having trouble writing the load statement with the isnull() condition.&lt;/P&gt;&lt;P&gt;Please can you show in my example how you would add this as i am having issue getting syntax correct.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694955#M725776</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2020-04-20T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694956#M725777</link>
      <description>&lt;P&gt;&lt;SPAN&gt;if( isnull([Voucher Date]) ,[Issue date] ,[Voucher Date])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 15:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1694956#M725777</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-04-20T15:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1695166#M725778</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;This worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stay safe out there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 09:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-with-if-statement/m-p/1695166#M725778</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2020-04-21T09:45:33Z</dc:date>
    </item>
  </channel>
</rss>

