COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Wangd on 21 Jan 2018 01:04:46 AM

Title: How to create a "backlog" report Service Requests
Post by: Wangd on 21 Jan 2018 01:04:46 AM
I need to create a "backlog" report showing daily incomplete Service Requests (SRs) within the month.   As the day changes, the status changes. So the calculation needs to be dynamic.

I have a SR Status, Created Date and a measure of SR Count.   

How do I get the beginning backlog (open) total? Then for each day, the backlog will change by SR created minus SR closed. 

Thanks for any insight. 

Deanna
Title: Re: How to create a "backlog" report Service Requests
Post by: RubenvdLinden on 22 Jan 2018 12:32:00 PM
Do you have a data item for the change date?
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 22 Jan 2018 12:46:39 PM
Unfortunately, I don't.  Are you suggesting to create a data item to keep track of the changes?  How?
Title: Re: How to create a "backlog" report Service Requests
Post by: bdbits on 23 Jan 2018 05:55:03 PM
Maybe I have missed something, but isn't this a straightforward calculation comparing system date/time to the created date/time, with a result based on the age? If that is right, a case or if statement should do the trick.
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 23 Jan 2018 06:27:39 PM
It is a little bit more than that. By comparing the created date with the current date will only give me the current picture of what's not completed. I have attached a screen print of the graph I eventually wants to produce.

The report is run every morning and we would like to show the backlog as of the end of each day.  For example, at the end of 1/2/18, there were 80 incomplete SR. On 1/3, there were 50 incomplete SRs.  On 1/4, there were 40.  However, the data is changing ever minutes. By the time I run the next report, 1/2 might have only 70 left and 1/3 still has 50 and 1/4 has 30 and so forth. The goal is to capture the 80, 50 and 40 on the graph so that a trend is presented. I don't have a container to hold the number as of the end of each day until the SR is completed.

Hope this is clearer.  Thank you very much for looking at this request.  Really appreciate it.  Let me know if you have more questions.
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 23 Jan 2018 06:36:27 PM
The post here is similar to what I want to achieve, but I can't completely follow it and I am not sure if the final expression eventually worked.

http://www.cognoise.com/index.php?topic=25633.0

Thanks for any help.

Deanna
Title: Re: How to create a "backlog" report Service Requests
Post by: RubenvdLinden on 24 Jan 2018 02:05:51 AM
Without a change date (or finish date), you can't monitor when service requests changed.
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 24 Jan 2018 12:49:57 PM
I do have completed date.  It only records the actual date/time that the SR is completed.  So if the SR is open on 1/4 and completed on 1/8, the completed date field is blank until 1/8.  I still need to count the SR as open for 1/4, 1/5, 1/6 and 1/7. I am stuck thinking there needs to be a way to calculate between the completed date and the each calendar date, but I don't have a table or holder for the calendar date. 

Maybe there is a better way.  Please advise. 

Thanks!
Deanna
Title: Re: How to create a "backlog" report Service Requests
Post by: RubenvdLinden on 24 Jan 2018 02:34:11 PM
What RDBMS do you use (e.g. Oracle, MSSQL)? There are some tricks to generate a calendar table on the fly.
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 24 Jan 2018 03:18:54 PM
We use Oracle.  What makes things complicated is that the application and database are hosted in the vendor's site.  All I can do is to use Cognos Report Studio to connect to the data packages for reports.  However, we can request the vendor to create stuff for us.  I just need to know what to ask.

Thanks!
Deanna
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 24 Jan 2018 03:20:29 PM
I also need to know if there is nothing I can do at the report level. 

Will any of the dimensional measures such as PeriodsToDate be useful?

Thanks!
Deanna
Title: Re: How to create a "backlog" report Service Requests
Post by: RubenvdLinden on 25 Jan 2018 02:26:10 AM
periodsToDate will only work on a dimensional package such as a PowerCube or DMR. In case of DMR, you will also need a date dimension that contains all the dates.

In Oracle, you can run this query to generate the dates of the last 365 days, including today:

SELECT TRUNC (SYSDATE - ROWNUM + 1) dt
  FROM DUAL CONNECT BY ROWNUM < 366


In Report Studio, simply add SQL from your query toolbox and alter the last part of the query (< 366) to your needs.
Title: Re: How to create a "backlog" report Service Requests
Post by: hespora on 25 Jan 2018 03:35:06 AM
Here's a post with a syntax that yields any range of dates, plus an example report def that shows a couple other things you can do: http://www.cognoise.com/index.php/topic,31986.msg104569.html
Title: Re: How to create a "backlog" report Service Requests
Post by: bdbits on 25 Jan 2018 11:57:38 AM
I like the method hespora linked to from tjohnson3050 as it is database independent, incorporates a selectable range, and in this case I think it is probably good to have the processing on the Cognos server.

Join that up with your request data and use an expression with the open/close dates and that should get you there.
Title: Re: How to create a "backlog" report Service Requests
Post by: Wangd on 26 Jan 2018 12:14:25 PM
Thank you, everyone for the suggestions.  I will give them a try.

Deanna