<?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 Split Date and Time with NULL-values in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Split-Date-and-Time-with-NULL-values/m-p/2205907#M849</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggleing a little bit with the preparation of my data.&lt;/P&gt;&lt;P&gt;From my Excel-File I've got two columns with a Date and Time string. The Format is like this "12.07.2021 09:15:00.000".&lt;/P&gt;&lt;P&gt;Now I tried to seperate this string into two columns, one with the date and one with the time. So I programmed into tJavaFlex the attached code.&lt;/P&gt;&lt;P&gt;I wanted to do the same for the second DateTime-column as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem with this column is, that some fields are empty. So if I try to seperate with my index-variable I get the error message "String index out of range".&lt;/P&gt;&lt;P&gt;To solve this problem I created an if/else-condition. The if-part worked perfectly well, but I'm struggeling with the else. It should work like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a field is not empty (!=null) the programm should split the column into "Einbau" und "Zeit" else it shpuld write NULL into the "Einbau"-column.&lt;/P&gt;&lt;P&gt;Could anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and see the attached screenshot,&lt;/P&gt;&lt;P&gt;Lara&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:53:55 GMT</pubDate>
    <dc:creator>Lara_Zuern</dc:creator>
    <dc:date>2024-11-15T23:53:55Z</dc:date>
    <item>
      <title>Split Date and Time with NULL-values</title>
      <link>https://community.qlik.com/t5/Data-Quality/Split-Date-and-Time-with-NULL-values/m-p/2205907#M849</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggleing a little bit with the preparation of my data.&lt;/P&gt;&lt;P&gt;From my Excel-File I've got two columns with a Date and Time string. The Format is like this "12.07.2021 09:15:00.000".&lt;/P&gt;&lt;P&gt;Now I tried to seperate this string into two columns, one with the date and one with the time. So I programmed into tJavaFlex the attached code.&lt;/P&gt;&lt;P&gt;I wanted to do the same for the second DateTime-column as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem with this column is, that some fields are empty. So if I try to seperate with my index-variable I get the error message "String index out of range".&lt;/P&gt;&lt;P&gt;To solve this problem I created an if/else-condition. The if-part worked perfectly well, but I'm struggeling with the else. It should work like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a field is not empty (!=null) the programm should split the column into "Einbau" und "Zeit" else it shpuld write NULL into the "Einbau"-column.&lt;/P&gt;&lt;P&gt;Could anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and see the attached screenshot,&lt;/P&gt;&lt;P&gt;Lara&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Split-Date-and-Time-with-NULL-values/m-p/2205907#M849</guid>
      <dc:creator>Lara_Zuern</dc:creator>
      <dc:date>2024-11-15T23:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Split Date and Time with NULL-values</title>
      <link>https://community.qlik.com/t5/Data-Quality/Split-Date-and-Time-with-NULL-values/m-p/2205908#M850</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;I think you should handle the null value first, eg:&lt;/P&gt;&lt;P&gt;(row1.columnName==null){&lt;/P&gt;&lt;P&gt;row3.dateColumn=null;&lt;/P&gt;&lt;P&gt;row3.timeColumn=null;&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;balabala&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 07:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Split-Date-and-Time-with-NULL-values/m-p/2205908#M850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-24T07:01:16Z</dc:date>
    </item>
  </channel>
</rss>

