How to group multiple columns at the same level and sum one

With the following XML data, I want to simulate the following query in the model. Exactly how can I accomplish this?

Thank you
Kurzweil4

< pre >
< G_MAIN >
< LINE_CREATION_DATE > 17 December 09 < / LINE_CREATION_DATE >
XYZ < ITEM > < / ITEM >
HHOENT < PLANNER > < / PLANNER >
< ITEM_TOT_PEND_QTY > 7000 < / ITEM_TOT_PEND_QTY >
COMPANY ABC < client_name > < / client_name >
< CATEGORY_SEGMENT1 > UU98 < / CATEGORY_SEGMENT1 >
< OSTAND_QTY > 1000 < / OSTAND_QTY >
SHIP_001 < LOCATION > < / LOCATION >
JJK < SHIP_FROM_ORG > < / SHIP_FROM_ORG >
< ITEM_TOTAL_OSTAND_QTY > 38000 < / ITEM_TOTAL_OSTAND_QTY >
< / G_MAIN >
< G_MAIN >
< LINE_CREATION_DATE > 17 December 09 < / LINE_CREATION_DATE >
XYZ < ITEM > < / ITEM >
HHOENT < PLANNER > < / PLANNER >
< ITEM_TOT_PEND_QTY > 7000 < / ITEM_TOT_PEND_QTY >
COMPANY ABC < client_name > < / client_name >
< CATEGORY_SEGMENT1 > UU98 < / CATEGORY_SEGMENT1 >
< OSTAND_QTY > 1000 < / OSTAND_QTY >
SHIP_001 < LOCATION > < / LOCATION >
JJK < SHIP_FROM_ORG > < / SHIP_FROM_ORG >
< ITEM_TOTAL_OSTAND_QTY > 38000 < / ITEM_TOTAL_OSTAND_QTY >
< / G_MAIN >
< / pre >

< pre >
SELECT
LINE_CREATION_DATE,
AGENDA,
PLANNER,
ITEM_TOT_PEND_QTY,
CLIENT_NAME,
CATEGORY_SEGMENT1,
LOCATION,
SHIP_FROM_ORG,
ITEM_TOTAL_OSTAND_QTY,
sum (OSTAND_QTY)
Of
table-name
Group
LINE_CREATION_DATE,
AGENDA,
PLANNER,
ITEM_TOT_PEND_QTY,
CLIENT_NAME,
CATEGORY_SEGMENT1,
LOCATION,
SHIP_FROM_ORG,
ITEM_TOTAL_OSTAND_QTY
< / pre >

http://winrichman.blogspot.com/search/label/grouping

Certainly, we can group any level that you want

for each group with data semi flattened

Count and sum based grouping (could be linked to the crosstab)
How to make a total in my model?
Where is my Total issue




It's a group on the Date of creation
or




It's a grouping on the POINT

or




It's a grouping on the POINT and PLANNER

Tags: Business Intelligence

