Crystal reports- Calculation between two reports

Hi Experts
I have designed a sales and purchase transaction report using crystal reports and i have designed another report for accounting transactions like Excise Duty payable and receivables, Vat payable and receivables, Expenses(like EB, Maintenance) and so on. Finally I added accounting report as sub-report into First Report.
My question is, is it possible to made some calculations between sub-report and main report.
Hope some solutions from you.
By
Kala

Hello,
right upto the linking is good?
Right now you have to create a formula (which you might have already done for "Total expenses", you just need to alternate it slightly.
Example:
On 2nd report (subreport) You might have a formula like given below.
Instead of Numbervar CAvg, which is the last shown value in the below formula, you have to make it like Shared Numbervar CAvg.
Whileprintingrecords;
Numbervar TJs;
Numbervar TotalJobs=0;
Shared Numbervar CAvg;
Shared Numbervar CAvg=0;
TotalJobs := DistinctCount({lab_credits.credit_no},{lab_credits.reason_code}); 
CAvg:= TotalJobs /{@WorkingDays};
TJs:=TJs + CAvg;
CAvg
Do your calculation above.
Now in the main report you will create another formula which will look like below.
Whileprintingrecords;
Shared Numbervar CAvg;
Numbervar TAvg:=fieldname;
Numbervar TotalBoth:= Shared Numbervar CAvg+ Numbervar TAvg;
TotalBoth;
You will have a reset formula which will be placed ontop of the report header , group header if you are using grouping like this
Whileprintingrecords;
Shared Numbervar CAvg:=0;
SHared Numbervar TAvg:=0;
bearing in mind that we do not have to declare CAvg field here as it is being shared.
Hope this helps
Regards
Jehanzeb

Similar Messages

  • OBIEE 11G - Issue passing parameters between two reports

    Hi folks,
    I am struggling to pass parameters between two reports in OBIEE 11G.
    My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
    My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
    My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
    On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
    Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
    When I run the report I always get the following error:
    The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
    When I remove the Month filter, the report works correctly.
    I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
    I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
    This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
    Has anyone else experienced problems with passing parameters between two request in 11G?
    Any help appreciated.
    Thanks
    Gavin

    Hi,
    I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
    Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
    In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
    Thank you,
    Dhar

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • Go URL linking between two reports with no relation

    Hi Experts,
    Sorry this question may have been asked numerous times, but I was not able to fetch the required response.
    I have two reports Repor1 based on Table 1 having columns A and B, Report2 based on Table2 having columns C and D.
    First is it possible to create a go URL moving between two reports based on tables having no replationship between them?
    My requirement is to create a hyperlink on column B in Report1 so that when a user clicks on the hyperlink it takes you to report2 and filters report2 column C using values of Table1 coulmn A. Table1 and Table2 have no relationship between them.
    Thanks in advance,
    Anura

    I had two columns in my report1 first being market and second being a measure value, i provided the following link in the formula for my measure value and made that as HTML data format, my Report2 contains the market column with one more additional coloumn and i want my second report to be filtered based on Market value in Report1.
    I don't know why but the URL that is being displayed here is not the actual url, please click on the URL to knowthe complete url that I mentioned for the formula
    '’||CAST(Sales Measures.Dollars AS CHAR)||’'
    The value of Market.Region is not being passed correctly as my Report2 gives the following message in the results view when i move from Report1 to Report2 via the hyperlink
    Region is equal to '||Markets.Region||'style="text-decoration:none;
    Please suggest what is going wrong?
    Thanks in advance,
    Edited by: Anurag007 on Jul 29, 2010 2:46 AM

  • Reporting structure between two positions as vise versa

    Hi,
    Two positions for eg. AGM (A002 relationship) reporting to Deputy MG and Deputy MG (A002 relationship) reporting to AGM..as per my knowledge reporting structure between two posiitions is maintained with two different relationships i.e A002 and B002 relationship ie.if one relationship is maintained another is automatically maintained...is it possible to maintain two positions reporting to each other (A002)...Please help ASAP.....!!
    Thanks

    Hi Sonu,
    You are asking abt a inverse relationship and yes A/B002 will do that
    say AGM is the higger position and DGM is the lower so when DGM reporting to AGM it will be A/002 and when AGM reports to DGM then it will be B/002
    So always the higher position is taken as A and lower is B.
    Hope this clarifies ur issue.
    Thanks
    Swati

  • 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

  • Link between two reports.

    as per the requirement of my system, i have a report based on some table say which shows day end balance for a particular customer. in this report i want to give a link which shud open another report to show last ten transations .
    how to do this ?
    thank u in advance
    but expecting solution
    chaitali

    You need to create a LINK object between the two reports.
    When you build the link it will ask you for a target. Your target is your second report, which must accept a parameter.
    Next you edit the second report under the Column Formatting tab (which is number 2 tab under the report editing options) in the link drop-down you will find your new link which you created. Edit the link and set parameter to the column you want to pass from report 1.
    Hope this help.
    Jason Pepper

  • Oracle Reports : one query - two reports?

    Help, please, Oracle Reports 10g.
    I have a query, need to make two reports in one. They are similar, just couple parameters are different, say, entreprise type and region;
    How do I display these two reports in one? I tried to make parameters as placeholders, package variables, put an trigger on outer frames for reports. parameters do change their values but just the same report displays twice. where is the trick?
    Thank you

    The way I have done this in the past was to create 2 master frames, 1 for each report and then put conditions on each frame as to when it is to appear. Hope this helps..

  • Monthly Aggregate Values are Not matching between Two Reports

    Hi,
    I have two custom reports (Pivot Table View)
    _1) National Report_ This report renders data for the 10/11 Season (From 04/01/2010 To 03/31/2011). It includes Monthly Aggregate as well as 10/11 Season Grand Total. This report shows the correct information. We don't have to do any changes.
    _2) YOYOY Report_
    This report renders data for the 10/11, 09/10, 08/09 Season (From 04/01/2008 To 03/31/2011). It includes Monthly Aggregate for each of the three seasons as well as Grand Total for each Season.
    Issue:
    Monthly Aggregate Total for the YOYOY Report is not matching with the National Report Monthly Aggregate Total.
    Technical Background:
    - For 10/11 Season, the expressions used to arrive at the Monthly Aggregate Total is the same.
    - Filter Criteria for (1) Report is specific to 10/11 Season (Rest of the criteria is similar)
    - Filter Criteria for (2) Report is for 08/09, 09/10, 10/11 Season (Rest of the criteria is similar)
    - In Report (1), Date Expressions are based on the following Attributes
    Column Name: Month
    Expression: MONTHNAME(Activity."Created Date")
    Column Name: Sort on Created Month
    Expression: CASE MONTH(Activity."Created Date") WHEN 4 THEN 1 WHEN 5 THEN 2 WHEN 6 THEN 3 WHEN 7 THEN 4 WHEN 8 THEN 5 WHEN 9 THEN 6 WHEN 10 THEN 7 WHEN 11 THEN 8 WHEN 12 THEN 9 WHEN 1 THEN 10 WHEN 2 THEN 11 WHEN 3 THEN 12 END
    Column Name: 10/11 Season
    Expression: /* Metric column name: # of high risk infants identified since last visit */ CASE WHEN "- Activity Custom Metrics".S_INT_10 IS NULL THEN 0 ELSE "- Activity Custom Metrics".S_INT_10 END
    Aggregation Rule: Sum
    - In Report (2), Date Expressions are based on the following Attributes
    Column Name: Month Column
    Expression: Date."Calendar Month"
    Column Name: Sort on Created Month
    Expression: CASE Date."Calendar Month" WHEN 4 THEN 1 WHEN 5 THEN 2 WHEN 6 THEN 3 WHEN 7 THEN 4 WHEN 8 THEN 5 WHEN 9 THEN 6 WHEN 10 THEN 7 WHEN 11 THEN 8 WHEN 12 THEN 9 WHEN 1 THEN 10 WHEN 2 THEN 11 WHEN 3 THEN 12 END
    Column Name: 10/11 Season
    Expression: CASE WHEN Activity."Created Date" BETWEEN /* First Day of Current Season */ timestampadd(sql_tsi_day, -dayofmonth(current_date)+1, timestampadd(sql_tsi_month, -(month(current_date) - 4), Current_DATE)) AND Current_DATE THEN "- Activity Custom Metrics".S_INT_10 ELSE 0 END
    Aggregation Rule: Sum
    Key Information:
    - For 10/11 Season, Activity."Created Date" attribute is used for all the calculations based on date.
    - For 08/09 and 09/10 Season, Date.Date attribute is used for all the calculations based on date. This is because the data was migrated from Asset Record Type to Activity Record Type for these seasons.
    I have tried variety of options and nothing seems to get the Monthly Aggregate matching. Kindly suggest what changes do we require.
    Regards,
    Muddessar Nadeem Alanji
    +91-98456 13180

    Hi,
          Are you saying that you loaded the same excel document to both planning area and cube but the data in both is not matching??
    How did you load the excel data to planning area?
    Can you give more details on what data is not matching? Is the cube value smaller than the value you see in planning book?
    Secondly if you are looking at data, make sure your selections are right. In cube, you have to specify the characteristics and at the bottom of the screen you specify the number of records to be displayed. Increase that to some big number like 9999 so that you can see all the records.

  • Variance Calculation between BPC reports

    Hi All,
    I have created 2 side-by-side linked (the reports share the same axis) Income Statement reports in BPC. How do I add a 3rd report which will calculate the variance between these 2 existing reports. I think I would need to create a local member as the 2 reports are going to be dynamic across time and regions. Eg. I have 2013 & 2014 for EMEA - 15 entities, if I change the region from EMEA to Americas with 25 entities, I want the variance for all the 25 entities now instead of the previous 15. I also want the variance to show the drill down if I click on one of the reports to find the child members if they exist.
    Any pointers?
    Thanks!

    Hi Vadim,
    Thanks for the prompt response.
    I have the below:
    Report 1: Made out of 5 reports, extending from Column C to Column X
    Rows 10, 13, 14, 15 are local members.
    Report 2: Made out of 5 reports, extending from Column Z to Column AU. These reports share the axis with all the reports comprising Report 1.
    Starting column AW onwards, I want the variance between Report 1 & Report 2.
    Reports 1 & 2 are not going to be static. Currently I have Report 1 for 2013 Actual & Report 2 for 2014 Actual. But I have the override formulas on A1, A2 & A3 using which I can change the entity display from EMEA, which is the current selection to some other region which can have different number of entities.
    I need help in putting Report 3.
    I am attaching the screenshots.
    Looking forward to your response.
    Thanks a ton!

  • Difference between two report

    Hi Experts,
    FS10n & FBL3N Show difference Balance in same Account.
    Some Entry not include in FS10N Report which was automatic Entry through MIRO.
    What's the Resaon.
    Said Resaon I not doing to change the Open Items Management
    Regards,

    Hi ,
    This may be as a result of activating line item after posting transaction. Run program  RFSEPA01 for the said gl and check.
    Regards

  • Calculation between two date time

    hi,
    This is my table structure :
    In_time Date;
    Out_time Date;
    Duration Number;
    user enter the In_time and Out time data is 12:30 like this ( HH24:mi format).
    for Example
    In_time Out_time duration
    12.30 2.00 1:30
    I want to store the difference b/w In_time and Out_time to be insert in the duration column;

    :out_time - :in_time is duration in days, if both items are of type date or datetime.
    but why are you storing redundant data?
    in_time and duration OR in_time and out_time is enough ...

  • How to remove white space between two answer reports

    How to remove white space between two answer reports
    In Dashboard section I have 2 rqeuest. Each request renders Table View. When I display dashboard, it show white space separating the 2 table views. How do I get rid of the white space/white band ?

    See this link
    Re: Eliminating the space between two reports in OBIEE dashboard page Section
    Regards,
    Sandeep

  • How to show a variable screen when clicking on direct link of report in ,when that report is used as target in RRI alsoRRI

    Hi All,
    I have created RRI between two reports and the type is web template/WAD.
    My requirement is to show the variable screen of target report when clicked on direct link and it should not show the var. screen if it goes from jump/go to.
    while currently I can not see var. screen on both the places and when switching the var. scree. display on in web template , it shows the screen at both the places.
    Please suggest.
    Thanks,
    Anu

    Hi Anu,
    "And when I am using another var. in assignment details which is ready for input (in both the queries), its not helping."
    Did you try using such a variable? What kind of a problem do you face? I am sorry I am still trying to understand your problem. I am just saying that which variable you use is not important for the first query. Only in the second query, add a variable with ready for input (I am not sure why the other doesn't work, I just tried and it gave an error, that's why I suggest this) and in RRI connection make the assignment with this variable. Please try this and let me know the result.

  • How to eliminate the space between two analysis in the Dashboard?

    Hi All,
    I have created a Dashboard which contains 12 analyses arranged vertically. When i see the report in the dashboard section it contains some standard space between each analysis. So it looks like separate separate analysis arranged in dashboard. But i want it to look a single table is it possible by reducing the space between every analysis? If possible please let me know how to achieve this in clear manner.
    Awaiting your valuable responses.
    Thanks in Advance
    Thenmozhi

    Hi,
    Yes,try to adjust the analysis view (table/pivot/chart view )Formating option...
    FYI: try to align formating left,right,top/bottom padding and also try to reduce the width and height..
    Please refer the below
    Re: Eliminating the space between two reports in OBIEE dashboard page Section
    THanks
    Deva

Maybe you are looking for