Formula using results of 2 reports

Hello,
New to Crystal Reports... I have 2 existing reports, and I want to create a report that calculates a metric, using the results of the 2 reports, linked by the grouping that I used in each.
e.g.
- Report A from table 1 counts all shipments by date, grouped by month
- Report B from table 2 sums hours of network outage, grouped by month
I want to calculate (sum of hours outage)/(running total of shipments), and display graphically by month
Working with subreports, I have only been able to pass one single value to the main report, not all values by month to do the math
I would imagine this is a pretty simple task, I have done this using other tools, but have not found a simple way in Crystal Reports yet.  Any help would be appreciated
Thanks,

Asha,
Thanks, this is helpful.  But when I create the shared variables, I am still only passing a single value to the main report (the most recent value of the variable).  Each subreport contains formulas to calculate values I need and lists them against a date/time.  e.g.
Subreport A calcuates outage hours, and shows what datetime the outage started:
Hrs   DateTime
Subreport B shows total shipments by datetime:
CountShipments      DateTime
Hrs and CountShipments are the shared variables. 
I want to divide Sum(Hrs)/(CountShipments) and graph for each month.
Any method of doing this that you are familiar with?

Similar Messages

  • Using results of other reports of a Dashboard

    Hi there,
    i've created a Dashboard with some requests on it.
    Now i want to use the result of a report to do calculation on a further report.
    Is it possible to save the result of a report in a variable or is there any other way to use the result of a report in another Report?
    Thanks,
    Frank

    Thanks wildmight for your suggestion,
    the thing is that I can't create calculated columns on BMM because the results are calculated with subqueries.
    I need to do a calculation like
    z = x * y
    x := count of Customers who have bought Product1 and not Product2 (calculated with subqueries)
    y := average Revenue of Product2
    Product1 and Product2 are prompted
    I dont know how I could calculate this two statements in one report.
    Regards,
    Frank

  • Using results of different reports into another

    Hi,
    I have two reports which two different subject areas
    SA1 and SA2
    I have a report R1 in SA1 which gives productid and stocklevel based on some conditions
    I have a report R2 in SA2 which gives productid and stocklevel based on different conditions for the same productid which is used in R1
    Now i need to subtract the stocklevel for the products
    that is i have to match the R1.productid with the R2.productid and find R1.stocklevel- R2.stocklevel.
    Is there any way of finding them in the answers...
    Thanks,
    Akila Manikandan.

    hi Akila,
    I guess u need to go with Direct Database Request
    http://gerardnico.com/wiki/dat/obiee/direct_database_request
    http://108obiee.blogspot.com/2009/11/variables-in-direct-database-requests.html
    else filter based on other request in advanced properties use that on R1.productid filter try it out
    Thanks,
    Saichand.v

  • How to extract list of object and formula used in variables as Excel for a particular Webi Report

    Hi,
    Is it possible to get the list of variables and objects, and variable formula used in a webi report extracted in excel or PDF in BO XI R3.1?
    Thanks In Advance,
    Shenbu

    Hi Shenbaga,
    You can try to get this information using the report engine sdks of BusinessObjects which is specific to webi reports.
    Please refer to the link to download the dev guide and api referrence for XI 3.1
    SAP BusinessObjects BI 3.x and Lower - Developer SDK Library
    Refer to the Report Engine Java SDK dev guide and api referrence.
    Go through the dev guide in detail and you would be able to use the report engine sdks as per your needs.
    Additional Note: There have been changes in report engine sdks from XI 3.1 to BI 4.0 and you would not be able to get all the features available in XI 3.1 report engine sdks in BI 4.0.
    Hope this helps.
    Regards,
    Chandrahas

  • How to use Oracle OAB Fast Formulas in Discoverer-desktop [ for reporting]

    Hi,
    Can anyone tell me how to use a fast formula in discoverer-desktop [for reporting]. Currently, we have a disco-report that calcuates the 'monthly salary', but we don't want to use that. Instead, we have a custom fast-formula [xx_oab_monthly_salary] which has the conditions and calculations that we need.
    I want to use that formula in discoverer-desktop directly and get the monthly-salary.. i.e., someone needs to create a folder under the business area and add it i believe.. the formula internally calls a function.
    when i checked about this with my dba - he said, he can add the 'function', but not the formula. and i need to write the calculation part...
    does anyone know how to add it...there shud a way right...
    i do not have access to the technical-stuff here..
    someone said ["you can wrap the FF_EXEC.run_formula call into your own pl/sql function and map this function into the EUL so that the formula can be called from a workbook.", but this talks about pl/sql-do we need pl/sql
    for this].
    also, someone else said [ some fast formulas need specific contexts to be set. Depending on whether the fast formula below the only fast formula that you want to recreate in Discoverer.
    For a single formula, in general my recommendation is to recreate the fast formula instead of using the ff_exec call].
    any quick answers greatly appreciate..
    thx,

    Hi,
    That's right you need to develop the pl/sql function outside of Discoverer using a pl/sql tool or just SQL*plus. I haven't an example to hand, but can dig one up if you need it. Once you have the function developed you can map it into the EUL using Discoverer Administrator. It will then be available to Discoverer Desktop/Plus as a database function when creating calculations. So you can then just add the calculation to an existing or new report.
    Alternatively, you can build the pl/sql function into a view and load the view into a new folder using Discoverer Admin.
    Rod West

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • Using the result of 1st report to 2 nd report

    Hi,
    I have created one report with 5 Dataproviders.
    I want to create another report by using the result of 2nd dataprovider of thr 1st report.
    Is it possible in BO XI R2 Desktop intelligence?
    Thanks,
    Indu

    Hi Indu,
    If I understand you correctly, you want to create the query once but run mulitple reports of it. Is it okay if the reports are in tabs within the same document or do they have to be in separate documents?
    If the later it is not really possible. There are a few options
    It is possible to use a query create in QaaWS, but there is no schedule option around this, so every call is on demand.
    Also you can create instances of reports using Web Intelligence/Crystal Reports and have more that one Live Office document/Xcelsius dashboard point to the instance. In this event you are runnig the query once and using the displaying it in different reports.
    Finally, if you just want to reuse a query from one report to another then you can copy and paste the report and change the report layout.
    Hope this helps
    Alan

  • How to use Value Variable in Report Painter Column defined as Formula

    Hi Gurus,
    In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
    The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
    Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
    Can anybody suggest what I need to do to make it workable.
    Thanks

    I did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
    sql is
    select date from work_order where facility = @{p_facility}
    the physical log sql is
    select date from work_order where facility = 'p_facility'

  • Results row calculation between two column result  in BEx Report.

    I want to use weighted average method between two keyfigure.
    for example consider the following secnario.
    CH        Kf1       Kf2
    A         10        5
    B          6        4
    C          3        2
    Result     19     b]4.21</b>
    how 4.21 is ((105)+(64)+(3*2))/total of Kf1(ie 19)
    ( A value(Kf1Kf2)+ B value (Kf1Kf2) + C Value (Kf1*Kf2))/total value (Kf1) = 4.21
    is it possible to achieve the above result for Kf2.
    With regards,
    Hari

    Hello,
    I cannot able to use Excel Macro functionality since it is a drill down report and report cells varies based upon the selection parameter.
    and also i can't  able to use Calculation, since this report contains lot of columns and if i use  the formula, one more result column i have to include in all key figures and also business users not able to understand the report....
    Is it possible to create a variable structure, for example user is executing for 10 days , the structure should display for only 10 days ans also i create structure for 31 days (ie one month)..
    With regards,
    Hari

  • FORMULA=USING/TOTAL IS NOT WORKING IN BPC NW.

    Hi,
       I am doing Migration project from  BPC MS to BPC NW 7.5. In this I am not able test the Allocation formula.
    FORMULA=USING/TOTAL.
    Here in this  Total is not working. The final result same as USING combinational value. The formula is working for USING combination like FORMULA=USING/100,USING*100....,
    WHERE=WHAT* USING/TOTAL.Let me know is there any solution for this.Could you please update me on this.
    Find the below sample code for the Allocation Logic.
    LOGIC:
    *RUNALLOCATION
    *DIM P_ACCT WHAT=CE0004010; WHERE=CE0004020; USING=CE0004030; TOTAL=CE0004210
    *DIM CATEGORY WHAT=PLAN; WHERE=PLAN; USING=PLAN; TOTAL=PLAN
    *DIM P_CC WHAT=India; WHERE=India; USING=India; TOTAL=India
    *DIM P_DATASRC WHAT=UPLOAD; WHERE=UPLOAD; USING=UPLOAD; TOTAL=UPLOAD
    *DIM P_ACTIVITY WHAT=Repair; WHERE=Repair; USING=Repair; TOTAL=Repair
    *DIM RPTCURRENCY WHAT=LC; WHERE=LC; USING=V; TOTAL=LC
    *DIM TIME WHAT=2009.JAN; WHERE=2009.APR; USING=2009.MAR; TOTAL=2009.MAY
    After exccuting this formula and by observing the Formula Log one record write back message displayed.
    Thanks and Regards,
    VC kRISHNA.

    Hi,
       Please find the below Allocation logic. Here in this case also getting the same out put. The whare combinational value same as using. This Allocation Logic and the previous one is working with out fail in the MS version. Let me know is this may be a product issue. Could you please update me in this.
    Logic:
    *RUNALLOCATION                                   
    *FACTOR=USING/TOTAL
    *DIM PROJECT WHAT=BAS(CorpBudg_Project); WHERE=[SCTSQ1]="Y"; USING=<<<; TOTAL=No_PPC                                        
    *DIM ENTITY WHAT=PC10102106; WHERE=NO_PCENTER; Using=<<<; TOTAL=NO_PCENTER                                        
    *DIM ACCOUNT WHAT=BAS(Corp_Budg_Accnts); WHERE=880014; USING=<<<; TOTAL=<<<                                                  
    *DIM DATASRC WHAT=INPUT; WHERE=<<<;USING=<<<; TOTAL=<<<
    *DIM RPTCURRENCY WHAT=LC; WHERE=<<<; USING=<<<; TOTAL=<<<          
    *DIM CLIENT_GROUP WHAT=1010; WHERE=<<<; USING=<<<; TOTAL=<<<     
    *DIM CATEGORY WHAT=BUDGET; WHERE=<<<; USING=<<<; TOTAL=<<<     
    *DIM INTCO WHAT=Non_InterCo; WHERE=<<<; USING=<<<; TOTAL=Alloc_PC10102106                                   
    *DIM TIME WHAT=BAS(2011.TOTAL); WHERE=<<<; USING=2011.BSS; TOTAL=<<<
    *ENDALLOCATION
    *COMMIT
    Thanks and Regards,
    Krishna.

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • Creation of Generic Data source using function module based on the program which was used to created ABAP report

    Hi,
    We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include the logic(Abap Program) that is used for plant maintenance report in the function module? Please share your thoughts.
    Thanks,
    Ravi

    Hi,
    Step1-Create a table structure which you need to create same as the fields you require in you data source.
    Step 2-create a custom abap program and inside that call the Client abap program with the selections as required and save the result data in some table
    Step 3-create infoset query.In the infoset query give your table structure name and  program name which you developed.
    Step4-create data source on top of that query

  • Calculation of Results in BEx Report.

    I want to use weighted average method between two keyfigure.
    for example consider the following secnario.
            CH Kf1 Kf2
            A  10   5
            B   6   4
            C   3   2
    <b>Result     19   4.21</b>
    how 4.21 is ((105)+(64)+(3*2))/total of Kf1(ie 19)
                ( A value(Kf1Kf2)+ B value (Kf1Kf2) + C              Value (Kf1*Kf2))/total value (Kf1) = 4.21
    is it possible to achieve the above result for Kf2.
    With regards,
    Hari

    Hi Dinesh & Kumar,
    Thanks for our immediate response..
    I tried with Calculated key figure it is not working and also   macros does not work, because it is a drilldown report , the result cells in report is not fixed, it will vary depending upon the selection parameter.
    Is there is any other solution in query designer to achieve the above result..
    With regards,
    Hari

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • How to get only aggregated results in a report?

    Hi,
    My report data comes in a completely drilled down format. My requirement is to only get the aggregated results in the report. The report has data for day,week and months. using the remove drill down option from the webviews the user can remove the days column to get the aggregated results for a week and same for a month. but my requirement is to show the user the aggregated results for a month.

    Hi,
    Give me your query design. And add some notes to that.

