If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Display Null if Date has a specific value

Started by Raghuvir, 28 May 2014 07:13:25 AM

Previous topic - Next topic

Raghuvir

hi all,

we are using DB2 as our data source, we have a date field in the format of yyyy-mm-dd when the value in the date field is 0100-01-01 we need to display NULL in the reports.

how we will achieve this ? please guide me with the same.

Regards


raj_aries81

Quote from: Raghuvir on 28 May 2014 07:13:25 AM
hi all,

we are using DB2 as our data source, we have a date field in the format of yyyy-mm-dd when the value in the date field is 0100-01-01 we need to display NULL in the reports.

how we will achieve this ? please guide me with the same.

Regards

How about using a simple case statement... Case when extract(year,[date dataitem])=0100 then null else [dataitem] end

Raghuvir

Quote from: raj_aries81 on 29 May 2014 01:08:43 AM
How about using a simple case statement... Case when extract(year,[date dataitem])=0100 then null else [dataitem] end

yah did that. Thanks for the tip.