COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: nimishabrahamc on 26 Aug 2015 02:03:04 PM

Title: Show only values >=1 and do not show other values
Post by: nimishabrahamc on 26 Aug 2015 02:03:04 PM
HI,

I am new to Cognos. In a report column called "Amount", I want to show only values >=1 and eliminate all the other values (including null) along with its rows.

Can you please give me an example of what Expression Definition should I apply to the column.

Thanks,
nac
Title: Re: Show only values >=1 and do not show other values
Post by: cognostechie on 26 Aug 2015 03:30:44 PM
Create a Query filter and insert the expression:

Amount >= 1

The query filter should be a detail filter. Go to the query explorer , select your query, drag a filter from the toolbox into the filter area on the right.
Title: Re: Show only values >=1 and do not show other values
Post by: nimishabrahamc on 26 Aug 2015 04:12:25 PM
Okay , I did that. But it doesn't seem to do anything. It is not eliminating the empty rows or showing >=1

Please tell me an example on how to do this.

Thanks
Title: Re: Show only values >=1 and do not show other values
Post by: cognostechie on 26 Aug 2015 05:13:00 PM
What do you mean 'Empty rows' ? What's the value in the Amount column for those rows which you call Empty rows?

Cognos reads results from cache too and that's why lot of developers go crazy when their changes don't reflect. Clear the cache of your browser.
Other than that, what I wrote earlier should do the job provided what you wrote in your original post was a precise explanation of the issue.
Title: Re: Show only values >=1 and do not show other values
Post by: Lynn on 27 Aug 2015 02:41:41 AM
Is your source relational or dimensional?
Title: Re: Show only values >=1 and do not show other values
Post by: nimishabrahamc on 27 Aug 2015 09:17:35 AM
Ok in my "Amount" Column I have empty values (Null Values) and other values.

I want to eliminate the Null values and only display values only >=1.


In the Detail Filters I am adding [XYZ_DS].[VW_ABC].[AMOUNT]>=1

What else should I do? Please give me an example of how I do this?

Thanks,
acn
Title: Re: Show only values >=1 and do not show other values
Post by: MFGF on 27 Aug 2015 09:46:54 AM
Is your source relational or dimensional?

Assuming it's relational, try

[XYZ_DS].[VW_ABC].[AMOUNT]>=1 and [XYZ_DS].[VW_ABC].[AMOUNT] is not null
Title: Re: Show only values >=1 and do not show other values
Post by: nimishabrahamc on 27 Aug 2015 11:41:10 AM
Yes I tried that.

[XYZ_DS].[VW_ABC].[AMOUNT]>=1 and [XYZ_DS].[VW_ABC].[AMOUNT] is not null


For some reason it does not eliminate the blank rows!

Please tell me if there something I am missing?

Thanks,
Acn
Title: Re: Show only values >=1 and do not show other values
Post by: MFGF on 27 Aug 2015 11:54:08 AM
Quote from: nac on 27 Aug 2015 11:41:10 AM
Yes I tried that.

[XYZ_DS].[VW_ABC].[AMOUNT]>=1 and [XYZ_DS].[VW_ABC].[AMOUNT] is not null


For some reason it does not eliminate the blank rows!

Please tell me if there something I am missing?

Thanks,
Acn

Ok. Let's try asking a third time...

Is your source relational or dimensional?

MF.
Title: Re: Show only values >=1 and do not show other values
Post by: cognostechie on 27 Aug 2015 01:06:35 PM
He/She may not know how to figure that out.

@ NAC - If you see hierarchies in the package then your source is dimensional, otherwise it is relational. Another way to understand this is - if you see
icons that look like a triangle and let you expand it to find fields then your source is dimensional.