Calculate Forecast Value in SSRS

HI All:
I have a question on how to calculate the Forecast in SSRS.
Values are being calculated in excel as below- 
=FORECAST(A154,$K$141:$K$147,$A$141:$A$147)
How can a forecast value be generated in SSRS report ?
Apprecaite all your help.
Thanks!
Shalini

Hi steve,
If I understand correctly, you want to calculate the response time between visitor and operator. And if there are more than one visitors between two operators, we should calculate the first visitor. After testing the issue in my local environment, please
refer to the following steps:
In the design mode, click the menu” Report”>>”Report Properties”>>”Code” tab. Then place the code below in the section:
Dim shared AA As String 
Dim shared CC As Date
Dim shared DD As Date
Public Shared Function getPrevious(Person as String,Item As Date) As Integer
  If (Person="operator") Then
     DD=Item
  End If  
  If (Person=AA) OR (Person="operator")  Then
  Else
    AA=Person
    CC=Item
  End If     
  If (Person="operator") Then
       AA="nothing"
       return DateDiff("s",CC,DD)
  End If
 End Function
Right-click the times (response time) column to insert a column right of it.
Modify the expression of the new cell as follows:
=code.getPrevious(Fields!Person.Value,Fields!times.Value)
The following screenshot is for your reference:
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Report requirements with Average value , forecasting value & Prod Quant.

    Dear Friends,
    I need a help in Reporting.
    The reqirement is like this:
    1. I need to display the daily production quantity.
    2. Also the Average value of the Production quantity for a month.
    3. And the Forecasting value for the first day of next three months.
    4. Restricted Cal month on filters with variables and calday in columns and  
        keyfigure in Rows.
    I have tried to calculate the Average but as the  report is based on cal day it gives me the average value for all cal days. But i need it for the entire month.
    Plz help me in solving this report with your golden ideas!!!
    Thanks in Advance and Points will be assigned!!!
    Thanks
    Sri

    Hi,
    Thanks for your early response.
    Actually i am unable to use tcode: KKBC_ORD rather able to use KKBC only.
    Using KKBC (Target/actual/production variance) and activating collective order from setting option only able to see the details for a particular leading production order only relating toa  particular period .
    My requirement is to display all the production orders settled in a particular period along with (Material code /order number/ Qty/Actual value and variance value).
    Note: If any leading order exists then that should be collective order i.e.(value and Qty should come against the leading order number).
    If there is any standard tcode exists please let me know else provide the tables and logic to bui;d up such a report.
    Regards,
    Ramakanta

  • Error while udating the forecast value in M.master through RMDATIND Program

    If anyone knows please respond urgently.
    Thanks in advance.
    Cheers
    Vallabhaneni
    Hi All
    Good Day
      In my custom Program I am using the three structures bgr00,bmm00,bmmh1 & bmmh3 and through rmdatind(Direct input method) program, i am trying to update the forecast value in material master data
    and i am getting error message as Specify a tracking limit and i have taken the tracking limit as 4 in my program.
    Actually there are 2 fields exists for tracking limit in structure bmmh1
    1.SIGGR and
    2.SIGG2
    I had given the  input as 4 for these 2 fields but I am getting the same error message Specify a tracking limit
    Can anyone please help me in this case.
    Thanks in advance.
    Cheers
    Vallabhaneni

    debug your program.
    Compare the field content of the value in the field you submitted with the content in field that is checked  when message M3 456 is issued.

  • Error while updating the forecast value in M.Master through RMDATIND

    Hi All
    Good Day
      In my custom Program I am using the three structures bgr00,bmm00,bmmh1 & bmmh3 and through rmdatind(Direct input method) program, i am trying to update the forecast value in material master data
    and i am getting error message as Specify a tracking limit and i have taken the tracking limit as 4 in my program.
    Actually there are 2 fields exists for tracking limit in structure bmmh1
    1.SIGGR and
    2.SIGG2
    I had given the  input as 4 for these 2 fields but I am getting the same error message Specify a tracking limit
    Can anyone please help me in this case.
    Thanks in advance.
    Cheers
    Vallabhaneni

    debug your program.
    Compare the field content of the value in the field you submitted with the content in field that is checked  when message M3 456 is issued.

  • How to find out user info for a forecasted value

    Hi Experts,
    Suppose, a user plans on a planning application and consequently creates some forecast values. How do i find out which user did the planning? Is there any way to know this? Please let me know of this if anybody knows.
    Regards
    Swaroop

    Hi, I'm using BPS so can't say forIP. But if you really want to see who posted which data, the planning application has to be set up that way in order to capture the user, time, date details, as indicated by the previous post. This will ptentially of course create very many more records in some cases, where data is amended.
    But your post also requested info about who ran which planning functionality, and when. You can get this sort of information in BPS from the transactions BPS_STAT0 and BPS_STAT1. You may want to narrow the amount of analysis using the username/ date /time filters.
    Stephen

  • In SOP- transfer forecasted values from material master to info structure?

    Hi All,
    I wanted to test out a few scenarios. Do you know the answers  / can you help simulate and check the below?
    1.     If I run the forecast using different models for different materials using the total forecast run (MP38), the forecast values will get updated in the material master. Can I get these values transferred directly into the SOP (standard or flexible), without re-running the forecast in SOP? What I am looking at is a possible scenario where individual materials have different forecast model, so do not want to run forecast from SOP using one model for all.
    2.       Can you have the capability of selecting diff model (say based on material master data) in SOP for diff materials? When I ran SOP, the model I specify there for forecasting is applied for all materials
    3.       If I upload historical values/forecasted values in the material master, can I directly transfer them to SOP without any change to the value?
    Appreaciate your inputs.

    Hi All,
    I wanted to test out a few scenarios. Do you know the answers  / can you help simulate and check the below?
    1.     If I run the forecast using different models for different materials using the total forecast run (MP38), the forecast values will get updated in the material master. Can I get these values transferred directly into the SOP (standard or flexible), without re-running the forecast in SOP? What I am looking at is a possible scenario where individual materials have different forecast model, so do not want to run forecast from SOP using one model for all.
    2.       Can you have the capability of selecting diff model (say based on material master data) in SOP for diff materials? When I ran SOP, the model I specify there for forecasting is applied for all materials
    3.       If I upload historical values/forecasted values in the material master, can I directly transfer them to SOP without any change to the value?
    Appreciate your inputs.

  • Problem while updating the forecast value in m.master by direct input menth

    Hi All
      Good Day
      I am updating the forecast value in material master by direct input method.
    my program is working fine when I am running it online.
    but when i am runnig in back ground I am getting one error which is mentioned below
                                                                                    Job ZM_OPTIMIZA_UPLOAD: Data does not match the job definition; job terminated    BD    078     E    
    Please anyone can help ne in above case.
    Thanks in advance.
    Cheers
    Vallabhaneni

    Hi Hakim
    How are you
    Thanks for your valuable suggestion.
    I am executing my program in background with bmv0 transaction with variant, in development I can run this job in background with out any logical errors but in QA I am getting errors.
    Can you please help me in the above case.
    In Bmv0 transaction first I defined the job and in  program rmdatind (execute) screen first I mentioned the Max. no of logical errors as 500 and Transactions per commit unit as 500 and I run the program in background in bmv0 transaction and I am getting the message background job terminated immediately
    Because of this again I changed the Max. no of logical errors 500 to 99999 and transaction per commit unit 500 to 999999 and then i scheduled my program in background.
    Alomost it ran for 27 hours and then it has given the message background job terminated.
    Job log entries are as follows.
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040840; material number SUJ82J8400; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040840: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040841; material number SUJ84G3001; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040841: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040842; material number SUJ84G3002; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040842: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040843; material number SUJ86G0100; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040843: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040844; material number SUJ86G0300; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040844: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040845; material number SUJ86G0900; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040845: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040846; material number SUJ86G9600; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040846: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040847; material number SUJ86G9601; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040847: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040848; material number SUJ86J0000; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040848: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:20:54  Transaction 0000040848 completed Mat. no.  No. of log. errors 0000040848  
    22.12.2008  11:21:30  ABAP/4 processor: TSV_TNEW_PAGE_ALLOC_FAILED                              
    22.12.2008  11:21:30  Job cancelled      
    I know it has taken long time to process the job  because of I changed the transactions per commit unit (500 to 999999) it kills the system
    But I am supposed to provide some number < 999999 in transactions per commit unit
    actually I haven't tried like I said above < 999999 because i don't have any hopes.
    Please look at this problem and help me in this case.
    Thanks in advance.
    Vallabhaneni

  • ABAP report to display material wise forecasted value in sap APO

    Hi All,
    I want to create a ABAP report in which i want to display the forecasted values of the material from the planning book.
    Could anyone please help me with the information with any database table or the function module or any other source to get the forecasted value against the key figure ZCONSTR form the planning book data.
    It's very urgent.....Awaiting your reply.
    Edited by: Komal Bhutada on Jul 22, 2011 5:50 PM

    Hi,
    You can more details from transaction BAPI->Supply Chain Management ->Advanced Planning and Optimization ->PlanningBookAPS ->GetDetail2 .Here you can find input parameter and in detail documentation.
    Regards,
    Sunitha

  • Which table can we see consumption and forecast values in forecast based planning

    Dear SAP Gurus,
    I am working on implementing forecast based planning for Spare parts for my client. They have one Main Plant which do purchase of Spare Parts and through Stock transfers moved to 60+ Plants from where Spares are being sold.
    Now I am carrying out SAP trial runs for a set of 160+ materials with various models and want to compare with their existing methodology of requirement calculation.
    I want to compile Consumption and Forecast data month wise for these trial materials (160+ materials in 60 Plants) . One way I thought is to go individual Material Master and looks for values in Forecast view. However it is tedious and time consuming.
    The table name shows RMCP2 and RM03M for forecast and Cons values, but I could not find the table.
    Hence I want to know which table if I can view I can get the consumption and forecast data calculated for quick copying and compilation. 
    Thanks and Regards,
    R.Velmurugan.

    Dear Mariano,
    Thanks for your valuable inputs.
    Like I could able to get the consumption values for materials using table MVER and fields GSV01,GSV02 etc.,
    What field I need refer in table PROP for getting forecast values.
    As such I could not see any column where in data are similar to Forecast view.
    Thanks and Regards,
    R.Velmurugan.

  • How can I calculate the value of the cell, which depends on other rows?

    Hi, all!
    I have an application with table. In this table i have calculate some fields, that doesn't exists in data class and depends on other row values, e.g. current row number, or sum of previous rows. How can i calculate this values in TableView?
    The problem is that I have no information about the current row number in the cell value factory.
    Example:
    public class Transaction {
         public String getName();
         public BigInteger getAmount();
    } // There is no getter for "Balance"
    Result table should be something like this:
    Name
    Amount
    Balance
    transaction1
    300
    300
    transaction2
    200
    500
    transaction3
    500
    1000
    Also, after sorting by "Amount", "Balance" should be recalculated:
    Name
    Amount
    Balance
    transaction3
    500
    500
    transaction1
    300
    800
    transaction2
    200
    1000

    Strings can be converted to numbers by various parse methods. For instance Strings can be converted to double via Double.parseDouble(myString).
    That being said, it appears that your textfield will contain numbers and operators, and so these operators will need to be parsed too. I would advise you to search on the terms Java infix postfix.

  • Use Planning Function to calculate new value

    Hi All,
    I have what seems to be a simple problem, but no success in resolving.
    I have 3 planning keyfigures:
    -Units
    -Price
    -Value
    The price field is populated from another planning sheet.
    The unit field is entered by the user.
    The value should be calculated by planning function when button pushed.
    I have tried just basic "Value=Units*Price", but always comes back zero.
    I have also tried more complex "{Value, CharA, CharB, CharC} = {Units, CharA, CharB...." for each characteristic.  Still zero.
    It must be multipling by zero, but not sure how to avoid.
    If I put "Value=Price", it works. If I put "Value=Units", it works. If I put "Value=Units+Price", it works.
    Please help.
    Terrence

