Crystal Report to report Monthly Open Incidents

We currently have an Incident Management System to log our Support issues. Incidents have a Created and Closed Date.
I have been asked to write a report that returns all Opened calls grouped by Month for the last 12 months. What I'm having difficult in is working out how to determine whether an Incident was open in one of those months.
Anyone have any ideas?
I'm trying to set this up as a Cross-Tab report with Months listed across the top and totals on 2nd row
Any help would be greatfully received

Thank you, I've changed the code to what I think reflects my Incident table however I get the error below:
Msg 207, Level 16, State 1, Line 22
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 23
Invalid column name 'daccepted'.
Msg 209, Level 16, State 1, Line 24
Ambiguous column name 'StartDate'.
Msg 207, Level 16, State 1, Line 2
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 2
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 2
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 3
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 3
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 3
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 3
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 4
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 4
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 4
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 5
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 5
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 5
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 5
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 6
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 6
Invalid column name 'daccepted'.
Msg 207, Level 16, State 1, Line 6
Invalid column name 'dcleared'.
Msg 207, Level 16, State 1, Line 6
Invalid column name 'dcleared'.
Msg 209, Level 16, State 1, Line 25
Ambiguous column name 'StartDate'.
My code looks like this:
select ReportedDate, CompletionDate, mm,
sum ( case when daccepted < ReportedDate and ( dcleared >= ReportedDate or dcleared = '1900-01-01') then 1 else 0 end ) as Brought_forward,
sum ( case when daccepted between ReportedDate and CompletionDate then 1 else 0 end ) as Opened, sum ( case when dcleared between  ReportedDate and CompletionDate then 1 else 0 end ) as Closed,
sum ( case when daccepted <= CompletionDate and ( dcleared > CompletionDate or dcleared = '1900-01-01') then 1 else 0 end ) as Carried_forward,
sum ( case when daccepted between ReportedDate and CompletionDate and ( dcleared > CompletionDate or dcleared = '1900-01-01') then 1 else 0 end ) as ThisMonths_Carried_forward,
sum ( case when daccepted between ReportedDate and CompletionDate and dcleared between  ReportedDate and CompletionDate  then 1 else 0 end ) as OpenResolvedThisMonth
from Incidents
cross join (     Select     dateadd( mm, mm * -1 , today - day(today ) ) + 1 as StartDate    , dateadd( mm, ( mm - 1) * -1 , today - day( today )  ) as EndDate    , mm    from        
( select 1 as mm
union all select 2
union all select 3      
union all select 4
union all select 5
union all select 6       
union all select 7
union all select 8
union all select 9      
union all select 10
union all select 11
union all select 12        ) cal
cross join (select convert(datetime,convert(char(10),getdate(),121)) as today) tt) DateRange
where ( dcleared = {ts '1900-01-01 00:00:00'} /* open calls, regardless of when started */
or daccepted >=  dateadd ( yy, -1, getdate() - day(getdate() ) ) /* all calls at least one year */)
group by StartDate, EndDate, mm
order by StartDate Desc
Thank you
Nathan

