COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: srinu1253 on 15 Apr 2010 01:18:20 AM

Title: DMR Report
Post by: srinu1253 on 15 Apr 2010 01:18:20 AM
Hi Guys,

I am using a DMR package and I am tring to filter a data item (Product Line).
I am getting the following Error
QE-DEF-0478 Invalid coercion from 'level' to 'member, measure' for 'rolevalue('_memberCaption',set([Product Line  Members])) like 'Camping Eqipment''.
.Can any one help??
Title: Re: DMR Report
Post by: MFGF on 15 Apr 2010 04:28:44 AM
Hi,

Sounds like you are mixing relational and dimensional reporting styles here.  I'd hazard a guess that you have used this expression in a detail filter?

It's probably best to try an alternative approach.  You could:

a) Just drag in the relevant members ([Camping Equipment] etc) from the package tree and completely delete the filter.
b) Add a Query calculation to the report utilising a filter() function and delete the detail filter - eg filter([Your Product Line Level],[caption([Your Product Line Level]) contains 'Camping Equipment')

If you must stick with this approach, then modify your detail filter expression to be:

rolevalue('_memberCaption',[Your Product Line Level]) like 'Camping Equipment'

MF.