A: Use Planning Function to calculate new value

Here is the details.
In the infoprovider the data is like this:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/                 0/             0
DE/             Shirt/              0/             100.00/        0
The query is display:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/              100.00/         0
I have tried the following 2 formulas:
Formula 1:
= {Unit Sales} *
Formula 2:
FOREACH Country, Product.
{Value, Country, Product} = {Unit Sales, Country, Product} * {Price, Country, Product}
ENDFOR.
Both return zero for values.
Thanks,
Terrence

Here is the details.
In the infoprovider the data is like this:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/                 0/             0
DE/             Shirt/              0/             100.00/        0
The query is display:
Country/    Product/     Unit Sales/     Price/      Value
DE/             Shirt/            50/              100.00/         0
I have tried the following 2 formulas:
Formula 1:
= {Unit Sales} *
Formula 2:
FOREACH Country, Product.
{Value, Country, Product} = {Unit Sales, Country, Product} * {Price, Country, Product}
ENDFOR.
Both return zero for values.
Thanks,
Terrence

  • Calculate single value as ranked number function does not apply in CR

    Hi everybody,
    I built up a query with the SAP BEx Query designer. For one key figure I enabled the function "Calculate single values" as ranked list. So the query has the following result.
    Instead of...
    Score
    1220
    2032
    2390
    2389
    ...I got...
    Score
    1
    2
    4
    3
    Unfortunately when importing the query to Crystal Reports Crystal is just importing the key figure itself - the ranked list does not exist... so the output is the same as in the first example.
    I tried to rebuild the formula with crystal means using the Rank function but I failed...
    Can anybody provide a workaround for me?
    Is there another way as using the formula workbench?
    Best regards,
    Sebastian

    Hi Ingo and everybody,
    I used now the following function using the Nth largest function:
    If nthlargest(1, {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]})
       = {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]} then "1"
    else if nthlargest(2, {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]})
       = {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]} then "2"
    else if nthlargest(3, {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]})
       = {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]} then "3"
    else if nthlargest(4, {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]})
       = {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]} then "4"
    else if nthlargest(20, {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]})
       = {TECHNAME_OF_QUERY.[Measures]-[9XU9YT56S6PRL7DR80I3DK9RA]} then "20"
    The formula is not very handsome and will fail, if the number of records exceeds...
    Are there any alternatives?
    And: Is there a possibility to change the field name, because those clumsy field names cause that the whole formula is almost unreadable. Or is the only way to build subreports?
    Regards,
    Sebastian

  • How to calculate usage value through measuring document.

    Hi,
    While creating Sales Order with reference to a Contract i need to update the usgae value in the Order Quantity ( RV45A-KWMENG ) field (at line item level).
    Can you help me calculate usage value through measuring documents for equipment over a period of time.
    Is there any function module for the same?
    Thanks.

    Hi,
    To determine the usage value of a an equipment I had followed the following.
    From table STPO, check if the material receipted belongs to a standard BOM (STLTY='S')
    If yes, record the BOM (STLNR)  and the BOM item node number (STLKN)
    From PLMZ table, select the task list type (PLNTY), the key for task list group (PLNNR), the group counter (PLNAL), the task list node number for operation (PLNKN),   if the record is not flagged for deletion (LOEZ)
    From PLFH table, select the object type of the CIM resource (OBJTY), the object id of the resource (OBJID), the usage value (EWVGW) if the record is not flagged for deletion (LOEZ)
    From CRVE_A table, select the equipment number (EQUNR)
    The result of this selection will be all the tools which can be used for the production of the material receipted.
    The measuring point for this or these equipment(s) will be selected from equipment number and EQUI table
    The result of this selection will be all the measuring point to update.
    Create new measurement document for the selected measurement point (transaction IK11)
    Technically go as follows:-
    MAT = material receipted
    Select STLY, STLNR, STLKN from STPO table where IDNRK='MAT' and STLTY='S'
    If results exist
    Select STLTY, PLNNR, PLNAL, PLNKN from PLMZ where PLMZ.STLTY=STPO.STLTY and PLMZ.STLNR=STPO.STLNR and PLMZ.STLKN=STPO.STLKN
    And PLMZ.LOEZ<>'X'
    Select EWVGW, OBJTY, OBJID from PLFH twhere PLFH.STLTY=PLMZ.STLTY and PLFH.PLNNR=PLMZ.PLNNR and PLFH.PLNAL=PLMZ.PLNAL and PLFH.PLNKN=PLFH.PLNKN and PLFH.LOEKZ<>'X'
    USAGE=PLFH.EWVGW
    Select EQUNR from CRVE_A where CRVE_A.OBJTY=PLFH.OBJTY and CRVE_A.OJBID=PLFH.OBJID
    All the equipment number selected at this moment will be called EQUIP in the next steps
    EQUIP= Equipment number previously selected
    Select OBJNR from EQUI where EQUNR=EQUIP
    Select PARNR from IHPA where OBJNR=EQUI.OBJNR
    If PARNR = Vend then
    Select IMRC_POINT from equi where equnr=equip
    All the measuring points  selected at this moment will be called MEASP  in the next steps
    For each MEASP
    Insert into IMRG the new increment value  (USAGExMAT) in field CDIFF
    Remark: the field CDIFF is managed in floating point number, accurate to 8 bytes.
    I hope this is useful for you.
    Regards,
    Ankur Parab

  • How to calculate acquisition value for specified day

    Hi,
    in my z program I have a problem how to calculate acquisition value for my asset for specified day.
    Example:
    I have asset created 8.7.2008 with TTYPE 104 (External asset acquisition) with value 5950.
    30.11.2008 there is another TTYPE 272 (Retirement of current-yr acquis., w/o revenue) with value 950.
    So BEFORE 30.11.2008 acquisition value is 5950. After is 5000. Is there any function module (or something else) in SAP system where I can send asset number and date a it return to me acquisition value for that day?
    Many thanks for any answer!

    Hi,
    your suggestion means that I have to compute acquisition value by myself (sum all TTYPE 1** - sum all TTYPE 2**). So SAP does't provide such functionality (LDB ADA have it, because it can compute acquisitiob value for specific day)?
    Mant thanks for answer

  • Forecast Values

    Dear Friends
    For forecast based planning what is the difference of entering the forecast values in MM02 and in MD61, also i want to know whether  the system will automatically get the forecast values, insteaded of entering manually.
    If i want to change the forecast values whare can i update it.
    IS it possible can we export the annual sales forecast excel sheet to material master forecast values.
    thanks & regards
    Shivani

    Hi Shivani,
    It is not possible to explore Multiple BOM's during MRP. Instead you create different alternative boms with different production versions. When you run MRP system creates a planned order, where you can change the production version and view the status of capacity and material ATP. Just check and come back...
    Ramagiri

  • Maybe you are looking for

    • Tutor 14 with Windows 8.1 and MS Office 2013

      Hi all, Have anybody used Tutor Author and Publisher with Windows 8.1 and MS Office 2013? Are there any known issues/compatibility issues with this? Any information on this is greatly appreciated. thanks in advance, SD

    • A/B Speakers on DDTS? / Upmixing

      I have a 5.1 speaker system downstairs connected to a DDTS and a splitter that goes to another amplifier, which has wire running upstairs to two more speakers. Obviously the DDTS doesn't have an A/B speaker selection. What channel should I split the

    • Problem with absolute path and context using Tomcat 4

      I added the following line to my server.xml: <Context path="/track" docBase="track" />Now I have used absolute paths(ex: /includes/css/style.css) throughout my code and it worked when I served my application from the ROOT context but when I moved it

    • ITunes- always gives "iTunes Library.itl is locked..."-- HELP!!!

      Everytime i click on iTunes on my desktop (PC Windows), the user agreement window appears and i have to click on "Agree"... then this message appears: "The iTunes Library.itl is locked, on a locked disk, or you do not have write permission for this f

    • G5 Dual 2.0 GHZ clicks on start up and won't boot (not faulty HD's)

      Upon start up the machine starts to boot, fans start etc and then sits on the grey screen and continually clicks. This happens about 70% of the time. To start the machine i have to shutdown, open the side of the tower and remove the plastic insert. T