Similar Messages

  • Monthly report listing out ALL open PO

    Hi,
    As our management requested, we need a monthly report listing out ALL open PO for CDG, APR   Someone tell me to input cost centre but it is time consuming to input it as we have over 100 cost centers.  Do you know if I can input SPG/profit center or other data to run this report instead ?  Please advise the transaction code and how to perform it, such as need to know the profit center #, organization code etc
    Thanks
    Raja

    hi
    go to ME2N
    then select Scope of list  ALV
    Selection parameters  as           WE101     Open goods receipt   (select as per ur need )
    then execute u will get the list for open po
    now if u want it to specify the  profit center then go to ME2N and select dynamic selecion  (shift +F4)
    now u will get a smaal scrren , in purchaseing doc item selct profit center
    now u can see the profit center selection field ,give a proper profit center and follow the process as given above
    hope it help
    regards
    kunal

  • Crystal XI causing reports to take 20+ minutes to open

    We use Crystal Reports with TIER (totally integrated electronic record).  Our computer system is part of a state network.  Our TIER programmer lives in another city.  He creates Crystal reports from his location and we create them here at our facility also.  Last week his local server (on the state network) was replaced.  The server in question is not used by us -- our database is located on another server and our reports are also located elsewhere.  Network staff said we should see no impact at all since we do not use that server.  When they took down his local server (they were switching from a novell server to a microsoft server) -- we suddenly developed a problem opening reports.  They would open, but only after 20 minutes or longer.  After much troubleshooting we were able to figure out that any reports the programmer did were the problem.  Any reports created here were opening fine.  Once opened, all reports ran fine and queried the database quickly as usual.  There is no question about how he creates reports versus how we do -- he taught us and has started reports here that do work.  We finally got the network guys to start up the old server in the other city.  As soon as they did, our reports worked correctly again.  We have gotten them to agree to leave that server up while we work this out.  It seems Crystal is automatically tying to the original user's originating server for some reason.  I can't find any place in Crystal to change this.  I opened several reports, re-saved them from here but it didn't change anything.  I also went in through Crystal and Set Datasource Location (updated each field in report), but it didn't help.  I think the reason that isn't working is because there isn't anything wrong with the connection to the database itself.  For whatever reason it is like Crystal is searching for that old server for 20 minutes, finally decides to move on and then the report opens (sorry, not a very technical description).  We use a ton of reports and right now my only option is to rebuild from scratch or ensure the old server is left up and running indefinitely. Does anyone have any idea how to break the apparent automatic connection to that old server?

    You are making me think it might be a connection configuration or local machine space/frag issue. Both of these are easy to rule out - does your machine have an automatic maintenance policy (sweep for virus, defragment hard drives, and clean out junk files)?  Can your network techs do a trace test to see if there are bottlenecks in the connection?
    I still think you will want to use the data-base expert and find out what the default table bindings are.  You would not need to rebuild the reports, just re-configure the tables and links.  As long as the tables have the same fields and field names on the different source tables you will be fine.
    How big are the report templates? (multiple pages, intense graphic loads with charts or formatting, heavy calculations performed on the report level...).  Are they stored remotely or on the local workstation? Remote connections can take a while to get the report to the local machine if not properly configured (even if known to be connected and clear).
    The slow too open reports are still indicative of bad links.  You don't have to rebuild the reports, just re point the default source tables.

  • Automatization of Crystal Reports 9 reports with scripting

    <p>Hi all,</p><p>I have a problem on a project where i&#39;m working on. I don&#39;t know in which section to put this topic, so i posted it on a high level topic.</p><p>I have 78 Crystal Reporst 9 reports that i want to automate. By running a script with parameters, i want to generate all the reports instead of doing this 78 times.</p><p>For this i hade a contact with a BO-consultant and they told me that the automatization is possible with Crystal Reports Developer. So, i installed the evalution version of Crystal Reports XI Developer, but all i can see is that it is the Crystal Reports XI Standard!!</p><p>Or i have been wrong informed or i don&#39;t know how to open the CRDev environment?</p><p>How can i open the developing environment from CRDev?</p><p>Kind Regards</p>

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

  • Error while opening a report in report Builder

    Hello experts,
    My oracle apps version is R12.1.3
    I am getting an error message when opening a report in report builder.
    Warning : Opening a report saved with a newer version of Reports Builder.
    Functionality may be lost. Continue??
    What should i do now?? Please suggest.
    Thanks,
    Atul

    Hello,
    Sorry for late reply.
    Report Builder 9.0.4.0.3
    Oracle application Relese 12
    and database versin: is Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    plesae update the thread as soon as possible.
    After opening a report in Oracle Apps its open is different language. what could be the workaround for this..
    Do i need to change any langauge setting?
    Thanks
    Atul

  • Report Designer - Error while opening a saved report

    Hi,
    I am not sure if this is an authorization issue or configuration issue.
    When I try to open a saved report on Report designer, I keeping getting an error: Report Version is invalid: "0".
    Has anybody faced similar problem?
    We are on SP09.
    Regards,
    Payal.

    Payal,
    I am afraid, that your report might be corrupted. This might have happened, if in tx SE16 the version is changed. The Report XML displayed in SE16 for table RSERDATA, is limited to ca. 1024 charachters. When editing the version, after pressing the save button, the Report XML is cut off at 1024 charachters and the report is lost.
    Please do not set the report version in tx SE16!
    I will need to configure the program RS_REPORT_MAINTAIN, such that reports with version "0" can be saved with the minimum version 9.0.
    Until then I recommend the following procedure for Reports that are ok, but have the Version "0" bug:
    1) in tx SE38, program: RS_REPORT_MAINTAIN
        open your report with option "DT" (designtime)
    2) Switch to Edit mode.
        Make a backup copy of the report using the "Save As" Button.
        You can copy the Report XML to the clipboard using Ctrl-A, Ctrl-C
    3a) Open a dummy report in RS_REPORT_MAINTAIN created previously with
          Report Desginer ( --> The version is set to 9.0).
          Switch to edit mode and paste the Report XML and Save.
      or
    3b) Debug FUNCTION rs_bex_report_load_rfc.
          Open a report and change the value of E_REPORT_VERSION to "9.0"
          before leaving the function.
    Hope this helps, karim
    P.S.
    I will update note 1016224

  • Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)

    Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)?
    Exemple:
    Table1
    Cliente name:
    John
    Client number:
    12345
    Survay number of negative answers:
    3
    Table2
    Questions and answers that were negative:
    Question: How much time where you waiting
    Avaluation: 3 (from 1 to 10)
    Answer: They only called me 1 mouth later
    Can you please help me?

    Hi,
    Based on the description, I understand that you want to add subreport in the main report. When previewing the main report, the subreport can be shown in detail. Please see the screenshots on my test:
    In Reporting Services, we can create parameters and pass them from main report to subreport in order to control the data dynamically.
    References:
    Subreports (Report Builder and SSRS)
    Add a Subreport and Parameters (Report Builder and SSRS)
    If I have any misunderstanding, please feel free to contact me.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Reports to display vendor open items by payment methods

    Hi Gurus,
    Is there any reports to display vendor open items by payment methods?
    Thanks i

    Hi,
      Use FBl1N or F.41
    Goto Dynamic selections, Select payment method give that and execute. It will give you the report payment methd wise.
    Regards,
    Radhika.

  • Report link that will open to a new window

    Hi,
    I need a report link that will open to a new window. Below is my code.
    {="<ahref=\"http://<server>:<port>/OpenDocument/opendoc/openDocument.jsp?sRefresh=Y&sPath
    ParentFolder,subfolder&sDocname=<Report Name>=wid"\">"[ID]+"</a>"}
    Thank you.
    Rose

    Add the parameter sWindow=new to your URL
    ...openDocument.jsp?sDocname=SalesReport&sWindow=new
    OpenDocument Documentation:
    XI 3:
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    R2:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/800f7400-bf3e-2b10-fa81-c6c74f457ab4

  • Crystal report - sub report

    Hi everyone
    Can anybody help me with crystal report - sub report problem  as i am new to crystal report.
    I have created two reports"mainreport" and "subreport" using crysta report XI with the same query for both reports using stored procedure. I set the links for both reports at design time and its works fine there. then i added those two reports into my .net application and now i want to set the paramaters and also want to set the datasource  programatically with same query but with two different functions which returns datatable. I am using .visual studio 2008 (.net 3.5) and sql 2005 as back end.
    Any help will be appreciated.
    Thanks In Advance
    Regards,
    Shruti Batra

    Only CR 2008 (12.x) and CR 10.5 (bundles with .NET 2008) is supported with .NET 2008. And while running reports created in CR XI with CR 10.5 may work, you are taking your chances with parameterized reports as there have been a lot of changes in the parameter behavior between CR 10 and CR XI. Thus, my recommendation would be to upgrade to CR 2008, ensuring your version is 12.3.0.601.
    Re. programming questions. Start with sample apps:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    See the [Crystal Reports For Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true]. It will apply to CR 2008 and VS 2008.
    See the developer help files;
    https://boc.sdn.sap.com/developer/library
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Stock report( closing of today opening of tomorrow)

    Dear Experts
    can anybody help me in getting a stock report the parameters are:
    Opening Ballance - ( Qty -Value ) , Issue during a period -(Qty- Value ) , Rceipt during a period( Qty-Value)
    Closing Stock(Qty-Value)
    my one of the  client requriment   closing of today  opening of tomorrow
      is this possible  please help me out.
    waiting for your help
    warm regards
    Edited by: sinha0010 on Jun 3, 2010 12:18 PM

    Hi Sinha Check this query..
    May be its helpful for u.
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Group nvarchar(10)
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = 'Group B')
    Set @Whse = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse = ''[%3]' )
    Select
    @Whse as 'Warehouse',     
    a.Itemcode,
    max(a.Dscription) as 'Description',MAX(a.Price) as 'Price',
    sum(a.[Opening Balance]) as [Opening Balance],
    sum(a.[IN]) as [Receipt],
    sum(a.OUT) as [Issue],
    ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing,
    ( MAX(a.Price) *  ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) ) as ClosingValue
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.Price,
    (sum(N1.inqty)-sum(n1.outqty)) as [Opening Balance],
    0 as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.Price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as [Opening Balance],
    sum(N1.inqty) as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as [Opening Balance],
    0 as [IN],
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price) a, dbo.OITM I1
    where
    a.ItemCode=I1.ItemCode and
    I1.ItmsGrpCod = @Group
    Group By
    a.Itemcode
    Order By a.Itemcode
    Regards,
    Vamsi

  • Firefox crashes upon open - won't send crash report; crash report info summarized below

    I have one computer that crash every time I start Firefox. Ocassionally the firefox window will appear for less than a second and then the Crash Report Window shows up; most times it goes right to Crash Report Window. Then it is for some reason unable to send the crash repor; it keeps looping back to the crash report. I've checked my modem and router are operating correctly; I have another computer that's working fine. I've run scan for Trojans, viruses and still see the problem. Any help would be very much appreciated as I'm stuck at this point. For what it's worth, Internet Explorer has the same problem, crashing upon opening.
    == Crash ID(s) ==
    not available

    Hello. I have a similar problem to the question of Ryan Vaught, (Firefox crashes upon open - won't send crash report; crash report info summarized below [MY] Firefox version: prior one to 3.6.7 Operating System: Windows XP Provessional). Mine is a bit different tho. Firefox seems to be crashing and my internet crashes right with it. When it does this, it also takes out some Win32 system .exe files. I too have ran AVG (Full Coverage /Purchased one) and then updated to Viper (Sunbelt Software) and it comes up clean of any viruses, etc. Once it crashes and I close Firefox, the crash report request comes up. When I hit send, it says it cannot be sent with no additional information as to why. I just updated Firefox to 3.6.7 and sure hope this helps, but it almost always happens when I am playing games that use flash. I can send a screenshot if you need it and feel free to edit my question if need be. I've checked my Viper settings and can get to all the websites so far trying to rule it out. Deleted my internet set up and then added it back as a new connection (hope that made sense), so I don't know who to be asking this question of, but hoping you may know the answer why I can't send the crash report. Whew! Sorry for the lengthy question/issue. Your help is greatly appreciated!! Carolyn Burnam
    <blockquote>removed personal email -MJB</blockquote>

  • HTML report refuses to be opened

    When I'm under "User" or "Guest" login
    on WinXP sp2 (FAT32), HTML report refuses to be opened with "Open HTML Report in browser.vi" in IE (the same story with the OPERA, forinst).
    When I'm under "Administrator", it's OK.
    How can I work it out?
    Thanks.

    Hello,
    Have you tried sharing the National Instruments folder under Program Files?  The Open HTML Report in browser.vi uses a core function whose block diagram cannot be viewd (it is password protected), but it probably calls a dll which non-administrators don't have access to.  If this doesn't work, I'll play more on my machine as well, but I am having problems creating new users at the moment so I can't try this before posting   Let me know the results, and we'll keep searching for an answer!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Serial Number Transaction Report Window isn't opening when adding AR Invoice

    Hi,
    For One of my Client the Serial Number Transaction Report Window is not opening when adding the AR Invoice.
    In the Invoice all the item's that is present in the line level are SERIAL MANAGED and Management Method is ON RELEASE ONLY.
    Why is it so?

    Hi,
    Do you receive any error message? Is it possible to add without selecting invoice without selecting serial number?
    What is your B1 version and PL?
    Thanks & Regards,
    Nagarajan

  • Report needed for Red (High) Incidents only

    Hi,
    My boss would like me to be able to run a report that includes red (high) incidents only. I've looked through all of the possible reports and can't find anything remotely close to his request. Any help would be appreciated.
    Thanks,
    Kerry

    Kerry;
      You should be able to create a query to gather only red severity events, and then make this query part of a report.
      In the query, you will want to click the "ANY" under the 'Events' column.  In the resulting pane, you will want to set the "Restrict to Severity" drop-down to "Red".  From there you can further tune the query to restrict it to specific reporting devices, events, etc.  This query should return only red severity events.  From there, you can make this query a report by clicking the "Save As Report" button.
    Scott

Maybe you are looking for

  • Graph legend and print options

    When building a graph using the graphTable bean, I'd like to place the legend below the graph instead of above. How can this be done? Also, the graph plots a number of lines, each of which is rendered in a different color. Is there a way to make the

  • Descriptions of individual episodes of my podcast NOT showing up in iTunes Store Listing

    Podcast feed: http://talkradiomeltdown.com/podcast.xml Feedburner variant feed: http://feeds.feedburner.com/talkradiomeltdown Store listing: http://talkradiomeltdown.com/itunes I have coded my podcast feed entirely by myself, using the template provi

  • Showing multiple links from inside a flex datagrid button

    Hi, I have a requirement where I need to show a button inside flex datagrid column.Which I'm doing with custom itemrenderer.When the User clicks on a particular button inside data grid I need to show him multiple links with images where user cal clic

  • NEF + ACR = HOPELESS

    I'm using ACR 3.3 on Mac OSX 10.4.3. I'm a Nikon user - D2X, D200 and D70. I'm also a wedding shooter, which means nailing color (bride's skin and dress must be correct) in sometimes wildly different light - bright sunlight to deep shade to warm suns

  • Opening word document form6i

    Dear Professionals, I have field in form, field name is "Contract ID", where user will save a unique number example '5566' and sametime user will save a word document in d:\ drive with same '5566.doc' name. i need to retrieve that word file upon butt