Third level Drill Down report

Hi,
I have a requirement to create the report using Crystal Reports 2008 up to 3 levels of drill-down. I tried to create it but I can create up to only 2nd level of drill-down.
Is it possible to create 3rd level of drill-down. If yes, please let me know how to create it.
Thanks in advance.
Regards,
Neel.

Hi Neo,
I use on-demand sub-reports.
Example:
If main report is for Customer summary which shows the amount received from customer.
Then for 2nd level of drill-down I will insert an on-demand sub-report. This sub-report will show the sales order numbers for that particular customer.
Now for third level of drill-down, I want show the details of sales orders (i.e., all the sales order lines of that particular sales order). So I am trying to insert a sub-report in existing sub-report, but here the sub-report option in the menu is already disabled.
Regards,
Neel.

Similar Messages

  • Drill Down Report in screen painter

    Hi Experts,
    I have a requirement in dialog programming/screen painter to create a 2 level drill down report. for eac page of the report, it should only contain 10 entries then to view the other entries (11 and up), the button for next page should be click (there is also back button).
    First question is how will I have the drill down report (alv list type?) in screen painter?
    Second question is how should I process the logic mentioned above (next and back) in screen painter/dialog programming?
    Thanks in advance for all teh support. Points will be rewarded.
    Cheers,
    Kurtt

    Hai,
    Go thru this Threads u ll get an idea,
    Drill down report help
    Re: regarding Drill Down Reporting
    drill down capabilities for an alv grid display field using oops concept
    Regards,
    Padmam.

  • Use different Layouts for Summary and Details in Drill down report

    Hi All,
    I have a 2 level drill down report in ALV.
    The summary report has certain fields and the Detail report has different fields. Now my problem is that when i use a default layout (with all fields of summary report) for the summary report, and drill down to the detail report i'm missing the fields on detail that are not in Summary. And if i save the default layout as default (with all fields of Detail) and go back to sumary, I'm missing the some other fields on summary (which are not on detail report).
    Is there a way to make different default layouts for each of those summary and detail reports:
    Also as the layouts are choosen by the user, i cannot hardcode any particular layout;
    So if the user chooses a layout for detail; it has to stay the same layout for the detail report if he goes to summary and then back to detail; unless the user changes the layout again.
    I'm using two different Layout types for each report. but i still cannot get the desired effect.
    Data:
          gt_layout_s             type slis_layout_alv,
          gt_layout_d             type slis_layout_alv,
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = g_repid
          is_layout                = <b>gt_layout_s</b>
          i_callback_top_of_page   = g_top_of_page
          i_callback_user_command  = g_user_command
          i_callback_pf_status_set = g_status
          i_save                   = g_save
          is_variant               = gs_variant
          it_fieldcat              = gt_fieldcat[]
          it_events                = gt_events[]
        importing
          es_exit_caused_by_user   = gs_exit_caused_by_user
        tables
          t_outtab                 = it_summary.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = g_repid
          is_layout                = <b>gt_layout_d</b>
          i_callback_top_of_page   = g_top_of_page
          i_callback_user_command  = g_user_command
          i_callback_pf_status_set = g_status
          i_save                   = g_save
          is_variant               = gs_variant
          it_fieldcat              = gt_fieldcat[]
          it_events                = gt_events[]
        importing
          es_exit_caused_by_user   = gs_exit_caused_by_user
        tables
          t_outtab                 = it_detail_disp.

    Here is how you differentiate between the layout of two different grids. There is the parameter, IS_VARIANT in the function. You usually leave it empty or pass only the report name and username. <b>What you need to do is to pass unique string for each grids to the HANDLE field of the parameter IS_VARIANT.</b> You can probably hard code it as HEADER and DETAILS in your case. Once that is done, system identified that these two different layout for different grids.
    Regards,
    Ravi
    Note : Please mark all the helpful answers<u></u>

  • Passing Filter criteria parameters to drill-down reports

    Hi,
    I have a scenario, where my base report prompts a filter criteria for date range (from & to date) based on this criteria, I populate my base report with data's.
    Suppose if i have a drill-down, can i make use of the filter criteria value selected in the base report and pass the same value to my next-level drill-down report as criteria.
    Please let me know if this is possible. Also, let me know if there is any alternate approach available to achieve the same.
    My environment details are provided below.
    BAM (11.1.1.3)
    Report: Summary crosstab
    Any help would be greatly appreciated.
    Thanks & regards,
    DK

    Hi pypawar,
    Thanx for ur reply.
    We are not using heirarchical drilling in our case, we are using another report for drill-down.
    I will give some more background for this issue.
    We have a scenario where we used the date filter for getting the from and to dates based on which we display our Master report (cross-tab).
    Further, when drilling down from the master report to child report(which uses the same dataobject as master); we are not able to pass the dates input that were provided in master report as filter criteria.
    While assigning parameters in the drill-down for the child report, we are not able to find an option to pass the date value selected in the master report to child report for filter criteria.
    In an alternate approach, what we did to resolve the above issue was to pass the primary key fields of the data object while drill-down. But while passing primary keys, we realised there are cases where large number of values are getting passed as filter criteria to child reports and in some case it fails since there large number values getting passed as filter criteria.(in our case the chance of this value could be few 100's to 1000's). You can find details for this error in CACHEEXCEPTION during drill-down in BAM reports
    Please let me know if this is possible. Also, let me know if there is any alternate approach available to achieve the same.
    Any help would be greatly appreciated.
    Thanks & regards,
    DK

  • Customized drill-down report cannot go to line item level (FGI4 and FGI1)

    Hi Expert,
    I created a customized drill-down report using New GL features, as follows:
    FGI4 create form, with reference to form: 0SAPBLNCE-01
    FGI1 create report for the form created.
    After that I set some things like characteristic, variables, and output type.
    When I execute the report, the data shown cannot be drill-down to line item level:
    Goto > Line Item (this function is disabled).
    Kindly advise why I cannot goto line item level, where I copy from standard form: 0SAPBLNCE-01, which ha sthe features of drill-down to line item level.
    Thanks
    sbmel

    Hi sbmel,
    For calling up a line item report in a drill down report you need to make the below settins:-
    - You first have to generate the line item report with program RGRGENSI for your summary table.
    - Then assign the generated line item report to the summary report.
               Assiging the report is part of the 'Change drilldown report' function, which you reach by activating the characteristic selection field and then Extras -> Report assignment.
                In the dialog box that appears, choose the 'Other report type' function and insert the line item report generated earlier, as an ABAP report
    Regards,
    Gaurav
    Edited by: gka2707 on Jul 19, 2010 8:07 AM

  • Drill down report ...  prompt in last level

    Hai,
    can you please send solution in obiee 10g .. I have drill down report like year---qtr----month----day----. I want prompt in day level .. is it possible?
    Appreciate your help....
    Thanks Mikky99

    Hi Srini thanks,
    Also I need to capture the particular days in month report like year(2002)-----month(feb2002) ----- day (1-Feb-2002) in day level rep with prompt...
    Thanks in Advance

  • Unable to Multi Level Drill Down on Single Data Object in BAM Report

    Hi,
    We need to have multi level drill down in a BAM report.
    We are able to create single level drill down using 'Collapsed List' view in a Tiled Report, but unable to drill further.
    We are using BAM (11.1.1.2).
    Please let us know the steps to do this, your input is highly appreciated.
    Thanks,
    Arijit
    Edited by: user2917352 on May 4, 2011 11:21 PM

    Have you used Dimension? By defining Dimensions, you can create multi level drill down on the same data object, in the same report.
    1. Define the Dimension in the data object
    2. In the Studio, choose Drilling tab under the report
    3. Drill Hierarchies will be available. Choose the Dimension
    The drilling level will depend on the depth of the Dimension you have specified!
    -AR

  • Drill Down Report Performance issue?

    Hi,
    why drill down report is slower performance comparing with Action link/Navigation method? what could be the back end processing?
    Thanks
    MRD

    Need to know/see your config to tell why it is slow, I would suggest to follow best practices for the same.
    Drill down back end process something like:
    Report fetch next level columns and the all aggregated measures are grouped by next level this may take some time unless you go with aggregate table (is part of best practices)
    Appreciate if you mark as correct/helpful

  • Hiding fields in ALV DRILLED DOWN REPORT

    Hi
    My scenario is like this i created a alv drilled down report , in that once the user executes it ,it will displays the header contents of the purchase order.
    If the user double clicks on any of the header line item it will displays the item detials of the particular header data..
    My probelm is if i double click  it i am getting the header details added with the item fields..i want to hide the header detials if i want to c the item level details..
    Can any suggest me some better ways to hide the header contents ??
    Arun Joseph

    hi,
    check ur field cat...
    R u using same name?
    If possible paste ur code here...

  • Drill down reports (Reports 3.0)

    I am trying to create a series of drill down reports using
    Reports 3.0. To do this I have created buttons in each report
    which pass parameters to the next report using the
    srw.run_report package. I have a problem with the lowest level
    report where no errors are reported but the report is generated
    as a blank page. When run in isolation, i.e. filling in the
    paramters manually, the report works perfectly well. Does anyone
    have any ideas? Also, when passing more than one parameter, do
    you just have to use the concatenation operator (

    nicola (guest) wrote:
    : I am trying to create a series of drill down reports using
    : Reports 3.0. To do this I have created buttons in each report
    : which pass parameters to the next report using the
    : srw.run_report package. I have a problem with the lowest level
    : report where no errors are reported but the report is generated
    : as a blank page. When run in isolation, i.e. filling in the
    : paramters manually, the report works perfectly well. Does
    anyone
    : have any ideas? Also, when passing more than one parameter, do
    : you just have to use the concatenation operator (

  • Drill Down Report using Crystal reports in eclipse and jspviewer

    Hi
    I want to understand how to write a drill down report since I have a requirement for my project, so I tried to run the sample drill down.rpt that is available with Crystal Reports 2008 Complete Reference book by George Peck.
    I can see the results correctly( i.e. can drill down) in the preview tab . Since I am working inside the eclipse, the way I run the reports is first  "Create report viewer JSP" by right clicking the report and have a url mapping to this jsp. I am running the reports from a hyperlink that maps to the url which will launch the jsp.
    the jsp is:-
    <%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><crviewer:viewer reportSourceType="reportingComponent" viewerName="Drill Down-viewer" reportSourceVar="Drill Down" isOwnPage="true" allowDrillDown="true">
         <crviewer:report reportName="reports/Drill Down.rpt" />
    </crviewer:viewer>
    The one that was created by  "Create report viewer JSP" did not had "allowDrillDown" attribute at all .But I added it since it isnt working.
    So when I launch my web app and click on the link to run the report, I get the report results but only to the summary level. When I double click the summary level I get a 404 error page.
    Can please anyone suggest what is going on.
    Thanks
    poonam

    Ok. So, you added the report to the project. Now we have to add the CR assemblies to the project, add the viewer (if need be) and fire it off. Simplest code would be:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            CrystalReportViewer1.ReportSource = ("path to report")
        End Sub
    In this case you are using the viewer SDK to runt he report. The report will prompt for any logon parameters - but you can code these also. You can load the report via the engine as bellow. Again, the report will prompt. I prefer to use the engine as it is way more "extensible"...
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
            crReportDocument.Load("path to report")
            'Bind the report to the viewer
            CrystalReportViewer1.ReportSource = crReportDocument
        End Sub
    If you have a report added to the project (strongly typed) the code would be:
    CrystalReportViewer1.ReportSource = New myReport()
    For more details, I'd recommend looking at the sample app vbnet_win_simplepreviewreport.zip available from the following location:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    The developer help files are here:
    [SAP Crystal Reports .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
    [SAP Crystal Reports .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
    - Ludek

  • Total Label in Drill down reports

    This is a simple case scenario. I created one drill down report by Country --> State --> City and set this object as section. It has revenue Column in it. Now I did Summation on the Revenue column and it shows like this
    USA  -- (Section)
    Column1, Column2
    XXX, 3  
    Sum, 3
    Now instead of Sum, I would like the label to replace it with country name and when I drill down to second level, it should replace it with the State name and again on level 3 replace it with City name.
    Could anyone help me on achieving this. Is it doable? I have been trying to achieve this but had no success.
    Thanks for your help in advance.
    Rids

    Yes, It can be achieved with the help of the DrillFilters() function.
    You can build the logic using if-else condition. Here is the one for you:
    =If(Drillfilters([City])<>"") Then [City] Else If(Drillfilters([State])<>"") Then [State] Else If(Drillfilters([Country])<>"")
    Then [Country]
    Regards,
    Rohit

  • Drill down reports using SVG component

    I've created and dynamic report and an SVG chart following the examples of the tutorials. I was wondering if, and how, it was possible to create drill-down reports i.e report on colour, then clicking on that colour would reveal the types of car and so on. Does anyone have an example?
    Thanks
    Darren

    Darren,
    The query for an SVG chart requires 3 columns: Link, Label, and Value. You use the Link value to provide a link to another page. This link can also pass parameters to the next page.
    If you set up a page for each "level" of your drill-down (e.g. color, type of car, etc), you can link from the higher-level page to the lower level page and pass the value that was clicked on in the chart.
    Take a look in the HTML DB User's Guide for the section about "Using f?p Syntax to Link Pages": http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10992/mvl_fund.htm#BEIJCIAG
    You would use that syntax in the Link column of the query for your chart. Here is part of a query I used to drill down from one pie char to another (on page 3), passing the selected project to a variable called P3_PROJECT.
    select 'f?p=&APP_ID.:3:&SESSION.::NO::P3_PROJECT:' || Project L,
    Project, sum(Time)
    from v_timesheet
    where ...
    Does that help?

  • Drill-down reports Discoverer-style

    Hi,
    I'm looking for a way to implement drill-down reports in HTMLDB. All the references I found are showing details in a 2nd page for a certain row in the 1st page (e.g. ordered items for an order ID).
    I'm not looking for this, but for drill-down "a la Discoverer", such as this example
    http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/viewer/lesson1.htm#t7
    One can select there multiple criterias for drill down.
    Perhaps the solution would be a combination of tree reports with standard reports
    http://www.oracle.com/technology/products/database/htmldb/howtos/howto_tree.html
    but I don't see clearly how to do it, especially with a lot of drill-down options.
    Do you have any suggestions?
    Many thanks,
    Marius

    I think there are two differen approaches:
    - using the HTML report and doing some "dynamic" SQL at the block level
    (That means you have to write the drill down - this is the logic that
    is done by the tree - by yourself)
    If you ever have done the work to do this in combination with a HTML DB report,
    please post it here.
    - using the a Tree Page with a special layout and view
    Which one to use depends on how often you have to use this.
    You can see an example under:
    http://htmldb.oracle.com/pls/otn/f?p=41053:30
    Here is a quick hack for the Tree Page variant, that may help you.
    Using a Tree page uning a view and changing the tree template gives you some of
    this functionality. If you have to do more of this kind use a stylesheet (.css) to
    controll the layout.
    1. Create a View that represents your Hierarchy (Structure)
    For every level create a UNION secion.
    Using UNION you can get the records from different sources also.
    2. Create a Page with a Tree, SQL Query Based.
    Use the View that you created before.
    NAME .. are the levels of your dimensions
    A1, A2 .. are your measures of your fact
    ID, PID .. the hierarchy (structure) information
    * Step 1 - creating a view:
    create or replace view tree as
    select id, pid, name, link, a1, a2
    from (
    -- Level 1 (Root Level)
    select
    to_char(ORDER_TIMESTAMP,'YYYY') id, null pid,
    to_char(ORDER_TIMESTAMP,'YYYY') name, null link,
    to_char(sum(ORDER_TOTAL),'999G9990D99') a1, to_char(count(*),'999G9990D99') a2
    from DEMO_ORDERS
    group by
    to_char(ORDER_TIMESTAMP,'YYYY'),
    to_char(ORDER_TIMESTAMP,'YYYY')
    UNION
    -- Level 2
    select
    to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
    to_char(ORDER_TIMESTAMP,'Month'), null,
    to_char(sum(ORDER_TOTAL),'999G9990D99'), to_char(count(*),'999G9990D99')
    from DEMO_ORDERS
    group by
    to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
    to_char(ORDER_TIMESTAMP,'Month')
    UNION
    -- Level 3 (Leaf Level)
    select
    to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
    to_char(ORDER_TIMESTAMP,'DD. Day'), null,
    to_char(sum(ORDER_TOTAL),'999G9990D99'), to_char(count(*),'999G9990D99')
    from DEMO_ORDERS
    group by
    to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
    to_char(ORDER_TIMESTAMP,'DD. Day')
    )If you have a lot of this kind of reports you realy should think to
    use discoverer. It does a lot of sql behind the szenes and also in the
    presentation logic - this is what you have to do here by hand.
    If you have more than two measures (A1,A2) you can do the
    formatting in your view (realy ugly, but it is a workaround).
    * Step 2: Create the tree page
    Tree Query:
    select
    "ID" id, "PID" pid, "NAME" name,
    null link, a1 a1, a2 a2
    from TREEBefore Tree:
    <table border="0" cellspacing="0" cellpadding="0">After Tree:
    </table>Leaf Node:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" align="left">
    </td>Leaf Node Last:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" align="left">
    </td>Drill Up:
    (up)Indent Vertical Line:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" > </td>Indent Vertical Line Last:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" > </td>Unexpanded Parent:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" >
    < a href="#DRILL_DOWN#">
    < img src="#IMAGE_PREFIX#rollup_plus_dgray.gif" width="16" height="22" border="0">
    < /a>
    </td>Unexpanded Parent Last:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" >
    < a href="#DRILL_DOWN#">
    < img src="#IMAGE_PREFIX#rollup_plus_dgray.gif" width="16" height="22" border="0">
    < /a>
    </td>Expanded Parent:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" >
    < a href="#DRILL_DOWN#">
    < img src="#IMAGE_PREFIX#rollup_minus_dgray.gif" width="16" height="22" border="0">
    < /a>
    </td>Expanded Parent Last:
    <td style="background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #cece9c #9c9b64 #cece9c;
    border-width:1px 0px 1px 0px;" >
    < a href="#DRILL_DOWN#">
    < img src="#IMAGE_PREFIX#rollup_minus_dgray.gif" width="16" height="22" border="0">
    < /a>
    </td>Parent Node Template:
    <tr>#INDENT#
    <td style="color:#00319c; background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #9c9b64 #9c9b64 #cece9c;
    border-width:1px 1px 1px 0px;" colspan="#COLSPAN#"
      valign="CENTER" class="tiny">#NAME#</td>
    <td align="right" style="background:#f7f7e7;">#A1#</td>
    <td align="right" style="background:#f7f7e7;">#A2#</td>
    #DRILL_UP#
    </tr>Node Text Template:
    <tr>#INDENT#
    <td style="color:#00319c; background:#cece9c;
    border-style:solid;
    border-color:#f7f7e7 #9c9b64 #9c9b64 #cece9c;
    border-width:1px 1px 1px 0px;" colspan="#COLSPAN#"
      valign="CENTER" class="tiny">#NAME#</td>
    <td align="right" style="background:#f7f7e7;">#A1#</td>
    <td align="right" style="background:#f7f7e7;">#A2#</td>
    </tr>Name Link Anchor Tag:
    < a href="#LINK#">#NAME#</a>Name Link Not Anchor Tag:
    #NAME#* Extended Version of the View. Use this style of query if you have more than two measures:
    create or replace view tree as
    select id, pid, name, link,
    '<table border="0" cellspacing="0" cellpadding="0" style="background:#f7f7e7;">'||
    case when rownum = 1
    then '<tr style="background:#cece9c;">'||
    '<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Amount</th>'||
      '<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Orders</th>'||
      '<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Measure</th>'||
      '<th style="border-style:solid; border-color:#cece9c #9c9b64 #9c9b64 #f7f7e7; border-width:0px 1px 1px 1px;">Measure</th>'||
    '</tr>'
    end||
    case
    when lvl = 2 then '<tr style="color:#000088;">'
    when lvl = 3 then '<tr style="color:#888888;">'
    else '<tr>'
    end ||
    '<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
    to_char(a1,'999G9990D99')||'</td>'||
    '<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
    to_char(a2,'999G9990D99')||'</td>'||
    '<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
    to_char(a3,'999G9990D99')||'</td>'||
    '<td align="right" width="80px" height="24px" style="background:#f7f7e7; border-style:solid; border-color:#9c9b64 #9c9b64 #f7f7e7 #f7f7e7; border-width:1px 1px 0px 0px;">'||
    to_char(a4,'999G9990D99')||'</td>'||
    '</tr>'||
    '</table>' a1, null a2
    from (
    -- Level 1 (Root Level)
    select
    1 lvl, to_char(ORDER_TIMESTAMP,'YYYY') id, null pid,
    to_char(ORDER_TIMESTAMP,'YYYY') name, null link,
    sum(ORDER_TOTAL) a1, count(*) a2,
    count(*)*10 a3, count(*)*100 a4
    from DEMO_ORDERS
    group by
    to_char(ORDER_TIMESTAMP,'YYYY'),
    to_char(ORDER_TIMESTAMP,'YYYY')
    UNION
    -- Level 2
    select
    2, to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
    to_char(ORDER_TIMESTAMP,'Month'), null,
    sum(ORDER_TOTAL), count(*),
    count(*)*10, count(*)*100
    from DEMO_ORDERS
    group by
    to_char(ORDER_TIMESTAMP,'YYYYMM'), to_char(ORDER_TIMESTAMP,'YYYY'),
    to_char(ORDER_TIMESTAMP,'Month')
    UNION
    -- Level 3 (Leaf Level)
    select
    3, to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
    to_char(ORDER_TIMESTAMP,'DD. Day'), null,
    sum(ORDER_TOTAL), count(*),
    count(*)*10, count(*)*100
    from DEMO_ORDERS
    group by
    to_char(ORDER_TIMESTAMP,'YYYYMMDD'), to_char(ORDER_TIMESTAMP,'YYYYMM'),
    to_char(ORDER_TIMESTAMP,'DD. Day')
    )If you use stylesheets the above query will be more suitable.
    See also:
    Expand/Collpase Lists
    Hope that helps, Willi

  • Agregated value in original report in not same as the drill down report

    Hello experts,
    I have a issue with the drill down reports.
    Agregated value in the main report is not equal to the agregarated value in the drill down report.
    In my report I have a sales for jan 2011,feb 2011 so on
    For jan 2011 it is some thing $56000
    when I click on this amount it giving the detail level for each region sales and at the end it is giving the total sales for jan 2011 as $98000
    My question is why there such difference in the total amount when we are drilling down?
    Please help me in this regard. I am new to obiee.

    hello
    do you have any filters on this report that would related to measures?
    if so, remove these filters and see if you still get different values;
    rgds

Maybe you are looking for