COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: FatCat on 10 Sep 2008 03:50:56 PM

Title: Cognos Calculate Measures filter conditions
Post by: FatCat on 10 Sep 2008 03:50:56 PM
I have two Calculated measures in my framework.
Each of them have a filter applied to them.

When I add the two calculated measures into a list Cognos defaults both filter conditions to a AND condition.

How can I overide this to make the filters act as OR conditions
Title: Re: Cognos Calculate Measures filter conditions
Post by: blom0344 on 11 Sep 2008 08:47:49 AM
Use one filter expression with an EXPLICIT 'OR' between the 2 expressions..
Title: Re: Cognos Calculate Measures filter conditions
Post by: FatCat on 11 Sep 2008 03:34:28 PM
Thought of that.

What will occur is when I join the Dim to the Fact Table with the 'OR' statement I will get records that I do not and blank entries in the calculated measure

The data is normalized where as in the Fact there is a single amount that is joined to a Dimension table for one of several  amount types.
Title: Re: Cognos Calculate Measures filter conditions
Post by: blom0344 on 12 Sep 2008 02:32:15 PM
Well, that really sounds puzzling. Did you consider using a union?

QuoteThe data is normalized where as in the Fact there is a single amount that is joined to a Dimension table for one of several  amount types.

Care to clarify this bit. Makes my head spin just reading it   ;D