dbTalk Databases Forums  

another cognos reportnet question

comp.databases.olap comp.databases.olap


Discuss another cognos reportnet question in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zachrt
 
Posts: n/a

Default another cognos reportnet question - 04-08-2005 , 01:56 PM






Can the display values in a prompt be 2 columns from the same row? I
know you can display one column and use a second column to go after the
database. The example I have is we want to display both period year and
period number. We then would pull in the record either by using the
combination of those two fields or a unique identifier for the row. 1st
choice would be by using the tool. If not, could it be done by building
a string statement in the definition of the metadata and then using
that field as the display field?


Reply With Quote
  #2  
Old   
Michael Krzepkowski
 
Posts: n/a

Default Re: another cognos reportnet question - 04-08-2005 , 07:49 PM






zachrt wrote:
Quote:
Can the display values in a prompt be 2 columns from the same row? I
know you can display one column and use a second column to go after the
database. The example I have is we want to display both period year and
period number. We then would pull in the record either by using the
combination of those two fields or a unique identifier for the row. 1st
choice would be by using the tool. If not, could it be done by building
a string statement in the definition of the metadata and then using
that field as the display field?

Try something like year * 100 + month (200504) for key and whatever you can
make form these two numbers for display e.g. 2005-04 (this sorts well too).

(I don't think you can use two fields)
HTH

Michael



Reply With Quote
  #3  
Old   
ya
 
Posts: n/a

Default Re: another cognos reportnet question - 04-12-2005 , 04:39 AM



I think you could just do a concatenation of the two fields in the query.
Then use the syntax ?new_column_name? as a filter in your query. You can
then drag a prompt onto the prompt page and use this for your display. You
can also pick whatever you wish to be the query item as long as it's part of
the same query. Cheers.
ya


"zachrt" <ztussing (AT) gmail (DOT) com> wrote

Quote:
Can the display values in a prompt be 2 columns from the same row? I
know you can display one column and use a second column to go after the
database. The example I have is we want to display both period year and
period number. We then would pull in the record either by using the
combination of those two fields or a unique identifier for the row. 1st
choice would be by using the tool. If not, could it be done by building
a string statement in the definition of the metadata and then using
that field as the display field?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.