Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I define temporary variables in the Cognos Report Studio expression definition?

Hello,

I am using the IBM Cognos Report Studio for Insight report development and I am trying to create a calculated Data Item.  Since I have to perform some string manipulation, I would like to know how to temporarily define a variable to store data within the Expression Definition.

Is this possible?

Thank you and best regards,

Andrew

0 votes


Accepted answer

Permanent link
Hi Andrew,

Have you tried just creating a Data Item to do your string manipulation, and then referencing that Data Item within another Data Item in the same query?  I've done that before when we have some complex manipulation or calculation as I test my report to ensure the data is being calculated correctly.  This way when you "view tabular data" for that query you can see how the pieces come together.

Hope that helps!
Jackie
Andrew Trobec selected this answer as the correct answer

2 votes

Comments

Thanks Jackie, this looks like the way forward!

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,953

Question asked: May 30 '13, 5:57 a.m.

Question was seen: 15,283 times

Last updated: Jul 30 '13, 3:43 a.m.

Confirmation Cancel Confirm