Creating Calculations in RTF templates

Is there any way of creating calculations or formula functions within rtf's?

http://blogs.oracle.com/xmlpublisher/discuss/msgReader$75

Similar Messages

  • Creating Parameters in RTF Template for BI Publisher Report

    hi,
    I have created Parameters in my BI Publisher Report and in SQL query. But i need to create same parameters in RTF Template , so that when i publish this report in dashboard , parameters will be visible. Can you please tell me how to create Parameters in RTF Template for BI Publisher Report ? I am not finding option. Please let me know .
    Thanks in advance
    Gayathri.

    all the parameter's value will be there in your xml .
    just you need to add parameter heading and corresponding xml tag name to get the parameter value on the report.
    if u dont have you can try like below
    https://blogs.oracle.com/xmlpublisher/entry/get_your_parameters_here_guv
    Declare Parameter in RTF Template
    Before you use the parameter in the RTF template file you need to declare it first. You can do so by having the following syntax.
    <?param@begin:%parameter_name%?>
    Note: where %parameter_name% is the parameter name that you have created at the BI Publisher Server UI.
    Here is an example:
    <?param@begin:param1?>
    Use it in RTF Template!
    Once it’s declared in the RTF template you can start using it as the same way you use the variable. You need to just add ‘$’ prefix in front of the parameter name. Here is the example:
    <?$param1?>
    The above example would print the parameter value in the report output. If you want to use this value in your condition or calculation you can simply use it as ‘$param1’. Yes, it’s that simple.
    If you are not sure if and how the parameter values are passed to the report when you run the report you can use this command in your RTF template, which will return all the parameter values passed to the RTF template at the runtime.
    <?xdoxslt:getXDOProperties($_XDOCTX)?>
    http://kirti-bi-solutions.blogspot.com/2009/06/passing-parameters-from-obiee.html

  • Calculations in RTF Template

    Hi All,
    I am new to BI Publisher and I am trying to create a template that will calculate growth for various fields.
    The data is split like (ignore # - using to show structure of XML):
    <YTDKPI>
    ###<YTDKPI_ROW>
    ######<FIELD 1>(Val)</FIELD 1>
    ######<FIELD 2>(Val)</FIELD 2>
    ######<FIELD 3>(Val)</FIELD 3>
    ###</YTDKPI_ROW>
    ###<YTDKPI_ROW>
    ######<FIELD 1>(Val)</FIELD 1>
    ######<FIELD 2>(Val)</FIELD 2>
    ######<FIELD 3>(Val)</FIELD 3>
    ###</YTDKPI_ROW>
    </YTDKPI>
    There are two <YTDKPI_ROW>, one for 2009, one for 2008.
    Within the template, I would like to calculate the growth year on year for each of the fields.
    My template so far looks like (again ignore #):
    |## KPI ###|##<?for-each-group@column:YTDKPI;./YEAR?>#####<?YEAR?><?end for-each-group?>##|
    |## YEAR ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?>#<?YEAR?><?end for-each-group?>##|
    |
    |## KPI 1 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD1?><?end for-each-group?>##|
    |
    |## KPI 2 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD2?><?end for-each-group?>##|
    |
    |## KPI 3 ##|##<?for-each-group@column:YTDKPI_ROW;./YEAR?><?FIELD3?><?end for-each-group?>##|
    |
    When previewed, this results in a 3 column table with the KPI's for 2008 in column 2 and the KPI's for 2009 in column 3 (names in column 1)
    If possible, I would like a 4th column to calculate the % change between 2008 and 2009.
    I would like to do this within the template as the above is a very simplified version of the actual and to have fields within the data for each of the growths would not be the preferred method.
    From the above I hope I have communicated exactly what I need!
    I think the problem I face is in specifying a particular row number within the data to perform a calculation?
    I may have started off completely wrong, so any advice would be useful.
    Please Help!
    Many Thanks
    note: the data is generated via an Answers report and the template has been created as an RTF template using Word 2007.

    Hi Vetsrini,
    That didn't work either. I think we need to take a step back to ensure I have not missed something.
    Please see below for a sample xml and the code from word:
    <DATA>
    <YTDKPI>
    <YTDKPI_ROW>
    <YEAR>2008</YEAR>
    <SALES>100</SALES>
    <PERCENT_TO_PLAN>0.8</PERCENT_TO_PLAN>
    </YTDKPI_ROW>
    <YTDKPI_ROW>
    <YEAR>2009</YEAR>
    <SALES>150</SALES>
    <PERCENT_TO_PLAN>0.85</PERCENT_TO_PLAN>
    </YTDKPI_ROW>
    </YTDKPI>
    </DATA>
    YEAR     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?YEAR?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/YEAR div /YTDKPI/YTDKPI_ROW[2]/YEAR)?>
    SALES     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?SALES?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/SALES div /YTDKPI/YTDKPI_ROW[2]/SALES)?>
    PERCENT TO PLAN     <?for-each-group@column:YTDKPI_ROW;./YEAR?><?PERCENT_TO_PLAN?><?end for-each-group?>     <? (/YTDKPI/YTDKPI_ROW[1]/PERCENT_TO_PLAN div /YTDKPI/YTDKPI_ROW[2]/PERCENT_TO_PLAN)?>From loading the xml data into word, copying and pasting the code into word (2007) and previewing I get:
    YEAR
    2008
    2009
    NaN
    SALES
    100
    150
    NaN
    PERCENT TO PLAN
    0.8
    0.85
    NaN
    If I use the other suggestion, for the calculation, it returns a blank cell.
    Please Help! What do I need to do?
    Again Many Thanks,
    Edited by: user11240727 on 17-Sep-2009 02:06

  • Can we do Calculations in RTF Template

    Hi Friends
    Can we do calculations in RTF template with the fields existing in the XML code.
    Say there are 2 fields CF_TAX1 and CF_TAX2, can we do calculations with them to give output in a cell in a table in the RTF template for eg:
    (CF_TAX1)/(1+CF_TAX2)
    What will be the exact syntax of the above to be used in RTF Template.
    Regards
    Ray

    All kind of calculations can be done, you can also use varibale and store the values and print it in differnt cell

  • Problem: Creating Charts in RTF Templates

    I am using BI Publisher Template Builder for Word. I am using Word 2007 and the patch 9821068 of the Template Builder.
    I am attempting to create a chart in an rtf template using the chart wizard. I can go through the wizard fine and preview my chart and changes using the preview button.
    However, when hit ok a static image of the preview of the chart is inserted into the rtf file and not a bi pub chart “object”. When I right click on the “chart” I do not see the “BI Publisher Chart..” menu item.
    When I create a report on the BI Server using the chart template I created above, the chart is not updated. It is just the static image that was inserted by the Template Builder. I tried various data sources for the report and the chart never changes.
    Anyone have any ideas whats wrong?
    Thanks,
    -Matt
    Edited by: user12869451 on Jul 22, 2010 4:04 PM

    Hi Matt,
    Send me the template and xml, fusion{DoT}object[AT]gmail[dOt]com

  • Help with math / calculations in RTF templates

    Greetings,
    I know that there are math capabilities in the templates... I've seen the code samples in the Core Components guide.
    What this doesn't tell you is WHERE these things would go in a template. And... that... is my question.
    We are just starting to use BIP in conjunction with JDE EnterpriseOne (8.12, tool set 8.97.12). For our first attempt we're creating our template over a new report.
    I have a template where I sum two different repeating values (through the normal BI Properties) and place these values in two separate cells in a table. I want to sum the two of these together for a "grand" total.
    I've seen the "examples" but they really aren't very helpful. The xsfo, etc. for doing addition is fine, but WHAT are the values to add and WHERE does the code go?
    If anyone has done something like this or has experience using the embedded code I would appreciate hearing from you.
    Thanks in advance

    I see what you are saying about the spaces... but it made no difference... still got the error.
    The XML file is too large and convoluted to be pasted here.
    With reqards to the following snippet:
    COLA = <?sum(current-group()/COLA)?>
    COLB = <?sum(current-group()/COLB)?>
    Summ== <?sum(current-group()/COLA) + sum(current-group()/COLB)?>
    Where does THIS code go?
    Here is the error detail:
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\jdenison\My Documents\BIP Templates\R5642001\R5642001_TEMPLsave.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\jdenison\My Documents\BIP Templates\R5642001\R5642001_RICE0001_D081029_T144059683.xml
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:439)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'sum'
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
         ... 15 more

  • Calculation in rtf template

    I got error when I perform calculation in a field, the code is
    <?sum(current-group()/_IFNULL__BE_measures_._TOTAL_COST___0_) div sum(current-group()/_BE_measures_._GROSS_SALES_)?>
    It shows errors:
    Caused by: oracle.xdo.parser.v2.XPathException: An internal error condition occurred.
    My case is infact a simple % ratio of
    [Sum(Field A) - Sum(Field B) ] / Sum(Field A)
    Any workaround ??? or use xdofx? but I have tried to use xdofx but nothing is shown.
    Please help
    Thanks ~!

    Field A and B are both numbers.
    I also aware of '0' problem and I have already define it (ifnull (xx,0) ) from answers.
    Finally, I use this to make it done:
    <?xdoxslt:div(sum(current-group()/_BE_measures_._GROSS_SALES_) - sum (current-group()/_IFNULL__BE_measures_._TOTAL_COST___0_), sum(current-group()/_BE_measures_._GROSS_SALES_)) * 100 ?>
    I wonder why I can't use simply "div" nor "xdofx" to archieve this....
    Thanks all anyway ~

  • Problem with extended SQL functions in RTF Template

    Hello,
    I'm new to BI Publisher and I'm trying to create a new rtf template. I've created my layout and added fields without any problems, but I'm having trouble trying to insert calculations such as add,substract,multiply,divide, etc.
    Here is an example of what I'm trying to do:
    <?xdofx:STAFF_ASMT+100?>
    Where STAFF_ASMT is one of my fields. When I add this function all I get is the actual value from that field returned on the first page, and then on other pages I get the value plus an extra zero.
    So with my example data below I get: 6600 on page 1 and 51830 on page 2. Any ideas on what I'm doing wrong or if it is possible to do what I'm doing? Also, is it possible to add/substract/multiple two or more fields together?
    Something like this: <?xdofx:STAFF_ASMT+GROSS_INV?>
    I was going to add all of these functions to my SQL statement, but I have 30 or so calculations I want to perform in the layout and I don't want to have to write that all out in SQL.
    <ROWSET>
    <ROW>
    <STAFF_ASMT>6600</STAFF_ASMT>
    <GROSS_INV>0</GROSS_INV>
    </ROW>
    <ROW>
    <STAFF_ASMT>5183</STAFF_ASMT>
    <GROSS_INV>0</GROSS_INV>
    </ROW>
    </ROWSET>
    Thanks for your help

    When I tried that I get the following error message when I click the Validate Template option:
    [080609_031631893][][ERROR] [Line 162.184] Incorrect XPath: +
    And when I try to generate a PDF preview I get:
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:439)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: './/+'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)

  • Images Behind Text in RTF Template

    While creating a few rtf templates, I noticed that if an image is to be shown behind text then the image will not render to back to .rtf by bi pub.
    If I put the image inline with text, it renders just fine.
    Am I missing a step that would allow me to render the image behind text or is it just working as intended?
    Oracle BI Publisher 10.1.3.4.1
    Thank you.
    Edited by: Crawler409 on Dec 17, 2010 2:49 PM
    Edited by: Crawler409 on Dec 17, 2010 2:50 PM

    Hi
    Can you pl. send me the RTF template and sample XML. I will try to fix the template.
    Thx
    chundi ([email protected])

  • How to create a dynamic RTF report which creates dynamic columns based on dynamic column selection from a table?

    Hi All,
    Suppose I have table, whose structure changes frequently on daily basis.
    For eg. desc my_table gives you following column name on Day 1
    SQL > desc my_table;
    Output
    Name
    Age
    Phone
    On Day 2, two more columns are added, viz, Address and Salary.
    SQL > desc my_table;
    Output
    Name
    Age
    Phone
    Address
    Salary
    Now I want to create an Dynnamic RTF report which would fetch data from ALL columns from my_table on daily basis. For that I have defined a concurrent program with XML as output type and have attached a data template/data definition to it which takes in XML as input and gives final output of conc program in EXCEL layout. I am able to do this for constant number of columns, but dont know how to do it when the number of columns to be displayed changes dynamically.
    For Day 1 my XML file should be like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    And my Day 1, EXCEL output from RTF template should be like this.
    Name     Age     Phone
    Swapnill     23     12345
    For Day 2 my XML file should be like this. With 2 new columns selected in SELECT clause.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    And my Day 2, EXCEL output from RTF template should be like this.
    Name     Age     Phone     Address     Salary
    Swapnill     23     12345         Madrid     100000
    Now, I dont know below things.
    Make the XML dynamic as in on Day 1 there must be 3 columns in the SELECT statement and on Day 2, 5 columns. I want to create one dynamic XML which should not be required to be changed if new columns are added in my_table. I dont know how to create this query and also create their corresponding elements below.
    Make the RTF template dyanamic as in Day1 there must 3 columns in EXCEL output and on Day 2, 5 columns. I want to create a Dynamic RTF template which would show all the columns selected in Dynamic XML.I dont know how the RTF will create new XML tags and how it will know where to place it in the report. Means, I can create RTF template on Day 1, by loading XML data for 3 columns and placing 3 XML tags in template. But how will it create and place tags for new columns on Day 2?
    Hope, you got my requirement, its a challenging one. Please let me know how I can implement the required solution using RTF dynamically without any manual intervention.
    Regards,
    Swapnil K.
    Message was edited by: SwapnilK

    Hi All,
    I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
    Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
    Please let me know if there is any oracle functionality to do this.
    If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
    For eg, /$APPL_TOP/ar/1.0/sql or something.
    Regards,
    Swapnil K.

  • Convert XSL-FO template back to RTF template

    Report's layout that I have to create has strict size requirements (e.g. page margins, cell sizes and so on).
    I created a simple RTF template using MS Word. RTF template meets this size requirements but when I print my report using Acrobat Reader report looks different.
    I know that this happens because at runtime BI Publisher converts report to XSL-FO automatically to XSL-FO and only after that it renders pdf.
    In order to meet thissize requirements I converted my RTF template to XSL-FO stylesheet using Template Builder and changed appropriate cells and margins etc. manually.
    And everything works well but now I know that there will be a lot of changes in this report's layout (e.g. several complex tables will be added).
    It's quit difficult for me to create tables in XSL-FO. And so my question is
    HOW CAN I CONVERT MY XSL-FO STYLESHEET BACK INTO RTF FORMAT WITH ALL THE LOGIC IT HAS?
    BI Publisher Release 10.1.3.4
    Thanks.
    Edited by: Ruslan on 20.07.2011 5:22

    No way , you can't go back.

  • How to select specific rows in rtf template for complex calculation

    Hi,
    I want custom calculation in my rtf template and for this i need to select specific cell's value OR specific row's value. Any one please suggest how can I get this. Below is the example i have plotted using excel. My target is to get field 8 and 9 using sum and minus. We can calculate column over column, is there any way to calculate row over row? If I use variables, then i have to create so many variables because I have more columns and rows to calculate (here i posted one sample table). Any one please help me how can I get expected result other than using variables! If "Using variables" is the only way then also give your valuable opinions.
    Row No
    Curr Qtr
    PQtr1
    PQtr2
    3
    B3
    C3
    D3
    4
    B4
    C4
    D4
    5
    B5
    C5
    D5
    6
    B6
    C6
    D6
    7
    B7
    C7
    D7
    8
    B8=SUM(B4:B7)
    C8=SUM(C4:C7)
    D8=SUM(D4:D7)
    9
    B9=B8-B5
    C9=C8-C5
    D9=D8-D5
    Thanks.

    Hi AlexAnd,
    Thanks for the reply, I got 0 using both codes. This is a dummy table and I plotted 3,4 to give an idea of row number (as like as excel). Rows are individual data sets combining different measures and dimensions with different values.
    Account
    Curr_Qtr
    PQtr1
    PQtr2
    Deposit
    10
    15
    20
    Loan
    15
    20
    25
    Earning
    20
    25
    30
    Assets
    25
    30
    35
    Total
    =SUM(15,20)
    =SUM(20,25)
    =SUM(25,30)
    Expense
    =SUM(15,20)-25
    =SUM(20,25-30
    =SUM(15,20)-25
    Is there any way to identify the range or individual cell's value? Using variables I have to create lots of variables for each cells, I want to avoid that and want to use rows in calculation! Is that possible, Pls share your valuable opinions!
    Thanks.

  • Rtf Templates created with BI Publisher 11.1.1.3.0 not working in APEX

    I created templates using BI Publisher v10 Desktop that I used to create Report Layouts in APEX and everything worked just fine. However, I've upgraded to BIP 11.1.1.3.0 Desktop and the rtf templates don't work. I suspect that the problem is with the graphs.
    Is there something in my APEX environment that needs to be upgraded or modified to be compatible with the BIP v11 templates? Are templates created with BIP v11 compatible with APEX Reporting?

    I'm having a similar issue with 11.1.1.3.0
    My RTF templated uploaded to APEX correctly, and seems to load and generate ok. The OUTSIDE formatting on the report (title, etc) all seem to show fine, but the actual repeating data block doesn't show any of the data or columns or boxes..... Just the column headers.
    VERY FRUSTRATING......

  • How to create a hyperlink in RTF template to navigate within the report

    Hi,
    I have an RTF template for one of my report and in that i want to provide hyperlink "Top" which will take the user to the beginning of the report. The output of the report is in HTML format which gets displayed on the browser.
    Since the report has some many tables and is very lengthy i wanted to provide an hyperlink which will navigate to the top at the end of each table.
    I formatted my report title as "Heading1" and created an hyperlink at the bottom of the table in the template and pointed it to the above heading. But still i am not able to navigate to the top from the HTML report that gets generated.
    I have the template and the sample xml file at the following shared location:
    \\Rakumara-pc\TO_XMLPUB_GURU folder.
    Please take a look and help point out what am i doing wrong.
    -thanks
    Ramesh K

    Hey Ramesh
    Thats cheating ... the forum is meant for customers not O developers ;o)
    Can you send your template link (I cannot get into your PC) to the xmlp ML and we'll help there.
    Regards, Tim

  • Best approach -To create RTF template having more than 50 tables.

    Hi All,
    Need your help.I am new to BI publisher. Currently we are using BIP 11g.
    I want to develop.rtf template having lots of layout and images.
    Data is coming from different tables (example : pulling from around 40 tables). When i tried to pull data from 5 tables by joining tables. It takes more time using data model in BI publisher 11g saved in xml and used in word doc.
    Could you please suggest best approach  weather i need to develop .rtf template via data model or query to generate a report.
    Also please suggest / guide me .
    Regards & Thanks in advance.

    it's very specific requirements
    first of all it's relate to logic behind
    as example 50 tables are related ? or 50 independent tables ? or may be 5 related and another independent ?
    based on relation of tables you create sql statement(s)
    how many sql statement(s) you'll have lead to identify ways to get data, as example, by package or trigger etc
    kim size of resulting select statement(s)
    if size say 1mb it's must be fast to get report but for 1000mb it can consume many time
    also kim what time it's not only to select data but to merge data and template
    looks like experimenting and knowing full logic of report is only ways to get needed output in projection of data and time

Maybe you are looking for