IBM COGNOS Report Query Question: Limiting a list to only the latest entry for a given MsrCd
Posted on 2014-02-04
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] )