Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cognos variables

Status
Not open for further replies.

handpass

Programmer
Oct 13, 2006
10
US
I would like to store a value in a variable and then use this variable in a calculation with a value from a similar but unrelated record.

For example in Record A, I am receiving back the finishing time of a task. In Record B, I am receiving back the starting time of the new task. The calculation that I want to perform is to get the difference between the finishing time in Record A and the start time in Record B, i.e. how long is the system idle. (FinishingTime - NewStartTime = IdleTime)

As there is no common link between these two records is there anyway to store these values in variables so that I can use them later.
Thanks in advance.
 
Without knowing which application you are using we can't answer your question.

Gary Parker
MIS Data Analyst
Manchester, England
 
Hi,

I don't think you will be able to do this using the solution you're considering. My feeling is your best bet will be to try to join record A to record B in your report (bring them in using separate queries and add a join object between them [if possible]) so that both dates are on the same joined row.

Without seeing your data it's difficult to say how easy/hard this will be.

Regards,

MF.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top