COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: alamrin on 23 Aug 2012 05:59:17 AM

Title: how to get delta valuefor a metric (current month - prev month)
Post by: alamrin on 23 Aug 2012 05:59:17 AM
count delta is requried of a metric from current month to previous month in the dashboard.

count of reports from current month - count of reports for previous month

This delta value is to be displayed in a singleton separately.

for eg:
reports for aug=10
reports for jul=2
then delta should be 8

sounds easy but its deceptively hard to implement.

any input regarding this help immensely.

Title: Re: how to get delta valuefor a metric (current month - prev month)
Post by: tjohnson3050 on 23 Aug 2012 01:29:46 PM
Is this a relational or dimensional package?
Title: Re: how to get delta valuefor a metric (current month - prev month)
Post by: alamrin on 24 Sep 2012 03:23:28 AM
relational package will be used.
Title: Re: how to get delta valuefor a metric (current month - prev month)
Post by: pricter on 24 Sep 2012 08:24:56 AM
The one is to apply a filter to the query that the month should be either "current month" or "previous month"
Then create two data items one for current month

if (month=current month) then (reports measure) else (0)

and one for the previous month.

if (month=previous month) then (reports measure) else (0)

and then add a third item to subtract the previous data item from the current data.