Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Dates when field in Oracle table is null

Status
Not open for further replies.

wolves

Programmer
Jan 26, 2001
130
US
I have a field defined in a table as varchar2(8), and it's being used as a date field in my report, as a dimension.
In Impromptu, it's being converted as such:

Code:
number-to-date(string-to-number(fieldA))

So, in the table, unfortunately, some of the values are null. So in the PowerPlay Cube, the dimension is built with some valid dates, and the null values in the table are being read and shown in the cube as 'Invalid Dates'.

Is there a way to fix this in Impromptu or Transformer, I could not find one.

The other obvious choice would be to put all ZEROES in the table, but trying to avoid this option if possible, but a last resort.

Thanks in advance,

 
Can't you just change the field in Impromptu (or the iqd directly) so that the logic is
If fieldA <> NULL then number-to-date(string-to-number(fieldA))else ('2000-01-01')
or whatever date you want as a default?

soi la, soi carré
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top