willjx
asked on
IBM COGNOS Report Query Question: Limiting a list to only the latest entry for a given MsrCd
In a Performance Measure History table is a list of when the users periodically key in their info regarding their targets.
However, for most of the requested reports all that is wanted is the latest entry for a given Measure. Measures are uniquely identified with a MsrCd#.
The History table not only has a unique date/time of entry, but each entry in the table creates a unique sequential ID.
None of the reports want to see either the entry date, MsrCd or the ID, and I have unsuccessfully been attempting to -behind the scenes- create such a filter, via “Data item”, “Filter”, Query Calculation, etc. using the below syntax. On occasion the syntax gets approved, but I do not accomplish my goal.
maximum ( [PM View prd].[DataTarget History].[ID] for [PM View prd].[DataTarget History].[MsrCd] )
Assistance please.
However, for most of the requested reports all that is wanted is the latest entry for a given Measure. Measures are uniquely identified with a MsrCd#.
The History table not only has a unique date/time of entry, but each entry in the table creates a unique sequential ID.
None of the reports want to see either the entry date, MsrCd or the ID, and I have unsuccessfully been attempting to -behind the scenes- create such a filter, via “Data item”, “Filter”, Query Calculation, etc. using the below syntax. On occasion the syntax gets approved, but I do not accomplish my goal.
maximum ( [PM View prd].[DataTarget History].[ID] for [PM View prd].[DataTarget History].[MsrCd] )
Assistance please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You just saved me innnumerable hours of trial and error attempts. I was totally on a different track.