COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: ry1633 on 15 Aug 2016 10:00:21 AM

Title: how to suppress nulls
Post by: ry1633 on 15 Aug 2016 10:00:21 AM
Hi all,

In a query subject I'm working on I have 4 columns:  test ID, product code, establishment code, and status.    When my users pull these into a report, they don't want to see any results where the 1st field (Test ID) is blank.  How can I achieve this?   I may have encountered this before, but have forgotten. (it's Monday morning after a long weekend :) )
Title: Re: how to suppress nulls
Post by: ry1633 on 15 Aug 2016 10:16:57 AM
just tried this with a Filter on the field something like [table Name].[Test ID] is not null  - and that seems to be ok.  Is that a decent way to do it, or is there a better way?
Title: Re: how to suppress nulls
Post by: MFGF on 16 Aug 2016 02:32:53 AM
Quote from: ry1633 on 15 Aug 2016 10:16:57 AM
just tried this with a Filter on the field something like [table Name].[Test ID] is not null  - and that seems to be ok.  Is that a decent way to do it, or is there a better way?

To quote Mr Punch...

"That's the way to do it" :)

MF.
Title: Re: how to suppress nulls
Post by: Lynn on 16 Aug 2016 02:41:42 AM
Or else address it at the source by either removing data if it truly has no value or modelling over a view that has done the filtering.
Title: Re: how to suppress nulls
Post by: MDXpressor on 31 Aug 2016 03:33:04 PM
I agree with Lynn,

The closer to your source system you can apply the 'removal' of those records, the better. 

The farther you get from source when making changes, the more your authors will end up repeating (read: wasting) effort.