Report Level Calculation query.

Hi Experts,
  I have a query on one of my reports. I
had notification,task no in rows and three other key figures  in columns
1)no of properties failed          which will be at notificatn header level.
2)no of properties remedied    whcih will be at notification item (i.e task level).
3) Outstanding properties.
Please find the sample output which i require for two notifications.
A has got 10 properties failed and 3 prop remedied in first task , 5 remedied in sec task , 1 remedied in third task.
So outstanding Prop key figure  for A 2 task is No of properites failed  - [ no of prop remedied first task + sec task].
Nftn  Task No  (No of Prop Failed)  (No of Prop Remedied )  (Outstanding Prop )
  A     1     10     3     7    10-3     
        2     10     5     2   10 u2013 (3+5)
     3     10     1     1   10-(351)
                   [Result ]         10     9     1
  B     1     5     1     4    5 - 1     
        2     5     2     2    5 - (1+2)
     3     5     0     2    5 - (120)
                    [Result ]         5     3     2
[Overall Result ]               15                12               3
I could attain the output as below which is little ok but not 100% complete output they requrie.
I could not get overall result as 15 for No of Prop Failed because single results make average to get 10 instead of 30.
So single results 10 and 5 average comes to 7.5. How can we make one result row to act like one condiotn and another outmost result row to other condition.
How to obtain the outstanding column populated above. What i made is i made sumct(no of prop remedied) so i got 9 for A and 3 for B and then subtracted 10 - 9 across all tasks which is little ok but not absolutely correct.
Nftn  Task No  (No of Prop Failed)  (No of Prop Remedied )  (Outstanding Prop )
  A     1     10     3     1   10-9     
        2     10     5     1   10 -9
     3     10     1     1   10-9
                 [Result ]            10     9     1
  B     1     5     1     2    5 - 3     
        2     5     2     2    5 - 3
     3     5     0     2    5 - 3
                [Result]              5     3     2
[Overall Result]                  7.5              12                   XX
can any one share some thoughts on this one.
Thanks
Vamsi
Edited by: vamsi talluri on Nov 8, 2010 6:51 PM

Hi,
first of all you should not leverage the InfoProvider directly but instead use the BEx Query and this type of prompting could then be done as an EXIT variable in the BEx query.
ingo

