Grouping on different levels

Hello

Here is my structure:
<>company
< name > company #1 < / name >
<>Agency
Paris < ag_name > < / ag_name >
< > 100 turnover < / turnover >
< / Agency >
<>Agency
London < ag_name > < / ag_name >
< > 250 turnover < / turnover >
< / Agency >
< / company >
<>company
< name > company #2 < / name >
<>Agency
Berlin < ag_name > < / ag_name >
< > 100 turnover < / turnover >
< / Agency >
< / company >

I don't want to display that data like this
________________________________
Company 1. Paris: 100 k€ |
| London: 250 k€ |
____________|___________________|
Company 2 | Berlin 100 k€ |
____________|________________ __|
Total | 450 k€ |


I can't do it with the wizard, because it allows to work only a single node. By the classical way, all agencies are listed for all businesses (i.e., Berlin appears on the first line and Paris and London on the second).

I searched for a way to do with the current - group (), but I did ' t do!

Is there a solution for this?

Thank you

Take a look at this blog: http://blogs.oracle.com/xmlpublisher/2009/09/formatting_concatenated_dataso.html

Thank you!

Tags: Business Intelligence

Similar Questions

  • Navigate trough different 'levels' in the XML file from the known item?

    I am quite new to this, so I have to ask even if it's a stupid question...

    I am trying to build a generic oracle procedure that can insert data into a table from a file XML so that message that it contains, but of course the messages has the same structure.

    I need to find the first item after data, in this case "CUS_ORD_HEAD", but it could be any message as PO_HEAD.
    So I need to somehow find the element without knowledge is the name of the element. It goes same for CUS_ORD_LINE that might be PO_LINE. Is it possible to navigate through the different 'levels' in the XML file from a known element.

    < CustomerOrder >
    < metadata >
    < TransActionIdentity > 1 < / TransActionIdentity >
    < / metadata >
    < data >
    < Client CUS_ORD_HEAD = 'ABC' CustomerOrderNumber '1234' = >
    < CUS_ORD_LINE CustomerOrderNumber = "1234" OrderedQuantity = "10" ProductNumber = "1001403" CustomerOrderLinePosition = "1" / >
    < HAPI_CUS_ORD_LINE CustomerOrderNumber = "1234" OrderedQuantity = "1" ProductNumber = "2530" CustomerOrderLinePosition = "2" / >
    < CUS_ORD_LINE_TEXT CustomerOrderLinePosition = '2' Text = "Test" CUSTOMERORDERNUMBER = "1234" / >
    < / HAPI_CUS_ORD_HEAD >
    < / data >
    < / CustomerOrder >

    the tablename parameter is identical to the XML element and attributes are the same as the columns

    OK, understood.

    You can retrieve the name of the element and attribute names in the same time by using something like the following.
    Attribute names are stored in a collection that is accessible iteratively in order to build the dynamic parts of the query:

    SQL> CREATE OR REPLACE TYPE TColumnList IS TABLE OF VARCHAR2(30);
      2  /
    
    Type created
    
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2
      3   xmldoc   xmltype := xmltype('
      4  
      5  
      6  1
      7  
      8  
      9  
     10  
     11  
     12  
     13  
     14  
     15  
     16  
     17  ');
     18
     19   --t_column_list TColumnList := TColumnList();
     20   --v_table_name  VARCHAR2(30);
     21
     22   tmp_cols      VARCHAR2(1000);
     23   tmp_paths     VARCHAR2(1000);
     24   tmp_qry       VARCHAR2(4000);
     25
     26  BEGIN
     27
     28    FOR r IN (
     29      SELECT table_name
     30           , set(cast(collect(column_name) as TColumnList)) as column_list
     31      FROM XMLTable(
     32           'for $i in /CustomerOrder/Data/descendant::*
     33              , $j in $i/attribute::*
     34            return element e
     35            {
     36              element TABLE_NAME {name($i)}
     37            , element COLUMN_NAME {name($j)}
     38            }'
     39            passing xmldoc
     40            columns
     41              table_name   varchar2(30)
     42            , column_name  varchar2(30)
     43           )
     44      GROUP BY table_name
     45    )
     46    LOOP
     47
     48      tmp_cols := NULL;
     49      tmp_paths := NULL;
     50
     51      --dbms_output.put_line(r.table_name);
     52
     53      FOR i in 1 .. r.column_list.count LOOP
     54
     55        tmp_cols := tmp_cols || ', ' || r.column_list(i);
     56        tmp_paths := tmp_paths || ', ' || r.column_list(i) || ' varchar2(35) path ''@' || r.column_list(i) || '''';
     57
     58      END LOOP;
     59
     60      tmp_cols := ltrim(tmp_cols, ', ');
     61      tmp_paths := ltrim(tmp_paths, ', ');
     62
     63      tmp_qry := 'INSERT INTO ' || r.table_name || ' (' || tmp_cols || ') ' ||
     64                 'SELECT ' || tmp_cols ||
     65                 ' FROM XMLTable(''/CustomerOrder/Data/descendant::' || r.table_name || '''' ||
     66                 ' PASSING :1 ' ||
     67                 'COLUMNS ' || tmp_paths ||
     68                 ')';
     69
     70      dbms_output.put_line(tmp_qry);
     71
     72    END LOOP;
     73
     74  END;
     75  /
    
    INSERT INTO CUS_ORD_HEAD (CustomerOrderNumber, Customer) SELECT CustomerOrderNumber, Customer FROM XMLTable('/CustomerOrder/Data/descendant::CUS_ORD_HEAD' PASSING :1 COLUMNS CustomerOrderNumber varchar2(35) path '@CustomerOrderNumber', Customer varchar2(35) path '@Customer')
    INSERT INTO CUS_ORD_LINE (CustomerOrderNumber, OrderedQuantity, ProductNumber, CustomerOrderLinePosition) SELECT CustomerOrderNumber, OrderedQuantity, ProductNumber, CustomerOrderLinePosition FROM XMLTable('/CustomerOrder/Data/descendant::CUS_ORD_LINE' PASSING :1 COLUMNS CustomerOrderNumber varchar2(35) path '@CustomerOrderNumber', OrderedQuantity varchar2(35) path '@OrderedQuantity', ProductNumber varchar2(35) path '@ProductNumber', CustomerOrderLinePosition varchar2(35) path '@CustomerOrderLinePosition')
    INSERT INTO CUS_ORD_LINE_TEXT (CUSTOMERORDERNUMBER, Text, CustomerOrderLinePosition) SELECT CUSTOMERORDERNUMBER, Text, CustomerOrderLinePosition FROM XMLTable('/CustomerOrder/Data/descendant::CUS_ORD_LINE_TEXT' PASSING :1 COLUMNS CUSTOMERORDERNUMBER varchar2(35) path '@CUSTOMERORDERNUMBER', Text varchar2(35) path '@Text', CustomerOrderLinePosition varchar2(35) path '@CustomerOrderLinePosition')
    
    PL/SQL procedure successfully completed
     
    
  • syslogging to 2 host with different levels of severity?

    I have a PIX that sends the logs to a host with Cisco syslog installed. It is configured to send messages of level 3 (as required by the internal standards) of gravity.

    I have another host which collects the theses papers too, but I want some info - level 5 or 6.

    ? is it possible to config the PIX to send logs on 2 different hosts with different levels of severity?

    you configure the pix to send to 7 on a syslog server. configure you this server to send events to the level 3 to another server. I think that it should be possible

  • I'm looking for a simple list of available applications with different levels of creative cloud subscriptions?

    Boy, the Adobe web site is incredibly frustrating. It is very difficult to accomplish some very simple tasks. First of all, there should be an email address for contact. I shouldn't be forced to submit my question on a forum. It's cheap and lazy on the part of Adobe, especially when they charge a lot for their subscription applications.

    My biggest complaint is that I can't find a simple list of the applications available with the cloud creative in different subscription levels. When I search, it sends me to a video of slick 'overview' of the creative cloud which tells me zero in on specific applications available. It should be a simple list of available with creative cloud applications and a side-by-side comparison of the applications available with the different levels of subscription creative cloud. Why can't I find something like this on the web site of Adobe? I found a page that lists 15 adobe applications, but not a page that describes to me what apps come with what levels of creative cloud subscriptions.

    There are only 3 shots of cloud. Inclusions are the same for both commercial or student.

    All applications

    Desktop: desktop applications Adobe Creative Cloud | Adobe Creative Cloud

    Mobile applications: Adobe mobile, iPhone, iPad, Android apps | Adobe Creative Cloud

    Same info differently formatted: Adobe CC 2015 Direct Download Links: Creative Cloud 2015 Release | ProDesignTools

    Plan of photography: Photoshop + Lightroom

    Single App plans (applications available for the unique implementation plans are in the drop-down menu on the page of the plans of cloud)

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

  • In the levels layer, I have only the option of 'grey '.  When I create a fill layer, I can only see different levels of grey, not the color I chose.  How can I change this?

    In the levels layer, I have only the option of 'grey '.  When I create a fill layer, I can only see different levels of grey, not the color I chose.  How can I change this?

    Hi elizabethu,

    Greetings!

    Make sure that the image is not in gray mode.

    If it is to change it to RGB mode.

    Image-> Mode-> RGB

    And try again.

    Concerning

    Jitendra

  • How can I add a donation page with different levels to give for example $ 250, $150, $50, other

    How can I add a donation page with different levels to give for example $ 250, $150, $50, other.  I'm with Foxy cart... is it possible?

    Since the end of the Muse, you can add texts as the value of the donation with paypal button that would take users to the paypal for the payment site, with Foxy cart you can try the suggestion mentioned here:

    https://Forum.FoxyCart.com/discussion/4417/donation-page-radio-button/P1

    Thank you

    Sanjit

  • Measures at different levels of concentration

    I'm working on a cube. I have 6 dimensions and aggregations are supposed to do at different levels for me to get the correct results, but I'm unable to implement this. I I have a fact Table equipped with all measures, I need, including sales, quantity, amount Total savings, Total etc edits. The challenge is that these measures require complex calculations, so I have a level of data in the fact table, but I think that this is the origin of the problem. How can I build complex measures calculated in the Olap Cube using a sql statement. What are the functions I should use to do this.

    The challenge is that, I've separated the totals of the details and I don't know of a way to get consistent results with 2 levels of granularity of diff

    Thank you

    You must come with some examples to get a better answer.

    A few general points.

    *(#1). * for calculated measures, look at the Expression of OLAP syntax which resembles the features of relational analytical ROLAP.
    http://docs.Oracle.com/CD/E11882_01/OLAP.112/e23381/TOC.htm

    Use this syntax to create your measurements calculated (in minutes).

    In the "Calculation Type", select "Syntax of Expression of OLAP", and in the Expression box, type the logic.

    .
    *(#2). * If for any reason, an Expression OLAP syntax cannot be used because of some complexity, then you can use old fashioned OLAP dml syntax.
    http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17122/dml_basics.htm
    http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17122/dml_functions_1.htm#BGEGGBAE

    In the "Calculation Type", select "OLAP DML Expression" and in the OLAP DML type logic.

    .
    *(#3). * You can load the relational data into different levels of OLAP cube.
    Facts on multiple levels of loading

    .
    *(#4). * You can start the aggregation of the cube to a specific level in a dimension. It is very important, because the aggregation of the cube always go leaf-level and currently there is no way in AWM to set a higher standard as the starting point for the aggregation.
    For example, let's say your time dimension a YEAR-> QTR-> MONTH-> DAY levels, and you want to leave aggregation of quarter level and not at the level of the DAY.

    You can do DBMS_CUBE. Order IMPORT_XML and provide the following syntax, so that the cube is always aggregated level quarter.

    SUM WITH 'TIME' OF MEMBERS WHERE "TIME". LEVEL_NAME = "QUARTER."

    .
    .
    Regardless of the level of complexity are your calculations, it can be done by means of (#1) ou (2).
    Best is to use "syntax of Expression of OLAP.

    I mentioned (#3) and (4) just to make you aware of other available functions.

    .

  • Supervisor, who belongs to a group of different companies

    Hello

    We have several business groups created. Can we have a supervisor who belongs to a group of employees and different companies under him are part of a group of different companies?

    Thank you
    KK

    Yes, you can.

    See the note below-
    How does the cross profile Option Business Group influence the Application [ID 224822.1]

    Please select the value for the profile HR: Cross Business Group accordingly.

    See you soon,.
    Vignesh

  • How can I erase different levels of opacity of a color?

    I was thumbnail sketches using the Brush tool, in a single color (black) with different levels of opacity for the shading. I had milked on a single layer and on the other, but accidentally shaded shading on the line drawing and can no longer cancel/step back. I need to delete/remove shading and keep the intact black line drawing, but the PS does not seem be able to differentiate between the different levels of opacity and treats as a single colour when I try to use the erase special as Magic Eraser no matter how high I set the tolerance or selection tools, etc.. It's a simple sketch and I could draw it again, but I'm very rusty with PS and I would like to know if there is a solution in case I met this new. Prescheduled A below. Suggestions?

    Opacity.JPG

    Part three fix

    Levels adjustment layer and drag the slider of Pentecost slowly to the left.  This will gradually move the nuances that darkens the white full.  Move the black slider until it is in the fleshy part of the shadows (black) and adjust the slider to the Middle for the best effect.  You will fix with this step.  Just do a lot better.

    NOTE: you must change the blend mode of layer of brightness levels.

    I'd be inclined to remove all the colors of the image as well.  (Hue saturation, B & W adjustment layer, but do not change gray scale)

    Now select the layer levels and do a layer of copy merged top Ctrl Alt Shift (Shift Cmd Opt e) e

    Now select the brush, and then change the brush in overlay blending mode (in the options bar)

    Carefully paint on the black lines with black to strengthen and shading with white to remove it.  Need you a bit of practice.

    It took me about two minutes.  Another ten and you'll have it right, (assuming that the original is a higher resolution)

  • Export data to different levels

    Hello

    I am trying to automate pulling a report out of essbase. The Calc of data export creates a Level0 txt file that is difficult to validate against one online report from oracle. I'm pretty much wanting to pull all top-level except accounts whiich dimension must be at level 0, I can compare the balance in Oracle Hyperion. This must be an automated solution and I will use VBScript to run Oracle sql queries. Is it possible to pull a report at different levels in essbase maxl or any other form? I'm really not familiar with Hyperion reports. Is it possible to run a report of Hyperion via a script and do produce a txt file?

    I really appreciate any information on this and hope someone can help.

    Out the data is quite simple using a report script. In a script to report unspecified dimensions by default to the top of the dimension, so if that's really all you need (i.e. you have no dimension that do not consolidate the Summit or otherwise should be noted) something as minimalist as...

    {NOINDENTGEN}
    {SUPPAGEHEADING}

    !
    .. could actually be sufficient as the report script. Script editor for the report of the Administration Console allows to develop and test the script before trying to automate. Much better control the missing / zero suppression and substition, formatting, etc. is possible. The Builder of the technical documentation section is here: http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?rw_commands_chap.html

    To integrate the report script in automation, you can watch the execution of the script of report using the MaxL "data export" command I'm assuming you can afford in your scenario. "export data" allow us you to specify a file for the output .txt. For more information, the MaxL in the technical reference section is here: http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_chap.html.

  • Use of BPMN diagrams on different levels (11 GR 1 material Business process architect)

    I have a question concerning the representation of the different levels of BPA diagrams... I have been using the suite of diagram types from highest to lowest:
    -Structuring the model,
    -Value-added chain diagram,
    -(BPMN) business process diagram,
    -(BPMN) business process diagram,
    -Diagram of distribution of function (it is generated automatically).

    These levels are related to the use of the function of "Assignment" on individual items and allows the user to drill-down to the last level (except between the model structure and the chain of value-added chart - I can't find allows to link the two).
    As you may have noticed in the list of the diagrams above, I used two BPMN diagrams to represent two successive levels. Is it OK? The first of these two types of diagrams, I represented activities with elements of 'Function' (I also used Start, end, intermediate events and elements of the rule).
    I've linked each element of the 'function' for a more detailed diagram of BPMN to the next level. We understand the "Human Stain", items "Automated activity" (and also the start, middle, end, items of rule and other events) and is intended eventually to be transformed into BPEL.

    That's how I understood the "Oracle_BPA_Suite_QuickStart_Sample_Guide.pdf" and the examples included in architect 11 GR 1 material. What is the right way to do it? Does anyone have a better suggestion on how to represent the entire chain of the diagrams?
    How "Assignees" can be represented in the diagram, BPMN, I used elements of the 'function '? Is it possible to bind items of "Structuring model" to the value-added chain diagrams?

    I hope that this describes my dilemma quite well and don't scare you right away... Thank you all for your comments in advance.

    It is possible to assign structural elements to any Type of model to BPA. If you are not able to do this mission, he is not active in the filter of your method. You can connect with the filter of all of a method to verify this. You can also change the filter you use to include this capability.

    The hierarchy you are using is fine and is commonly used. Some people use the model of the EPC, which is particular to BPA and not a standard, to the lower level of the value chain, but many use BPMN, as you have. If your intention is to use the first BPMN as a pure business process model then you can consider creating a separate Type of custom model, based on the BPMN model, with a small set of eligible items. This is also done through customization of the filter. If you do this, you can also rename the model types in the filter if you want to have different names at each level.

    Caution, change a filter method can have impacts and should generally be done by someone with a knowledge of the meta-model. If you chosse to change a filter supplied with the tool, copy it and rename it, and then update the copy. Always keep the original filter supplied with the tool. If you are doing something so simple that the addition of the ability to use the allocation between the structural elements and models of value added chains, it would not be a big deal. If you get by reusing object and model types that has more impact on the functionality of the tool.

  • split the data belonging to the same group at two different levels

    Hello

    I have data in the same group I want to split into two levels.

    For example: If the XML is:

    < data >
    Taxable < Type > < / type >
    < value1 > one < / value1 >
    b < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    e < value1 > < / 1 >
    f < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    g < value1 > < / 1 >
    h < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    u < value1 > < / 1 >
    v < value2 > < / value2 >
    < / data >
    < data >
    Taxable < Type > < / type >
    o < value1 > < / 1 >
    < value2 > x < / value2 >
    < / data >


    The output using the RTF model should be:

    Taxable
    a and b
    e f
    g h

    Not taxable
    u v
    l x

    I can't change the query to add a group.

    Kindly, if anyone can help

    Published by: user10606061 on 25/06/2012 01:05


    delete a table with 2 columns and two rows. In the second column of row 1

    in column 2

    table below

    PS: your must be within a root element

  • Measures at different levels

    I have a fact table that contains the sales order lines. Also in the present is made is of the reserved shares which will be used to fill the sales order lines. Each order line can be filled with several stock locations. Gluttony, I have a fact table that looks something like this for a single command line:

    Order line number, amount of command-line, batch Stock number, quantity of booking

    ORD_LINE1, 35, LOT1, 10
    ORD_LINE1, 35, BATCH2, 17
    ORD_LINE1, 35, LOT3, 8

    My problem is that the measure of the amount of command line, when totaled in OBIEE gives me 105 (35 * 3) - when it should be 35.

    How can I display a total of 35 for amount of command line, although they show 35 for amount of booking?

    My underlying SQL query is very sensitive and so would stay away from the analytical functions. Is there something I can do with hierarchies?

    It comes to OBIEE 10 g

    Edited by: 934462 may 6, 2013 03:09

    Edited by: 934462 may 6, 2013 03:15

    It seems that your amount depends on only the number of command line while 'reserved' measure depends on many and line number order. So, you have combined measures of two different grains in the same table. Follow these steps:

    1 fix the problem at the level of the database of this division in two separate facts and model them as two logical facts connected via a number of command line only one dimension. It's cleaner, and it should run faster.
    OR
    2. you can copy the amount ordered as a new logical column but not prescribe any rules of aggregation. Align on the presentation layer, and use it as a common command line attribute in your report. Given that this column would be part of the group by, he can sacrifice some performance.
    OR
    3 the extent of the quantity ordered, go to the tab of aggregation, see "Based on Dimensions", in the new list, choose MAX() as the rule of aggregation for dimension of command lines (create a logical and associated table dummy command line attribute hierarchy if you don't have them) and SUM() as rule of aggregation for the size of the location of stock. It's a little experimental, I doubt how useful it would be in your scenario.

  • Update of different levels in cluster 3.5?

    Is is OK to have different ESX 3.5 update levels on different hosts in a HA/DRS cluster?  For example, we have a group that includes two ESX 3.5 servers, and we want to add a server ESX 3.5 U5.  Thank you.   -Glenn.

    Hi Glenn,.

    Welcome to the VMware communities.

    Although I would prefer to have all members of the cluster is running the same ESX version there is no rule that says you must have all the ESX host running the same version. You can even have a cluster running Host ESX 3.5 and ESX 4 at the same time. For this last option, you need a vSphere vCenter Server.

    Best regards, Robert

  • can I use same address pool of policies and groups of different remote access VPN tunnel

    Hi all

    I want to create an access remote VPN in ASA different profile. IHAVE a RA vpn already configured to achieve a purpose.

    can I use the same ip address pool used to that existing for the new tunnel-group (to avoid adding rotuing on internal devices for new pool) and it is a temporary condition)

    Thanks in advance

    Shnail

    Yes, the local filtering on the SAA will be perfectly fine. My point of view with different pools is based on customer requests where later after some time, the requests came to distinguish the VPN-users group on servers and so on. For another client, I had to implement filtering on an internal firewall where the VPN gateway (which was out of our control) uses a de.100 pool-. 200. And it's a PITA, if the pools are not aligned on subnets.

    But anyway, your solution will work.

    Sent by Cisco Support technique iPad App

Maybe you are looking for

  • New version of Firefox

    I downloaded the new Firefox and now whenever I pass all that he disappeared?

  • Need help to open Apple Id and password

    Hello, I got an iphone 5 s of my friend but I couldn't open the problem ID & password. It bought his brother in law of the United States. Then, he made are not used. now, he also forgot to real owner ID & password. can you help us get the real owner

  • How can I link a photo from my iPhone? Is there an app for that?

    How can I link a photo from my iPhone? Is there an app for that?

  • Z510 turns off suddenly

    HelloA year ago, I bought a computer laptop lenovo z510. Today, I have a problem that concerns me. After using 3 or 4 hours on my laptop battery suddenly off without notice or low battery alarm, when the pressure gauge indicates remaining 70% (for ex

  • Message from DynDNS WRT120N abuse

    Hi there, I'm having some difficulties with my Linksys WRT120N. I have a dyndns account and as configured in the DDNS section. I didn't install local DynDNS client, only the Linksys router should update the dynamic ip address. The first day, everythi