grouping with the parent hierarchy

Hi all

I have data like this

existing layout:

trade oil
----------------
cust_A 100
cust_A 50
cust_B 20


presentation expected:

trade oil
-----------------
cust_A 150
cust_B 20

in the xml hierarchy, the invoice_type (trade oil) is one level below customer.
How can I solve this problem.
any advice will be highly appreciated.


rgrds,
TSE

I sent you the modified model. Take a peek inside.

Thank you
Bipuser

Tags: Business Intelligence

Similar Questions

  • Responsive HTML5 with mergedprojects, creates a hyperlink to a file in the project html parent to a child html file and it does not work! The child has with the parent TOC, but need to tie. Help, please!

    Hi group!

    I have a brilliant parent project that serves as a springboard for other projects. Users click a component of software they want and are redirected to a page with a list of all the documentation available for this component. Click on the name of a document and access - a lot of PDF files. BUT I also wish they were able to tie the online help for the component. After having read up on the link through / between projects, I knew that I needed to create a parent project (for the page intro and links brilliant) and projects for children (for software components).

    THEN

    I created a parent sensitive HTML5 project and the projects of two children. I compiled the parent to create mergedprojects files, and then open the projects children and collected to the appropriate mergedprojects folder. I then created a hyperlink to the file list html documentation in the project parent towards the child file software component html (output folder and start page [which is the same as the default theme]) and the link does not work! The child and its table of contents appears in the parent TOC so topics are here, but I can't link to them. If necessary, I can send screenshots.

    Where I am dorking this place?

    Thanks in advance for your time and help!

    Scottie 'needs help' gear

    What is your relationship like? And how did you create the link?

    A typical reactive merged help is structured as follows:

    index.htm (Master home page)

    mergedProjects

    childName

    index.htm (starting page for child)

    A child from the index.htm page link would look like this:... /... index.htm

    Kind regards

    Willam

  • How to display dynamic menu with the parent and the child using c# and sql server

    Hello

    Can you tell me

    What is menu given Dynamics example

    How can u use my dynamic menu added project in c#

    This menu is display with only the data from sql database.

    Menu with the help of a parent node and a child.

    check the element all in sql server and adding one by a dynamic menu.

    Hello

    Thank you for writing to Microsoft Communities.

    I recommend you post your query in the following forum.

    http://social.msdn.Microsoft.com/forums/en/category/SQLServer/

    Hope this information is useful.

  • Device grouping with the IP address of subnet

    Hello

    We are GBA for authentication GANYMEDE +.

    We have two network in the administrative field 2 with IP address 172.16.0.0/25 and 172.16.128.0/25.

    I want to configure the authentication policy so that the administrator of a domain will not be able to access other field devices.

    In the configuration of the peripheral ACS group, there is an option to include the address of IP network with wild-card mask.

    But how do we separate/mention one IP network in the form of 172.16.0.0/25 and 172.16.128.0/25.

    Kind regards

    Salome.

    You will need to set up two groups of devices. I recommend you set up a simple NAS in each group using the multi-NAS addressing.

    The first NAS system should have the following IP address: 172.16.0.1 - 127

    The second NAS server should have the following IP: 172.16.0.129 - 255

    Once these are configured, you can use Network Access Restrictions to limit access to different users or groups.

    Jeff

  • Create Comma seperated list of groups with the same number

    Hi all

    I have a table that has 2 columns and the data are as below

    API_Number nom_du_groupe

    1234 A group

    3241, Group A

    Group B 1234

    4567, Group C

    7896 Group D

    3241, Group E

    I wanted to find the API numbers repeating in different groups. In the output, I want

    API_Number nom_du_groupe

    1234 Group A, Group B

    3241, Group A, Group E

    4567, Group C

    7896 Group D

    Please help me with the query. I'm new to PL/SQL. Appreciate your help,

    Thank you

    It is a solution with hierarchical query (CONNECT BY):

    T (API_Number, Group_Name) AS

    (SELECT 1234, "Group A" dual UNION ALL)

    SELECT 3241, "Group A" double UNION ALL

    SELECT 1234, 'Group B' FROM dual UNION ALL

    SELECT 4567, "Group C" dual UNION ALL

    SELECT 7896, "group of FROM dual UNION ALL

    SELECT 3241, 'Group E' OF THE double)

    SELECT api_number, ltrim (sp, ',') gn

    Of

    (SELECT API_Number, sp SYS_CONNECT_BY_PATH (groupname, ','),

    CONNECT_BY_ISLEAF he, row_number() OVER (PARTITION BY GroupName ORDER BY level DESC) rn

    T

    CONNECT NOCYCLE PRIOR API_Number = API_Number AND GroupName PRIOR<>

    WHERE it = 1

    AND rn = 1

    ORDER BY API_Number;

    API_NUMBER GN

    1234 Group A, Group B

    3241, Group A, Group E

    4567, Group C

    7896 Group D

  • Problem with the Navigator hierarchy

    Hello

    I installed Navigator hierarchy according to the description in the installation guide, which is

    1. install the Denorm hierarchy (Scripts apply then pitch the series up)

    2. installation of the navigation hierarchy (Scripts apply then pitch the series up)

    and all the results of running the script has been directed by the specified page.

    After installation, I went to tool > > Navigator hierarchy and nothing is displayed, the icon I got is 'Globe' instead of the one mentioned in the document, is there something I'm missing?

    Thank you

    I solved the problem and get the browser hierarchy as expected with all the expected results.

    I did as a result of things to solve the problem:

    1. redeploy the files from v6.1.1\Web to v6.1.0\web.

    2 uninstall denorm and navigator.

    3. suppression of the story earlier version generated scripts.

    4. apply the hierarchy Denorm scripts, Service restarts and IISRest.

    5. installation Denorm Setup, restart the Service.

    6. application of browser scripts. Restart the service.

    7 installation installation and restart the Service.

  • SQL to align the values of the child with the parent columns

    Hello world

    I'm stumped on how to develop a sql query that generates a report which my child values are aligned with my columns parent based on corresponding years.  Here is an example...

    create table test_yr (yr_id number primary key, yr_nb number);
    insert into test_yr values (1,2013);
    insert into test_yr values (2,2014);
    insert into test_yr values (3,2015);
    
    create table test_parent (parent_id number primary key, parent_yr_id_begin number, parent_title varchar2(100));
    alter table test_parent add foreign key (parent_yr_id_begin) refererences test_yr (yr_id);
    insert into test_parent values (1,1,'This rec starts in 2013');
    
    create table test_child (
         child_id number primary key,
         child_parent_id number,
         child_yr_id_begin number,
         child_title varchar2(100),
         child_yr1_val number, child_yr2_val number, child_yr3_val number, child_yr4_val number, child_yr5_val number
    );
    alter table test_child add foreign key (child_parent_id) references test_parent (parent_id);
    alter table test_child add foreign key (child_yr_id_begin) references test_yr (yr_id);
    insert into test_child values (1,1,3,'This rec starts in 2015',10,20,30,40,50);
    insert into test_child values (2,1,3,'This rec starts in 2015',15,25,35,45,55);
    
    
    

    The child can begin to another to start the year as the parent, which makes different yr1 for parent and yr1 for child.  So, for this example, the child 1 year (2015) = year 3 of the parent.

    I can get the values strictly of the child using the following...

    select child_yr1_val, child_yr2_val, child_yr3_val, child_yr4_val, child_yr5_val
    from test_child
    where child_parent_id = 1;
    
    

    However, I need the report to be based on the first five years of the parent.  And since the child does not start until 2015, two years should be zero.  This is the expected result:

    Yr1 | YR2 | YR3 | yr4 | Yr5

    ---------------------------

    0   | 0   | 10. 20. 30

    0   | 0   | 15. 25. 35

    I am doing it using simple sql without having to use pl/SQL to derive a dynamic query.  But I need to somehow to the height and line up the years... like in this example, yr1 (child) = yr3 (parent), (child) yr2 = yr4 (parent), etc..  I hope that some joints and case statements will do the trick, but I don't know how to use them to get the result that I need.  Can anyone help?  Oracle 11 g 2.

    Thank you

    Mark

    Hi, Mark,.

    Here's one way:

    WITH unpivoted_child AS

    (

    SELECT child_id, child_parent_id

    child_yr_id_begin + child_yr - 1 AS column_num

    val

    OF test_child

    UNPIVOT (val

    FOR child_yr (child_yr1_val AS 1

    child_yr2_val AS 2

    child_yr3_val AS 3

    child_yr4_val AS 4

    child_yr5_val AS 5

    )

    )

    WHERE child_parent_id = 1

    )

    SELECT NVL (y1, 0) AS yr1

    , NVL (y2, 0) AS yr2

    , NVL (y3, 0) AS an3

    , NVL (y4, 0) AS yr4

    , NVL (y5, 0) AS yr5

    Of unpivoted_child

    PIVOT (SUM (val)

    FOR column_num IN (1 AS y1

    2 AS y2

    3 AS y3

    4 AS y4

    5 AS y5

    )

    )

    ORDER BY child_parent_id

    child_id

    ;

    Have 5 columns in the test_child that all say the same thing, obly for different years, isn't a very good design table.  It wouyld be better to have a single table for all the attriburtes that apply to the child and another table for each combination of year, with a single amount on each line.  Because you don't have that, the unpivoted_child of the subquery, it essentially creates on the fly.

  • Get members of the group with the Java API in LiveCycle

    I work with the Java API in LiveCycle (LiveCycle 8.2) and I am looking


    an example of how read the members of a group.

    I am able to get a group (Type GroupImpl) using the PrincipalSearchFilter.


    But how do I get the members of this group. I checked the
    DirectoryManagerServiceClient and classes of different search filters
    without success?

    As a solution, I can retrieve all users of my application area and
    check their membership to see if they are in the group concerned. But this
    is a dirty hack, I really don't want to use.

    Any ideas?

    Hello!

    I know you mentioned that you were watching in this without success, but it should work really.

    First make a GroupMemebershipSearchFilter, defining the groupoid be the ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter that will return a list of, as follows:

    DirectoryManager DirectoryManagerServiceClient = new DirectoryManagerServiceClient (serviceConnection.getFactory ());

    List userList = new ArrayList ();

    Try
    {
    userList = directoryManager.findGroupMembers (searchFilter);
    }
    catch (System.Exception e)
    {

    Animals mistake
    }

    return userList;

  • Add the group with the ES2 Java API

    Hi all

    There is an example that shows how to create a new group using the ES2 API here:

    http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/help/index.htm

    However, if you run the code to create a group, the code works fine and a new OID is returned. But if you go in the /AdminUI ES2 and the list of all groups, you don't see the 'AdobeGroup' group here! Also if you are looking to the /AdminUI for the group 'AdobeGroup' it is not found.

    If the code does not work or the Admin UI does not show the newly created group.

    What's not here?

    Thank you.
    Paul.

    After the code snippet should work for you

    public String createSampleGroup() throws UMException{        String groupOid = checkGroupExist(groupName);
    
            if(groupOid != null){            return groupOid;        }        String groupCanonicalName = groupName;
    
            GroupImpl group = new GroupImpl();        group.setCanonicalName(groupCanonicalName);        group.setDomainName(domainName);        group.setGroupType(Group.GROUPTYPE_PRINCIPALS);        group.setLocal(true);        group.setPrincipalType(Principal.PRINCIPALTYPE_GROUP);
    
            groupOid = directoryManager.createLocalGroup(group);        log("Sample group created with name %s",groupName);
    
            return groupOid;    }
    
        /**     * Search the groupwith the given name in the sample domain      */    private String checkGroupExist(String groupName) throws UMException{        PrincipalSearchFilter psf = new PrincipalSearchFilter();        psf.setCommonName(groupName);        psf.setSpecificDomainName(domainName);
    
            //By default the filter causes like search unless you are using the absolute version        //Setting this ensures that search is exact        psf.setMatchExactCriteria(true);
    
            //By default search returns obsolete users also. Set this to ensure that        //only active users are returned        psf.setRetrieveOnlyActive(); 
    
            //PrincipalReference are lightweight user objects and searching for them would be more performant        //compared to the User search. If you do not require any other user attribute then prefer this        //mode of search        List result = directoryManager.findPrincipalReferences(psf);        if(result.isEmpty()){            log("Sample group with name [%s] does not exist",groupName);            return null;        }else{            String oid = result.get(0).getOid();             log("Sample group with name [%s] already exist",groupName);            return oid;        }    }
    
  • Problems with the parental control on the administrator account.

    Never use us the 'administrator' account as I have not configured any other account (it was unnecessary since there are no children in the House).  Whenever I try to download a game, I have problems.  It will finish the download, but as soon as I try to start the game, it gives me an error message saying 'parental controls have prevented this application to run.  I don't know why it gives this error and won't let me in the game, since I'm on the administrator account and it wont let me make changes to parental controls for the administrator account.  Anyone know what is the problem and how can I solve this problem?  Thank you!!!

    Try to create another administrator account, and then connect to that account and try to change or disable the parental control for the administrator account.  I don't know if it will work, but it's worth a try.

    I hope this helps.  If this isn't the case, after return and we will try something else.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • new call with the parent to be frozen window blur

    Hello

    Please suggest me how we will call a new window then the parent window or get to jelly or blur... and the border of child windows should not be visible, and there look like like a popup.


    Thank you and best regards,
    Muthu...

    What version of jdev do you use?
    A window may be what you are looking for http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf

    Timo

  • Problems with the Parent and child Pages...

    I created a parent page with several pages of the child, but when I transferred to my host FTP pages do not come to the top in the hierarchy in the URL bar. I want it to be "www.website.com/parent/child.html" but they come as 'www.website.com/child.html '.

    How can I change this? I thought that by creating a page parent to the child which would automatically when loading pages. Help, please!

    Thank you!!!

    Muse currently publishes all the pages in the root directory of the Web server. It does not create a folder structure based on the structure of the site defined in Plan view. The structure of the site defined in the Plan view is used by the Widget Menu to generate Menus correspondents and submenu entries.

    Hope that specified in the query.

    See you soon,.

    Vikas

  • Choose a group with the special value

    I have table below. Each client has a few accounts with different interest rates.

    customer

    account

    interestRate

    Balance

    one

    1

    28

    100

    one

    2

    24

    200

    one

    3

    20

    50

    b

    4

    19

    60

    b

    5

    20

    90

    c

    6

    24

    150

    d

    7

    19

    20

    d

    8

    24

    70

    d

    9

    24

    10

    d

    10

    15

    30

    I want to select customers with interestRate = 24 and the balance of their accounts, as it the sum

    one

    100 + 200 + 50

    c

    150

    d

    20 + 70 + 10 + 30

    I can do this with nested query, but I'm looking to recover these data with a query with minimum cost

    The global version

    Thanks for the borrowed data

    with cust as

    (

    Select 'a' customer, '1' account, '28' rate, 100' ball of all the double union

    Select 'a' customer, '2' account, '24' rate, 200' dance of all the double union

    Select 'a' customer, '3' account, '20' rate, 50' dance of all the double union

    customer select 'b', '4' account '19', 60' dance of all the double union

    customer select 'b', '5' account '20', 90' dance of all the double union

    Select customer 'c', "6", rate '24', '150' ball of all the double union

    Select ' client '7' account, rate ' 19', 20' dance of all the double union

    Select ' client '8' account, rate ' 24', 70' dance of all the double union

    Select ' client '9' account, rate ' 24', 10' ball of all the double union

    Select ' client '10' account, rate ' 15', 30' double ball

    )

    Select customer, sum (bal) sum_bal

    the cust

    Customer group

    having count (case rates when '24' then 1 end) > 0

    order by customer

    CUSTOMER SUM_BAL
    one 350
    c 150
    d 130

    Concerning

    Etbin

  • How to write a group with 2 parents in xml file?

    Hi all

    In my xml file, I use the following queries.

    Q1:
    Select q xxx;

    Q2:
    Select w to yyy;

    Q3:
    Select: q-: double w;

    Q3 is to get values of Q1 and Q2 and calculate some values.
    While writing a group is possible to write a group such as both parents?
    If so, what is the syntax for that?

    have you tried that?









  • I set up the new user on my MacBook Pro with the parental control, and I want to allow access to Word, Excel, PowerPoint for Mac.  I have those checked in the dialog box list, but they may not appear in its applications. Am I missing something?

    I set up a 'user' for my son and use parental controls.  I want to him to have access to Word for Mac, and it appears in the list of applications I can check to allow use for.  However, when we opened a session under his username, these applications do not seem to be anywhere.  When you configure new users, applications such as Word for Mac or the available Pages on users?  I can't find any information to help in this regard.  I don't know if I'm missing something under user put up, or parental controls, or both.  Any help would be greatly appreciated!

    These requests should be made available, provided you installed then in the folder/applications, not in a private folder ~/Applications for a specific user.

Maybe you are looking for

  • 29 FF havoc... How to fix or return?

    Once more, an update to FF just drives me crazy and wasting my time. So, I'm updating to FF 29.1 (when I never learn?) My favorite - theme is no longer compatible.Forecast Fox - is no longer compatible. I see no 'refresh' or recharge them touch. Wher

  • Sub - VI preallouee clone seems to be intermittent who no longer respond. What's wrong?

    Instead of looking long and hard for what would be a stylish vi I made my own. I don't understand why it does not periodically: I have a situation where I want to delay the change of an integer value in a specific time. It is in a deterministic loop

  • The most effective way to log data and read simultaneously (DAQmx, PDM) high data rates

    Hello  I want to acquire the data of several Modules cDAQ using several chassis tohigh data rates (100 k samples per second if possible). Let's say the measurement time is 10 minutes and we got a large number of channels (40 for example). The measure

  • Problems after security update for Windows 7

    Recently, my security software - microsoft Windows 7 security, conducted a download and install.  After the installation, I'm not able to use the features of Windows 7.  My GFxUI does not work, my media center does not work, the computer is a mess. 

  • Application set permission problem

    Hai I have some access denied problems while using my phone app Blackberry "BOLD" (ControlledAccessException survey). But the curve phones not show this problem. (Only "BOLD" blakberry real phones have this problem. Simulator "BOLD" has not seen any