COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: ratnalein on 06 Nov 2013 10:58:08 AM

Title: Invalid coercion from 'level' to 'value'
Post by: ratnalein on 06 Nov 2013 10:58:08 AM
Hallo everyone,

My first query looks like this -Customer-:
set(member([Customer]))

My second query looks like this -Dates-:
total(currentMeasure within set [Dates])

My problem is in my third query:
topCount ([Customer];10;[Dates])

The error occures:
invalid coercion from 'level' to 'value' for '[__ns_0].[Customer_dim][Customer_dim].[level1]' in 'set(member([__ns_0].[Customer_dim].[Customer_dim].[level1]))'

Can anybody help me, what have I dont wrong?

Thank you..

Regards,

Ratna
Title: Re: Invalid coercion from 'level' to 'value'
Post by: Francis aka khayman on 07 Nov 2013 08:28:07 PM
try this:

topCount (set(member([Customer]));10;[Dates])

Title: Re: Invalid coercion from 'level' to 'value'
Post by: ratnalein on 08 Nov 2013 07:57:52 AM
thank you khayman..