<?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>Question Re: Isnull function not working for Date in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559770#M121822</link>
    <description>&lt;P&gt;We don't see how you've defined the calculated column, how the data looks like before it reaches the calculation or directly afterwards. &lt;/P&gt;
  &lt;P&gt;As usual, don't tell just tell us a story but show the code.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 03:34:22 GMT</pubDate>
    <dc:creator>lbreddemann</dc:creator>
    <dc:date>2017-11-21T03:34:22Z</dc:date>
    <item>
      <title>Isnull function not working for Date</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaq-p/559769</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;Could you please let me know if the Isnull function in a calculated Column will work for the Date Field. &lt;/P&gt;
  &lt;P&gt;For example: I have a Field A with Date Type as Date, I created another Calculated Column with formula "isNull(Field A)". If I have a null value then the calculated column should show as 1 else as 0, right? But I'm getting 0 in spite they are Null Or populated.&lt;/P&gt;
  &lt;P&gt;Attaching a test view which I created with the same formula&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/84115-datetype.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I'm currently using HANA2.0 SPS 2 version&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 02:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaq-p/559769</guid>
      <dc:creator>former_member375266</dc:creator>
      <dc:date>2017-11-21T02:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull function not working for Date</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559770#M121822</link>
      <description>&lt;P&gt;We don't see how you've defined the calculated column, how the data looks like before it reaches the calculation or directly afterwards. &lt;/P&gt;
  &lt;P&gt;As usual, don't tell just tell us a story but show the code.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559770#M121822</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2017-11-21T03:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull function not working for Date</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559771#M121823</link>
      <description>&lt;P&gt;Sorry for not being so elaborate.&lt;/P&gt;
  &lt;P&gt;Below is the snapshot which shows the details of my issue.&lt;/P&gt;
  &lt;P&gt;Snapshot of the base table.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/95428-base-table.png"&gt;base-table.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Snapshot of the Calculated Column&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/95429-cc.png"&gt;cc.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Snapshot of view output&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/95430-cv-output.png"&gt;cv-output.png&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;So in the calculated Column "isnull", I have used the code isnull("CalDate"). In my base table, i have 2 records populated, one with CalDate as null and another record with actual date populated. But my view output for the calculated column shows 0 for both the records.&lt;/P&gt;
  &lt;P&gt;please let me know if you need anymore details.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 23:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559771#M121823</guid>
      <dc:creator>former_member375266</dc:creator>
      <dc:date>2017-11-30T23:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull function not working for Date</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559772#M121824</link>
      <description>&lt;P&gt;I just tried to reproduce this on SP12 and couldn't. ISNULL() delivers the correct result for my example.&lt;/P&gt;
  &lt;P&gt;You may want to open a support incident for this, so that the problem can be analysed in more detail.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 03:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559772#M121824</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2017-12-01T03:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull function not working for Date</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559773#M121825</link>
      <description>&lt;P&gt;Hello, Srinivasa First I cannot reproduce this issue on HANA 1.0 SP12 Version. I suggest that you could check your issue from below list.&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;Could you check your Calculated Column type, please? boolean is correct.&lt;/LI&gt;
   &lt;LI&gt;Could you check whether the column that your Calculated Column using is correct, please? I mean isnull("&lt;STRONG&gt;column&lt;/STRONG&gt;") whether the column is that you really want to use. Maybe there a few column called CalDate.&lt;/LI&gt;
   &lt;LI&gt;If you can exclude possibility above that could be the HANA version issue. thanks&lt;/LI&gt;
  &lt;/OL&gt;</description>
      <pubDate>Mon, 04 Dec 2017 09:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559773#M121825</guid>
      <dc:creator>richard-zhao</dc:creator>
      <dc:date>2017-12-04T09:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull function not working for Date</title>
      <link>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559774#M121826</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;
  &lt;P&gt;I checked my data type for the calculated column and its nvarchar with length 2. I also tried with Boolean but still the same result. The column which I used in the calculated column is right. That's the base table field which has the date value and a null value.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 22:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isnull-function-not-working-for-date/qaa-p/559774#M121826</guid>
      <dc:creator>former_member375266</dc:creator>
      <dc:date>2017-12-05T22:19:08Z</dc:date>
    </item>
  </channel>
</rss>