Similar Messages

  • BO/BW Report Level Calculation and Prompts

    Hi,
    There is an infoprovider in BI , delta enabled.Start Date and End Date are two fields in Infoprovider.
    The requirement is to have an Use Indicator Prompt having values Y or N.
    if the prompt input is Y , then display only those records where the current date is between start and end date,
    and if the prompt input is N, then display all values.
    Since the infoprovider will have delta loading, this needs to be done in BI/BO Report Level.
    If I have a Keyfigure in BI (using the above logic, having values 0 and 1), then this keyfigure needs to be selected in Web I Report(since the Use Indicator Prompt will be on this keyfigure), if not selected then all the keyfigures will be blank.
    I have changed the aggregation of the Keyfigure to 'None' in Universe, but still it doesnt work

    Hi,
    first of all you should not leverage the InfoProvider directly but instead use the BEx Query and this type of prompting could then be done as an EXIT variable in the BEx query.
    ingo

  • How to improve the query performance in to report level and designer level

    How to improve the query performance in to report level and designer level......?
    Plz let me know the detail view......

    first its all based on the design of the database, universe and the report.
    at the universe Level, you have to check your Contexts very well to get the optimal performance of the universe and also your joins, keep your joins with key fields, will give you the best performance.
    at the report level, try to make the reports dynamic as much as you can, (Parameters) and so on.
    and when you create a paremeter try to get it match with the key fields in the database.
    good luck
    Amr

  • How to reference Report level program unit in report query?

    I have created a report level function FREF13 which returns a VARCHAR2 variable. I am trying to reference this function in report SQL statement like:
    select * from wtr where file_ref = FREF13(:fref)
    I am getting error 'ORA-00904: Invalid column name' error. This is because it is unable to recognize FREF13 as local function.
    Is it possible to reference local program units in report query?
    Rgds,
    Manish

    No, it's not possible. The only things you can reference in a SQL query are columns and functions accessable in the database (since this is where the query is executed). You should create the function in the database.
    Regards,
    Danny

  • Calculations for Key Figure at CUBE Level or REPORTING Level

    Hi Folks,
    What are the conditions to decide whether we need to go for keyfigure calculations at infocube level or at reporting level.
    How to achieve them if done at cube level.
    Could anyone provide some KT with examples?
    Regards
    Kittu

    Hi,
    I got your point.
    Could you tell me how to use below mentioned formula at transformation time?
    In brief the formula calculates the number of policies using field  " s endorsement type".
    Formula is as below:
    SUM(CASE WHEN S Endorsementtype IN ('004','015') THEN -1 WHEN S Endorsementtype IS NULL  AND S Gross IS NOT NULL  THEN 1 ELSE 0 END)
    No of policies is a calculated keyfigure.I dont have this field in my datasource.
    could you tell me the steps ?
    Regards
    kittu

  • Variance calculation at reporting level

    Dear All,
    There are two key figures in my report - Plan and Actual amount. Now user wants to see the variance between these two in % terms.
    Formula is ( Acutal - plan )/plan *100 . Now this formula works when plan value is not zero when ever the plan value is zero the display will be X . Now user wants to put a check say whenever the plan is zero then display 100 % variance. How can we achieve this at reporting level.
    Thanks and Regards,
    Anup.

    Hi Anup,
    Try something like this:
    (Plan = 0)*100 + (Plan <.> 0)*((Acutal - Plan) / Plan * 100)
    I'm not sure but you might have to use the NOERR function in case of division by zero:
    (Plan = 0)*100 + (Plan <.> 0)*NOERR((Acutal - Plan) / Plan * 100)
    In both samples remove the "."
    Hope it helps.
    BR
    Stefan
    Edited by: Stefan Stefansson on Jul 21, 2009 1:49 PM

  • Creating a dynamic report level formula in Analysis

    Hello Experts,
    I have a requirement in Analysis to create a report level formula for "Number of days a Product has been on Backorder" which is a calculation based on existing report objects/elements i.e Current Date - Sales Order Creation Date.  The problems that I'm facing right now with this are :
    a) How to set up Analysis to only select current date automatically each time the report is run as oppose to selecting the current date manually each time ?
    b) How do i write the formula that adjusts the Column/Row(with the formula) itself if more objects are added into the report or moved out of the report.
    Please help folks.
    Thanks
    Gaurav

    Gaurav:
    a) How to set up Analysis to only select current date automatically each time the report is run as oppose to selecting the current date manually each time ?
    Why not do this in the BEx Query Designer?
    As for part b, I am not following; please include screen shots.

  • Text data is not displaying at Report level for an Infoobject Item name

    Hi All,
    Texts data is maintained at Info object level but text information is not displaying at Report level for an object.  I have set the property at query level as "Text", but at report level it is displaying key values of the object, not displaying texts information.  This problem occured in QA(Quality) system but not replicated in Production system.  I have checked all properties at backend and query level and compared the same between QA and Production system didn't find any difference.
    Please suggest what might be the cause: at report level it is displaying key values instead of the textual information even text data is mainintained at backend.  In production it is displaying textal data for the IO.
    Thanks in advance.

    Hi All,
    Thanks for your valuable information.  I have changed the setting under Advanced tab as "Master data" for Access type for results values, but didn't solved the problem still it showing key information for the IO.
    In Production system the report displaying texts information for the IO, but in QA its displaying key information. The problem exits only in QA, its working fine in DEv and Production.
    As per my understanding might be the issue with Patches will be checking with Basis team on the same.
    Please suggest if you have any alternatives to fix the issue.

  • Report on BEx query with 2 structures (one in rows and one in columns)

    Hi, experts! I have to make Crystall report on BEx query with 2 structures, one in columns (with KF's), and one in rows. Is it possible to create such report? Because when I create such report, I cant see fields in structures, only characteristics fields.
    Ok, I found samr problem in another thread. Sorry.
    Edited by: Mikhail Sychev on Dec 5, 2009 9:53 PM

    Hey Flora,
    Happy to hear that its working now.
    Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
    You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
    I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
    or
    If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
    Hope this helps in clear, please revert me for any clarification.

  • In the report level user wants two persons against each work center.

    Hi Experts,
    Please let me know the solution, I have provided scenario below.
    check the query which the user is referring to report:
    Example
    Work center     Person
    KNE33102     44003850
    According to the user, the names for the Work centers should be as follows:
    Work center          Person
    KNE33102         44003850,
    KNE33102        44003603
    I have check the data in T-code-CR03, each work center getting two persons, as can be shown below.
    Work center        Person
    KNE33102           44003850,
    KNE33102           44003603
    In RSA3 it can be seen that both the records are being extracted
    Work center     Start date     End date     Person
    KNE33102     09.02.2009     31.12.2009     44003850
    KNE33102     09.02.2009     31.12.2009     44003603
    In BI , when checking in PSA, it can be seen that the data is also being loaded to BI (Two persons loaded against Work center-KNE33102)
    Work center     Start date     End date     Person
    KNE33102     09.02.2009     31.12.2009     44003850
    KNE33102     09.02.2009     31.12.2009     44003603
    But when loading to the Info Object, one person has deleted. Because of this, in the report level displaying one person.
    Note:-Please let me know what is the procedure, in the report level user wants two persons against each work center.

    Hi,
    As you said in your post the data has mentioned up to 2009. can you try execute the query till to date .
    Regards
    sivaraju

  • Error while connecting executing a webi report from Bex query.

    hi all,
    i need to create one webi report fron Bex query based on sab BW.
    But when I execute the query its shows "Unspecified error invoking method or accessing property "on change DocID"".
    i didnt get this msg.
    please help

    Hi Mohit Gupta,
    Degrade the java version to java 7 update 45 and also degrade the java security level to low from medium. Also delete the java temporary files and also clear your IE browser cache as well.
    This solved the issue for me.
    Thanks,
    Chaitanya Krishna

  • Report level manipulation

    Hi All,
    I have a sales report, its a very simple report.
    I need to calculate revenue at the report level.
    Revenue = Price * Quantity.
    I have quantity Key figure in the column level, i need to calculate revenue(calculated key figure), but price key figure is an attribute of material characteristic.
    Material characteristic is present at the row level. Please let me know how to achieve this.
    Edited by: Raghavendraprasad.N on Nov 11, 2011 3:32 AM

    Hi,
    You can achive this using formula variable by processing type replacement path...
    Please go through below link for better idea...
    http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/5f9ac61a205a459d0e7ef313d10321/content.htm
    Thanks
    BVR

  • Performance of OBIEE report whereas SQL query behind it executed in 1-2 min

    Facing lot of performance issues in OBIEE reports, whereas SQL query behind the report fetch data in 2-3 minutes. Reprot take around 1-2 hrs. Can anyone help to resolve this please?

    (my 2c worth)... if the physical query runs for a reasonably short time but the report takes much longer to return it suggests the rendering process (ie. pivot view) is lagging.
    To test this theory, go into Answers and remove all views from the request and leave a simple table view on the compound view. Run the report and the report should return around the same time the physical request takes to run because the table view is a very raw, un aggregated rendering process. Table views are nice and fast. If that works then you can focus on tuning your other views, ie. Pivot view. I've seen a simple pivot view take minutes to render what looks like a simple report because the underlying recordset is quite large.
    I hope this helped. another quick trick you could try is applying aggregation in the formulas to aggregate things at the physical sql level so the returning result set isn't 5,000. depends what you're up to with the end report.
    Edited by: user8300108 on 25-Feb-2010 04:40

  • Saving a report with two  query providers into .csv format

    Hi,
    I have developed a webi report which has two query providers. I have linked the objects from these two queries at the report level using merged dimensions. the report is running fine. When I save it in EXCEL or PDF it saves the same report, but when I try to save the report in .CSV format, the output of the second query provided is getting appened at the bottom of the report.
    Has anyone encountered similar problem is so whats the solution for it.
    For me business wants the report to be saved as .csv only as it acts as a source file to other application.

    Hi
    please take a look at the explanation area in the following note
    https://css.wdf.sap.corp/sap/support/notes/1417382
    When saving Web Intelligence document as Excel format, the result is saved based on the report design.
    When saving Web Intelligence document as CSV format, all data in the Data Provider are saved.
    I believe that the behaviour you described is by design so there is not much to do about it. You can open a case by SAP support though asking if this changed in a later service pack (actual service pack version for XI R2 is SP 6).
    Regards,
    Stratos

  • Generating report from Backend Query in OIM

    Hi,
    I am trying to generate a report in OIM. The requirement is to generate a query that can be executed in the database to retrieve the following:
    All the users in OIM with out the access (Not in provisioned or Enabled state) to Active Directory
    I tried generating report using the out-of-box report for Resource Access List, which provides the list of users who are having access to particular resource, but there is no out-of-box report for providing report for users who do not have access to a particular resource.
    Could any one help me write such a query. I know we need to look in to many tables before we fetch the details. A sample query would be really helpful.
    Thanks

    Users who have access to specific resource - it is based on organization level, simple query that lists organizations with resources that they have access to :
    select a.act_name, o.obj_name, ap.acp_create, ap.acp_update
    from act a, acp ap, obj o
    where a.act_key = ap.act_key
    and ap.obj_key = o.obj_key
    Relation between users and organization is simple so it would be easy to you continue on your own...
    Hope this helps!

Maybe you are looking for