COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Chandrasekar on 05 Jun 2014 01:02:11 AM

Title: How to use cognos dimensional functions?
Post by: Chandrasekar on 05 Jun 2014 01:02:11 AM
Hi All,

I need the information of how to use cognos dimensional functions and where it placed on member functions?

Please help me?

Thanks & Regards,
Chandrasekar
Title: Re: How to use cognos dimensional functions?
Post by: Francis aka khayman on 05 Jun 2014 02:07:39 AM
New to dimensional reporting eh? You need to be more specific what issues you are facing.

In the meantime you can read some tips in dimensional reporting here:

http://cognosm.fm3online.com
Title: Re: How to use cognos dimensional functions?
Post by: Chandrasekar on 05 Jun 2014 02:33:34 AM
Hi khayman,

Ya, I am new to dimensional functions.

I have to add simple ancestor() and Bottoncount() functions.

I create a data item is ancestor([Product Type], 1)  and i get the error message is "Invalid coercion from string to member".

Can you give the suggestions.

Thanks & Regards,
Chandrasekar



Title: Re: How to use cognos dimensional functions?
Post by: Francis aka khayman on 05 Jun 2014 02:48:01 AM
Lets use Time Dimension as it is more familiar.

The parameter for ancestor function should be a member.
For example, instead of: ancestor([Month],1)
you should: ancestor([April 2014],1)

In your case it should be a specific Product Type member
Title: Re: How to use cognos dimensional functions?
Post by: Chandrasekar on 05 Jun 2014 02:59:51 AM
Hi khayman,

I give both, ancestor([April 2014],1) and separate member ancestor([Cooking Gear],1).

Same problem will occur.

Thanks & Regards,
Title: Re: How to use cognos dimensional functions?
Post by: Francis aka khayman on 05 Jun 2014 03:06:29 AM
how did you get [April 2014] ? it should be a member. when you open your dimension, level then there is a folder called members.. inside that folders are the members. members have blue rectangle icon.

If you check the images here:
http://cognosm.fm3online.com/dimensional/dimensional-current-month/

you will see where to find members in your dimension. you should drag them in your query and that is the one you use in the ancestor function
Title: Re: How to use cognos dimensional functions?
Post by: Chandrasekar on 05 Jun 2014 05:40:58 AM
Hi khayman,

Now it works, Thanks for your golden time to spend me.

Regards,
Chandrasekar