Similar Questions

  • How to select multiple cells at the same time?

    Hello

    How to select multiple cells at the same time? What is the keyboard shortcut?

    Thank you to.

    Flo, a french guy.

    Hold down the CMD key when you select the cells.

  • How read datalog multiple files at the same time?

    Hello friends...

    can someone help me to show how read datalog multiple files at the same time?

    Here is the example of my case.

    I have 500 files in a folder. each file contains a waveform and its setting.

    and then I want to do a card spectral these files, because these files have been saved in the order.

    the point is to know how to read these 500 files at once? I made a program to read these files, but the program can read these files in one by one. So it is very uncomfortable to read 500 files one by one. can someone help me solve this problem? Thank you. I hope you can show me the program. Thank you again...

    Hi jojo,

    Well, in the range of functions daughter, you will find a function to list the contents of the folder. This allows to get the names of all the files datalog, and then use a loop FOR to read.

    No one is obliged to provide 500 names of files manually - that's why we use a programming language to let the computer do the stupid work

  • How to display multiple images at the same time in CS6?

    How to display multiple images at the same time in CS6?

    Hello

    If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.

  • How can I restart firefox with the same tabs and windows?

    How can I restart firefox with the same tabs and windows?

    It is not in the file menu or tools. I get nothing when searching for help. FF still knows how to do it, say to update extensions.

    I know that I can do by saving my session, coming out, reboot and restore the session but is there a single command to do this?

    Thank you. -David

    I have attached a screenshot showing how to select restore automatic session just above the setting of the Home Page where it says "When Firefox starts".

    With this set, you can restart Firefox manually out using the menu-

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    -and then restart Firefox.

    If you want a real reboot with a click of button, you can check something on the Add-ons site: https://addons.mozilla.org/firefox/

  • How to configure multiple clusters on the same machine.

    I'm trying to configure multiple clusters on the same set of machines. I put the name of the cluster and multiple cases IP addresses different for each cluster. However I am still in train and error stating:
    "This indicates that there are multiple clusters on this network, try to use network configurations that overlap.

    Isn't this possible? If it is possible, is it still possible that I need to tell the virtual machines that they belong to different groups?

    Thank you
    Jacob

    I put these lines in my script for starting a prod. For dev I REM out as below.

    REM set java_opts = % java_opts %-Dtangosol.coherence.clusteraddress=224.0.0.1
    REM set java_opts = % java_opts %-Dtangosol.coherence.clusterport=65432

    Andrew

  • How to open multiple files with the same extension in one program from the Explorer

    I frequently receive several JPG (or whatever extension) files to my clients.  On Windows XP, I could just highlight the files I want to open, and then click Open.  They would be so open to 1 program cascading.  This made it easy when comparing many images.  If I do the same thing in Windows 7, it opens the default program several times and puts 1 image of each open program.  It is Paint Shop Pro in my case.  Thus, instead of so-called images 5 open cascading in Paint Shop Pro... the computer open Paint Shop Pro 5 times with 1 image of each open version of the program.  I tried this search like crazy, but cannot find the right thread for an answer.  Most of the threads are on the opening of the different file types.  My question is only about the opening of multiple files with the same exact file inside 1 free program extension.

    Is this the same version of Paint Shop?

    One thing you might try is to open Paint Shop, then select and drag all the files in this window of the paint shop.  Various programs to manage this type of action differently from the DDE, but it might give you the expected results.

  • How to add multiple tabStops at the same time...

    Hello

    I know it's a bit basic, but I fight

    I am trying to create four tabStops in a paragraph style. That's what I have so far... but when it comes to tabStops [1], he died... I think that something is wrong with how I create the four tabStops, but I do not know what... Do you think what I am doing wrong?

    Thank you!
    Christopher

    try {}

    myParagraphStyle = myDocument.paragraphStyles.item ("Verse");

    myName = myParagraphStyle.name;

    }

    {} catch (e)

    myParagraphStyle = myDocument.paragraphStyles.add({name:"Verse"});)

    myParagraphStyle.tabStops.add ();

    myParagraphStyle.tabStops.add ();

    myParagraphStyle.tabStops.add ();

    myParagraphStyle.tabStops.add ();

    with (myParagraphStyle) {}

    appliedFont = "Lexicon No1 A tab";

    fontStyle = "Normal";

    pointSize = 8.75;

    head = 10;

    alignToBaseline = true;

    Justification = Justification.LEFT_JUSTIFIED;

    keepFirstLines = 2;

    tabStops [0] .alignment = TabStopAlignment.CENTER_ALIGN;

    .leader tabStops = [0] ";

    tabStops .position [0] = 5;

    crashes here

    tabStops [1] .alignment = TabStopAlignment.CENTER_ALIGN;

    .leader tabStops [1] = ";

    tabStops [1] .position = 10;

    tabStops [2] .alignment = TabStopAlignment.CENTER_ALIGN;

    .leader tabStops [2] = ";

    tabStops [2] .position = 15;

    tabStops [3] .alignment = TabStopAlignment.CENTER_ALIGN;

    .leader tabStops [3] = ";

    tabStops [3] .position = 20;

    }

    }

    It is possible using tabList. Here is a code that did this and sets all the properties at the same time. "with" does NOT define the properties at the same time and should always be avoided.

    var myParagraphStyle = app.documents[0].paragraphStyles.item("Verse");
    myParagraphStyle.properties = {
      tabList:[
        {
          position: 5,
          alignment: TabStopAlignment.CENTER_ALIGN,
          leader: ""
        },
        {
          position: 10,
          alignment: TabStopAlignment.CENTER_ALIGN,
          leader: ""
        },
        {
          position: 15,
          alignment: TabStopAlignment.CENTER_ALIGN,
          leader: ""
        }
      ],
      appliedFont: "Lexicon No1 A Tab",
      fontStyle: "Normal",
      pointSize: 8.75,
      leading: 10,
      alignToBaseline: true,
      justification: Justification.LEFT_JUSTIFIED,
      keepFirstLines: 2
    };
    
  • How to prevent multiple objects with the same key being stored?

    Hello
    I use of DPL and I want to know if we have any way of preventing multiple objects with the same primary key is stored in the database or not.

    Thank you

    Hello

    Primary keys are unique - there may be multiple objects with the same key. Did you look in the javadoc for the PrimaryIndex and methods put ()?

    -mark

  • Multiple copies of the same mail and "unresponsive".

    I have fought with Thunderbird for about a week now and have had no chance to solve my problems. Any help would be greatly appreciated! I tried all the suggestions on the FAQ page.

    Here are my symptoms:
    -Make multiple copies of the same email with the same time stamp.
    -Not pulling new e-mail messages.
    -Whenever I try to navigate upwards or downwards in the Inbox or open an email TB will does not.
    -J' got warnings from the following script:
    Script: resource://gre/modules/XPCOMUtils.jsm:323
    Script: chrome://messenger/content/mailWindow.js:179

    Here is what I tried:
    -J' completely removed and reinstalled TB (and recovered my profile).
    -J' have compressed files.
    -J' rebuilt the database world.
    -From TB in safe mode does not seem to make a big difference.

    Fortunately, I have access to webmail via my ISP and it works fine.

    Thank you!

    McAfee has released a faulty update, please contact them for support on changing the setting to something that actually works.

    I saw a poster here today who used their support chat and they 'fixed a few adjustment' and now all is good.

    Not good was not what I wanted to say

  • How to make all audio at the same level?

    I have a sequence of many clips in first pro, and I could swear I've heard of a way to make all audio on the same level or db. Is there a way to do this? I have a few clips in the timeline with different levels and should be old enough to go to manually balance their volume.

    There is a way to do what you want, but it must be used with caution.  If you open the Audio Mixer Panel, select mixer of track and the track that your clips are on.  Click on the arrow at the top left of the track work (you may need to do it twice) and and access the small white window that goes down.  (See using Adobe https://helpx.adobe.com/pdf/premiere_pro_reference.pdf page 365 if you have not done this before) In the right side of this window, right-click on one of the spikes back arrow and select Amplitude and Compression and dynamics.

    The word dynamic appears in the white window at the top of channel mixer.  Left click on the word dynamic and select Edit.  I pasted below the appropriate settings.

    If you are not familiar with Compressor/Limiter, use the parameter above.

    Now read your timeline and listen carefully while I look at the counters this setting should be good for normally recorded material, and I hope that you do have to do something more. If there is still following problems may be necessary. Schedule audio below (2) drag any clip that's too soft.  All that is too strong to do drag on the calendar below that (3). For the dynamic audio editing 2 repeat the process with the effect but change the makeup to 12.00dB.  For editing audio 3 change the makeup to 0dB setting.  It's not perfect, but it should give you a low-tech solution.   I hope this helps.

  • How to use multiple columns for the bookmarks instead of column 1

    Bookmarks always appear in a single column. As I have a lot you have to scroll to see all.

    How can I set bookmarks in several columns so that I can see them all at the same time.

    You can use the above. The Bookmark Manager works just like the
    folders on your computer. Create folders by using the sort and general name
    your list in these files. In addition, when you open the Manager, it
    a search box is at the top right.

  • How to support multiple users at the same time?

    Hi all

    I have a Labview program that controls a parser via GPIB connector. When the user uses the software, user B must wait is made. But in fact, the parser is not very busy, when the user uses the software.

    I want A, B, C and D of the user may use the software at the same time. just as we can open several Web sites at the same time.

    How can I program the software, so that software can be opened several times? Do you have any examples?

    Thank you very much.

    Steven

    Parallel SALVATION,

    you want to use the same material in different forums at the same time? What happens if the user uses a different device as user B setting?

    There could be problems to access the port of connection (GPIB card) at the same time too...

    It's the same usual problem, you'll have to any shared resource. Instead of calling the same software several times at the same time you should make your software up-to-date with multiple users...

  • [ADF, JDev 12.1.3] How to display multiple records on the same page... not in a table but they appear a form for each record

    Hallo,

    I need to create a page that displays the records of a VO, but I would not use a table.

    Instead, I would like to display a form for each record to be displayed.

    Forms must appear one above the other and each form should have 2 buttons: one to remove the file/form itself and one to add a new file/form.

    When you press the button Add a new empty form should be dynamically added to the page (so that the user can fill) and created related record.

    When REMOVE button is pressed the form (which contains the operated button) should be disappear and the record shuould be deleted.

    Creations and destruction must be applied only if the user clicks a button on CONFIRMATION / COMMIT.

    Maybe this http://digilander.libero.it/flattit82/OTN_FILES/MultiFormPage.png picture can help to understand what I want to do.

    You kindly help me?

    Thank you

    Federico

    Hi Federico

    I was saying that your page layout can be achieved using af: table

    See this image:

    This provision is af:table (I think same as yours), just add a column in the table and put all the fields in this column then correct layout allows to design as a provision on the form or group layouts

    I'm not saying it's the best approach, but you can try this

    Thank you

  • How to create multiple hierarchies from the same physical table

    Hi all

    I have a physical table to join with a fact table: there are 3 different hierarchies, which share the last 2 levels inside the dimension table. It's the logic diagram of hierarchies:

    Dimension services
    -Business
    -Sector
    -Type
    -Operator
    -Product
    Partner of dimension
    -Partner
    -Operator
    -Product
    Contractor of dimension
    -Contractor
    -Operator
    -Product

    All columns are in the same table physical source. I tried to create 3 table logic source from the same physical table, everyone with all the columns and create a hierarchy for each dimension table, but it gives me nQSError: 15011.

    Any suggestion? Maybe the physical table alias can help for the creation of tables of different sizes?

    Thanks in advance,
    Concerning

    Hello

    It is a basic rule that you cannot create multiple hierarchies in a single dimension table, so what you do is create three tables of alias and slip into MDB layer in 3 different sizes and on top these tables create 3 different dimension hierarchies.

    Check if useful/correct

    Thank you.

Maybe you are looking for