Maybe you are looking for

  • ON CHANGE OF is not working for the below case

    Hi,   I had a problem with ON CHANGE OF as below select * from vbap into gt_vbap where vbeln in s_vbeln. loop at gt_vbap into ls_vbap where posnr ne '00010'.    on change of posnr.    endon. endloop. in gt_vbap i have only items 10 & 20 for a Sales O

  • How to remove DSFW Server ?

    HI I had build a DSFW Lab and I want to try to write a procedure about how to remove DSFW Server that like server need hardware or crash...But I check the oficial document that seem not provide about how to remove.... Who could teah me or provide whi

  • Iphone 5 has error during iOS 8 update in iTunes & now can't use phone!

    i really need help! my iPhone is stuck in limbo, plugged into the computer to iTunes and trying to do the iOS 8 update. now i can't use my phone at all! what do i do?

  • Ctrl-Alt-Backspace issue with Fluxbox and SLiM

    Hi folks :) I'm pretty new to Arch, had a few attempts at installing it in the past but wasn't quite ready and so decided to expand my Linux knowledge a little more, first. Well, I've done that and now I'm having another go, and things are going quit

  • IDVD will not launch in iMovie HD 5.0.2

    The iDVD will not launch as a notice says it won't launch with my version of osx. I want to be able to burn DVDs but can't. Suggestions???