COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: gosoccer on 05 Oct 2012 03:30:02 PM

Title: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 05 Oct 2012 03:30:02 PM
Friends,
I need to show the specific site# and description as a part of a value prompt (checkbox).
It's working just fine with one value chosen to display but i need to show two values to the
user as a part of the checkbox listing.

Let me know if there is an easy way of doing this if both Site# and Site Descriptions are in the Same Level and available.

Thx so much
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: pricter on 05 Oct 2012 04:01:14 PM
Why do you concant the site# and the description in a data item and use it as a display value?
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 08 Oct 2012 12:07:11 PM
pricter,
I am using the following in the data item but get an error,
[dsCube-].[xxx].[xxx].[SITE_ID]||[dsCube-].[xxxx].[xxx].[SITE_NAME]

  The operands of '[dsCube-].[xxxx].[xxxx].[SITE_ID] || [dsCube].[xxxx].[xxxx].[SITE_NAME]' cannot be converted to consistent dimensional object.

Do you by any chance know the correct sentence?
Thank you so much!.
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: pricter on 08 Oct 2012 12:33:32 PM
Could you clarify the following

[site id] and and [site name] are members of an hierarchy or attributes of it?
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 08 Oct 2012 12:57:24 PM
yes, that is correct.
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: pricter on 08 Oct 2012 12:58:18 PM
Which one of two

Member of a hierarchy?
Attributes?
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 08 Oct 2012 01:09:48 PM
There is a Dimension/Hierarchy as below,
Location Dimension
   Location Hierarchy
      SITE_ID    level
      SITE_NAME level
Under each, there are the members like 12121 for site id and Tawson for site_name

Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: pricter on 08 Oct 2012 01:13:28 PM
Try
caption([dsCube-].[xxx].[xxx].[SITE_ID])+caption([dsCube-].[xxx].[xxx].[SITE_NAME])
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 08 Oct 2012 02:19:07 PM
OK
Created the Data Item and selected the Data Item a part of the Checklist - Display Value but it is showing me the caption and not the value
of each SITE_NAME.
The DISPLAY VALUE is showing me,
data item1
data item1
data item1
for the three sites that is show their site_id and site_name
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 08 Oct 2012 03:28:11 PM
The following worked Picter,
])||+caption. Just added the || before the + sign and it is working. Not sure why??
Thank you so much.  :)
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: pricter on 09 Oct 2012 02:33:33 AM
I am glad that I help you overcome your difficulty.
Title: Re: Multiple Items to Display in a Dimensional Hierarchy Checkbox
Post by: gosoccer on 11 Oct 2012 12:40:40 PM
Yes. Now, I'm big time stuck on something else. I'll start the request or reply again.
Thx so much!!