<?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: how to create a calculation in script to check if field=date then y else n in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1734954#M722326</link>
    <description>&lt;P&gt;In this case I would recommend just doing a check if the first character is numeric or alpha and proceed from there...&lt;/P&gt;&lt;P&gt;The following Help link may put you on the right track, sort of from where the prior post was coming I believe:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/interpretation-functions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/interpretation-functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 18:12:54 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-08-11T18:12:54Z</dc:date>
    <item>
      <title>how to create a calculation in script to check if field=date then y else n</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1731111#M722320</link>
      <description>&lt;P&gt;Hi guys ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am facing problem in writing a logic as i am new to qlikview to check if the field imported from excel is a date or a text in date format then create a new column =y else new column =n .&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1731111#M722320</guid>
      <dc:creator>Nathan22</dc:creator>
      <dc:date>2024-11-16T00:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a calculation in script to check if field=date then y else n</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1731137#M722321</link>
      <description>&lt;P&gt;if the dates are in consistent format. you could try soemthing like below&lt;/P&gt;&lt;P&gt;If(IsNum(Date#(DateField,'dd/mm/yyyy')),'yes','no') as IsDate&lt;/P&gt;&lt;P&gt;if Datefield is 'adb' it will store no&lt;/P&gt;&lt;P&gt;if it is&amp;nbsp;21/11/2020 it will store yes&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1731137#M722321</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2020-07-27T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a calculation in script to check if field=date then y else n</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1731315#M722322</link>
      <description>&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;but this formula doesn't work on the below data&lt;/P&gt;&lt;TABLE width="219"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="219"&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Not Required for FSPO Treatment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04/09/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 28 Jul 2020 10:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1731315#M722322</guid>
      <dc:creator>Nathan22</dc:creator>
      <dc:date>2020-07-28T10:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a calculation in script to check if field=date then y else n</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1734954#M722326</link>
      <description>&lt;P&gt;In this case I would recommend just doing a check if the first character is numeric or alpha and proceed from there...&lt;/P&gt;&lt;P&gt;The following Help link may put you on the right track, sort of from where the prior post was coming I believe:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/interpretation-functions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/InterpretationFunctions/interpretation-functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 18:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1734954#M722326</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-11T18:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a calculation in script to check if field=date then y else n</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1734999#M722328</link>
      <description>&lt;P&gt;Try like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD RowNo() As RowID,*, If(Text Like '*??/??/??*','Y','N') As Flag;
LOAD * INLINE [
    Text
    Not Required for FSPO Treatment
    Not Required for FSPO Treatment
    Not Required for FSPO Treatment
    Not Required for FSPO Treatment
    Not Required for FSPO Treatment
    Not Required for FSPO Treatment
    04/09/2020
];&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Aug 2020 20:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1734999#M722328</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-11T20:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a calculation in script to check if field=date then y else n</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1735001#M722330</link>
      <description>&lt;P&gt;Output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV60.PNG" style="width: 237px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38848i404F273A6D715CC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV60.PNG" alt="commQV60.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 20:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-a-calculation-in-script-to-check-if-field-date/m-p/1735001#M722330</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-11T20:40:42Z</dc:date>
    </item>
  </channel>
</rss>

