Report on Avg on days

Hi All
I have a strange requirement in my reports. In my system I have the forecasted data on days wise and my user wants to see the data in Average Monthly. If the data is available for 20 days the system automatically calculate for Sum of 20 days divided b 20 days only.
If the have or 25 das the system have to calculate Sum of 25 days divided by 25 only.
How can I achieve this requirement and let us know.
Thanks & Regards
Gopi Allu

Hi Allu,
     Really nice requirement.
According to me you can acheive this by following steps.
1) Create a calculated Keyfigure which shows Count of days. ( refrence https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a)
2) Then calculate total forecast Value.
3) and use Total Value / Total Days. for average.
Just try it, don't know weather Count of Days working or not.
Regards,

Similar Messages

  • Report to show average days it takes customers to pay their invoices

    I am wondering if there is a report in SAP that can help me determine the average days it takes customers to pay their invoices?

    Hi,
    Try this for date range
    declare @from as datetime
    Declare @to as datetime
    Set @from = /* Select min(T5.DocDate) from OINM T5 where T5.DocDate= */ '[%0]'
    Set @to = /* Select max(T6.DocDate) from OINM T6 where T6.DocDate= */ '[%1]'
    Select A.CardCode, A.CardName, Avg(A.Diff) [AverageDays] from
    (SELECT T2.[CardCode], T2.[DocEntry],
    T2.[CardName], max(T2.DocDate)[Inv], max(T0.DocDate) [Pay],
    datediff(dd, max(T2.DocDate), max(T0.DocDate)) [Diff]
    FROM ORCT T0 
    INNER JOIN RCT2 T1 ON T0.DocEntry = T1.DocNum
    inner join OINV T2 on T1.DocEntry = T2.DocEntry
    where T2.DocDate between @from and @to
    Group by  T2.[CardCode], T2.DocEntry, T2.[CardName]) A
    Group by A.CardCode, A.CardName
    Regards,
    Bala

  • Ageing report on over 30 days

    Hi Experts
    How to do the selection for Ageing Report in Over 30days, Over 211 days Above 30 days, Total Over 30 days  explain detailed with offest values.
    Edited by: Sk Babu999 on Dec 29, 2010 2:01 PM

    Hi:
    Take a look at the paper by Surendra Reddy.
    "Calculating the Ageing of the Materials"
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc?quicklink=index&overridelayout=true
    Another example is the paper by Neelesh Kumar Jain.
    "Creating Bucket Scenarios using Exception Aggregation (SAP Netweaver 7.0 BI)"
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09f49c2-7448-2c10-ac92-d75f263a0dce?quicklink=index&overridelayout=true
    Regards,
    Francisco Milán.

  • Report Request - Tickets by day of the week

    So there are plenty of reports that show data based on past X days, but as far as I can see, none break it up into by days of the week.
    Example, For the last month, how many tickets were closed on Monday, Tuesday, by what Tech, in which Category/Location/Custom attribute.
    Could someone better than I make this happen?
    This topic first appeared in the Spiceworks Community

    I am not sure about your help.  Text variable is part of the header of a column and how is it possible to use the text variable as part of the result area.  I want the day to be part of the line item in the report.
    Appreciate if any one can provide their thoughts and input.
    Regards
    Sundar

  • Issue with date formula when running a report on the 1st day of the month

    We have a formula that compares last month data against last year last month, the report runs on the 1st of every month although the report errors when it tries to run in January being the first month of the new year it tries to look for a month begining with Zero instead of looking back at decemeber which would be 12.
    Does anyone any solutions for this issue?
    Thanks,
    Chris
    Example of some formula's we have tried but none seem to work.
    if {@MonthName} = "December" then year({CDCCHD.CDOPDT}) in year(currentdate)-1 to year(currentdate)-2 else year({CDCCHD.CDOPDT}) in year(currentdate)
    OR
    (if {@Last Full Month Name}= "December" then year({CDCCHD.CDOPDT})= year(currentdate)-2 or
    {CDCCHD.CDOPDT} in lastyearytd else {CDCCHD.CDOPDT} in lastyearytd or
    {CDCCHD.CDOPDT} in yeartodate)
    OR
    ({CDCCHD.CDOPDT} in dateserial(year(currentdate)-1,month(currentdate),01)-1 to dateserial(year(currentdate)-1,month(currentdate)-1,01) or
    {CDCCHD.CDOPDT} in lastfullmonth)
    OR
    if {@monthname} = "December" then {CDCCHD.CDOPDT} in dateadd("m", -28, (currentdate)) to (currentdate)-14 else {CDCCHD.CDOPDT} in dateadd("m", -14, (currentdate)) to (currentdate)

    Chris,
    Give these formulas a try...
    Beg of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate) - 1, #1/1/1900#)
    End of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate), #1/1/1900#)
    Beg December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -2, 12,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate) -1, 12,1)
    End December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -1, 1,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate), 1,1)
    Note that the "End" formulas produce a value that shows midnight of the following day that you would normally expect to see... For example, if you are expecting to see 12/31/2009, it will show 1-1-2010.
    The reason is that the formulas come out to be midnight of the day shown... So a range of 12/1/2009 - 1/1/2010 will include 12/31/2009's data but none of 1/1/2010... (12/1/2009 - 12/31/2009 would actually cut off 12/31/2009).
    If for some reason your data is stored w/o time values then an adjustment would need to be mande.
    HTH,
    Jason

  • Suggestion :  Have the "Top Users in Forum" report based on 30 days

    Currently, the "Top Users in Forum" listing is based on cumulative points. This means that we will never see "rising stars !".
    If the list were to report based on, say, points earned in the past 30 days, we'd at least be able to note some "rising stars !"
    Hemant K Chitale

    Hemant K Chitale wrote:
    Currently, the "Top Users in Forum" listing is based on cumulative points. This means that we will never see "rising stars !".
    If the list were to report based on, say, points earned in the past 30 days, we'd at least be able to note some "rising stars !"
    Hemant K ChitaleCan Jive handle the extra processing required to maintain both overall points for the persons status AND points in the last 30 days for the Top Users lists, per forum? Jeez, it can hardly handle serving the threads, don't give it more work to do. If we want anything we want the little dotty things back, at least they were useful, unlike the points system.

  • Extract data on report between last 30 days from current date.

    Hi Experts,
    Ealrier i had provided user promt to select the date range, now i need to schedule the report for this i have to set the date between last 30 days from current date.
    How can i add this in formaula on record selection.
    before:
    {pm_process.pm_creation_date} in {@Start Date to UTC} to {@End Date to UTC}
    I tried:
    {pm_process.pm_creation_date} in CurrentDate() - 30 to CurrentDate()
    But this is diplaying me only data of 30th date from current date.
    Please advice.

    Hi Brian,
    Thank you!
    1. I have not created any function for {pm_process.pm_creation_date} in [CurrentDate() - 30 to CurrentDate()] i am just adding this on Record Selection and its not helping.
    2. {pm_process.pm_creation_date} in Last30Days; this is throwing below error.
    please advice what to be done?

  • Dynamic date parameters for a scheduled report that runs every day

    I have a report that has input parameters for a start date and
    end date. The report will be scheduled to run once a day at a
    scheduled time. I need the report to automatically set the start
    date and end dates when the report runs at the scheduled time.
    When the report runs at the scheduled time, the end date needs
    to be set to that time and the start date needs to be set to 24
    hrs before the end date. I want the start and end dates to roll
    forward automatically when the scheduled report runs each day. I
    don't want any user intervention to change the start and end
    dates every day. How can I do this in a report ?
    Also, since the report is scheduled to run each day, I want the
    output to be saved to a unique file name each time the report is
    run as each day's report will report on the data only for that
    day. How can I get the report to save to a unique file name
    automatically each day ? Again, I don't want any user
    intervention where they would set the output file name manually.

    Try adding the following in the beforereport or beforepform
    trigger, before the RETURN clause (TRUNC gets rid of the time
    component of the date):
    :p_date_from := TRUNC(sysdate) - 1;
    :p_date_to := TRUNC(sysdate);
    :desname := 'REPORT'||TO_CHAR(sysdate, 'DDMMYYYY')||'.txt'
    Paul Williams

  • Report Supplier Lead Time - Days

    Hi All,
    Can anybody give me the characters, key figures, CKF's, RKF's and other fields that are usually used in Supplier Lead Time - Days Report in general irrespective of the requirement.....come up what ever you remember from your side.
    Thanks All,

    Nevermind

  • Reports Greater Than 30 Days

    I need to display the number of problem tickets that are more than 30 days open based on the date created. and calculate the number of open problem tickets more than 30 days. So far the formula I have is:
    if {table.datecreated} > Date (30) Then
    Sum ({table.status}, {table.itemnumber})
    Am I on the right track? Any ideas? I am having trouble with the date functions in the formula workshop. The reading materials have all lead me to a dead end.
    Thanks,
    ITSteveSE

    Hello,
    please also see below some explanation plus samples from the CR Help (DateDiff) :
    Basic and Crystal syntax.
    Overloads
    DateDiff (intervalType, startDateTime, endDateTime)
    DateDiff (intervalType, startDateTime, endDateTime, firstDayOfWeek)
    Arguments
    intervalType is a String expression that is the interval of time you use to calculate the difference between startDateTime and endDateTime. Possible values can be:
    Interval type value Description
    yyyy
    Year
    q
    Quarter
    m
    Month
    y
    Day of year
    d
    Day (both "y" and "d" find the difference in days)
    w
    Number of weeks between startDateTime and endDateTime
    ww
    Number of firstDayOfWeek's between startDateTime and endDateTime
    h
    Hour
    n
    Minute
    s
    Second
    startDateTime is the first DateTime value used in calculating the difference.
    endDateTime is the second DateTime value used in calculating the difference.
    firstDayOfWeek is an optional constant specifying the first day of the week. If not specified, crSunday is assumed. See Day of Week constants.
    Returns
    A Number value.
    Action
    DateDiff returns a number of time intervals between two specified dates.
    Examples
    The following examples are applicable to both Basic and Crystal syntax:
    Use DateDiff with the "d" or "y" interval type parameter to find the number of days between two dates:
    DateDiff ("d", #10/7/1999#, #10/10/1999#)
    Returns 3.
    Use DateDiff with the "yyyy" interval type parameter to find the number of years difference between two dates. This use of DateDiff is the same as finding the difference between the year of endDateTime and the year of startDateTime.
    DateDiff ("yyyy", #10/7/1999#, #2/10/2005#)
    Returns 6.
    DateDiff ("yyyy", #12/31/1999#, #1/1/2000#)
    Returns 1 (a 1 year difference), even though there is only a 1 day difference between the dates.
    DateDiff ("yyyy", #1/1/1999#, #12/31/1999#)
    Returns 0 (a 0 year difference), even though there is a 364 day difference.
    Suppose that for the above examples, the first date is the date that you bought a mutual fund, and the second date is the date you sold it. The mutual fund company must send you an annual report for every year in which you owned units in the fund. Thus, you would get 7, 2 and 1 annual reports respectively, in the above cases.
    Use DateDiff with the "q" parameter to find the number of quarters (3 month periods) difference between two dates.
    DateDiff ("q", #10/6/1999#, #5/20/2003#)
    Returns 14.
    DateDiff ("q", #3/31/1999#, #4/1/1999#)
    Returns 1. The two dates are in adjacent quarters.
    DateDiff ("q", #1/1/1999#, #3/31/1999#)
    Returns 0. The two dates are in the same quarter.
    Suppose the mutual fund company in the "yyyy" example mailed out quarterly reports. Then it would need to mail out 15, 2 and 1 quarterly reports respectively, in the above cases.
    Use DateDiff with the "m" parameter to find the number of months difference between two dates.
    DateDiff ("m", #3/15/1999#, #7/13/1999#)
    Returns 4.
    Use DateDiff with the "w" parameter to calculate the number of weeks between two dates. For example, if startDateTime is on a Tuesday, DateDiff counts the number of Tuesdays between startDateTime and endDateTime not including the initial Tuesday of startDateTime. Note however that it counts endDateTime if endDateTime is on a Tuesday.
    DateDiff ("w", #10/19/1999#, #10/25/1999#)
    Returns 0.
    DateDiff ("w", #10/19/1999#, #10/26/1999#)
    Returns 1.
    Use DateDiff with the "ww" parameter to calculate the number of firstDayOfWeek's occurring between two dates. For the DateDiff function, the "ww" parameter is the only one that makes use of the firstDayOfWeek argument. It is ignored for all the other interval type parameters. For example, if firstDayOfWeek is crWednesday, it counts the number of Wednesday's between startDateTime and endDateTime. It does not count startDateTime even if startDateTime falls on a Wednesday, but it does count endDateTime if endDateTime falls on a Wednesday. For the examples, note that October 6, 13, 20 and 27 all fall on a Wednesday in 1999.
    DateDiff ("ww", #10/5/1999#, #10/29/1999#, crWednesday)
    Returns 4.
    DateDiff ("ww", #10/6/1999#, #10/29/1999#, crWednesday)
    Returns 3.
    DateDiff ("ww", #10/5/1999#, #10/27/1999#, crWednesday)
    Returns 4.
    For example, suppose you want to calculate the number of days between the order date and ship date, excluding Saturdays and Sundays:
    Rem Basic syntax
    Dim d1, d2
    d1 = {Orders.Order Date}
    d2 = {Orders.Ship Date}
    formula = DateDiff("d", d1, d2) - _
                DateDiff("ww", d1, d2, crSaturday) - _
                DateDiff("ww", d1, d2, crSunday)
    //Crystal syntax
    Local DateTimeVar d1 := {Orders.Order Date};
    Local DateTimeVar d2 := {Orders.Ship Date};
    DateDiff ("d", d1, d2) -
         DateDiff ("ww", d1, d2, crSaturday) -
         DateDiff ("ww", d1, d2, crSunday)

  • Recovery Point Status Report Shows Only One Day

    Hello. Our Recovery Point Status Report showed us the last five days until about a month ago and now it only shows us one day. Just happened over a week-end when there was nothing changed on the server. We appear to have recovery points that go back
    a week and the recovery point status is set to a month. We are running System Center 2012 R2 DPM.
    Any help is appreciated, thank you for your time. 
    g

    Hi,
    Check your status report granularity settings for each protection group and make sure it's set for 1 day instead of weekly.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Report: max/avg of column. Display-question

    Hi all,
    In my application there is a sql query-report. The sql query is dynamic so the user of my application can change what column should be displayed and what filter should be used. Now I want to add an avg/max function to arrange the data of the table a littlebit more clearly and the user should decide what/howmuch columns should be used for the average/max calculation.
    My question is:
    I want to show the value of the calculation in an extra field right under the corresponding column. Is there a way to show the value in one field without add a whole row? And if not what could be a good approach to display this in a clear structure?
    Thanks in advance
    Markus

    Hello,
    In your case, we can use column visibility to display specific values in the report.
    Suppose we have a dataset (DataSet1) with Amount, Month fields in your report. And we have a parameter (month). Please refer to the steps below:
    Add a matrix in the report body.
    Add [Month] field in the Columns text box, [Amount] field in the Data text box.
    Right click the column, select Column Visibility.
    Select “Show or hide based on an expression” option, and type expression below:
    =IIF(Fields!Month.Value>Parameters!month.Value Or
    Fields!Month.Value<(Parameters!month.Value-2),True,False)
      5.After the [Amount] text box, type following expression in the text box to calculate the average value.
    =Sum(IIF(Fields!Month.Value>Parameters!month.Value Or
    Fields!Month.Value<(Parameters!month.Value-2),0,Fields!Amount.Value))/3
    If you have any questions, please feel free to ask.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • TCODE for report of a single day total transaction

    Dear all
    Please tell me a TCODE by which I can see the report which show all the transaction and total balance of a g/l for a single day
    Thanks and regards
    Tamal

    HI,
    Program         Description                                                    T Code
    RFEPOJ00     Line Item Journal                           S_ALR_87009828
    RFBNUM00     Gaps in Document Number Assignment     S_ALR_87009880                                                                               
    S_ALR_87101003 General Audit
    RFVBER00     List of  Update Terminations     S_ALR_87101004
    RFBELJ00     Compact Document Journal     S_ALR_87009826
    Please check and confirm.
    Thanks and Regards
    Binoj M D

  • Keep getting Firefox crash msg. Crash reports submitted for 2 days

    For 2 days I have been unable to access Firefox. I keep getting a popup stating Firefox had a problem and crashed. A crash report has been sent via the popup about 4 times. No crash ID has been given, just a msg that the report was submitted.

    Can you use the original email address where the crash reports are supposed to be sent to report the abuse?
    My point was that if you had access to the original messages claiming to come from you, you could do something about it by sending copies to an anti-spam or anti-abuse organization. If someone sends messages to someone else claiming to come from you, you do not have access to those messages.

  • An old report gets reprinted every day

    Hello all,
    We have an application that based on Oracle Reports and Forms.
    Now, one of the old reports, originally printed 6 months ago, gets reprinted every day.
    We don't have any ideas why. No one on purpose does it
    I was wondering if any of you have experienced the same issue.
    Thank you, Sonya

    By report you very likely mean report output, or report result?
    If so, looks like the report has been scheduled to run every day, and the start date was set 6 month ahead. Someone's error, or something. See your application manual on how to schedule / unschedule / view scheduled reports.

Maybe you are looking for

  • CIN related error at the time of GRN

    Hi experts, We have recd an imported consignment for one item - qty 130 MT.  Initially the qty was shifted to custom bonded warehouse.  We are receiving it partially in Lots at our plant as per our requirement.  The invoice no. is 1284 .  We have rec

  • URLLoader not working in Photoshop panel?

    I have started creating a panel plugin for Photoshop, but I seem to have run into a road block. I am using a simple URLLoader to grab some info from the internet, but when I load the plugin it never seems to be called nor does it fail. Here is an exa

  • POTS/Analog Dial Access with PVDM3 and 3900? Possible?

    I have a PVDM3-16, 3925 and HWIC-CE1T1-PRI. I have a T1 terminating in the HWIC and the other end goes to an ATLAS 800. I dial into it with an analog v.92 modem. It provides dial-tone and a phone numbering setup. Sort of a self-contained phone system

  • In UCCE TCD table how to indentify inbound and outbound call records.

    Hi I'm using TCD table to build custom report. I would like to know is there any flag to differentiate Inbound and outbound call records in TCD table. Please advice.. I would be much appreciated. Thanks Regards, Param

  • Monitoring Users session with specific profiles

    Hi, I created a specific profile that terminates a session with idle time 4 minutes. I would like to know how to monitoring which sessions are been disconnected by Oracle. Thanks in advance,