Rolling up multiple leaves on a dimension into a single measure

I'm sure this is a common problem but I cannot find any talk of it with my Google searching.
The problem I am having is when I need to a get a single measure, using an 'Average' aggregate, for multiple leaves in a dimension.
For example, say I have a geography dimension and I need a single score for the three countries GB, HK and US combined, I might do this (though it won't be good enough):
select avg(s.score) as score
from my_cube_view s
where s.geography in ('GB','HK','US')
It's not good enough because the avg() needs weighting, GB, HK and US not containing an equal number of facts each (their individual scores will already be averaged by the cube).
Is there a way for the cube to do this calculation for me? Or should I, when wanting to rollup scores this way, revert to manually averaging up the fact scores?
Hope that makes sense,
Dominic
Edited by: Dominic Watson on Sep 8, 2011 5:02 AM

You should be able to generate weighted averages. Check the Aggregation Operators section of the OLAP User's Guide to see the different hierarchical aggregation options for averages.

Similar Messages

  • How to archive multiple outlook 2007 mail folders into a single archive file?

    I just migrated a client from Eudora (yeah ... I know ;-) to Outlook 2007.
    He has previously set up a folder within Eudora for each year's worth of old mail going back a number of years.
    I'd like to archive the oldest 5 years or so of mail into a single archive, but the manual archiving function in Outlook appears to want to create a separate archive file for each mail folder. Is there a way to select multiple folders and place them in a
    single archive or must I create archives for each folder and then open them back up in Outlook and merge them?
    Sorry, I'm sure this has been answered before, but I can't find it....

    Thank you Diane!
    I applied the registy update and it the (MANUAL) archive action still picks up no files....
    But .......... I've just discovered the "other" Eudora import problem with which I'm sure quite familiar ...
    HTML formatted e-mails being "converted" to almost unintelligible plain-text format....  :-(
    This is a pretty big deal to me and worth paying up for a solution ... I found the Aid4Mail and Stellar MBOX to PST products recommended on your company's website.
    I think I will be buying one or the other of them .........
    Do you think one is superior to the other?
    The PST file on my new machine is now ~1.5Gb populated with all the folders from my old Eudora account and LOTS of hosed up HTML  --> plaintext mail
    I have the PST in operation for other functions (calendar / Todo / iPhone sync). so would like to Delete all the "old" Eudora folders leaving just   "IN" and OUT and a bit more then have
    either Aid4Mail or MBOX2PST import the Eudora mail correctly into my existing PST file but I'm not sure that's a reasonable expectation...
    In "additional" expectations ... maybe these programs would import with correct time-stamps and fix my archiving issue also  ;-)  ?
    Thanks for any input... you are without a doubt the smartest person on the planet when it comes to Outlook, I've been following your work for many years!
    Jim

  • How can I take text from a webpage that is in multiple rows and move it into a single row in Excel?

    I need help figuring out how to take data from internet pages and enter it into one single row in an excel, or numbers if that is the easier way to go.  I was also told access might be good to use.  Basically I am going to chamber of commerce page and wanting to extract the member listing and enter in a database in a single line.  The  data is in different numbers of lines as you will see below (info edited to take out personal info). So I want to take the  name of business, business owner, address, city, state, zip, and phone and put it into one line on a spreadsheet.  I want to do this many times over. I think there is a way to do it through apple script and automator, but I have not been successful after 2 weeks of trying and searching.  I have over 800 listings and I surely don't want to go through and do them one at a time.  Any suggestions?
    Data from website:
    Westrock Coffee
    Mr.
    Collins Industrial Place
    North Little Rock, AR 72113
    Phone:
    Send Email
    Member Since: 2011
    Sweet Creations by DJ
    Ms. J
    allace Bridge Road
    Perryville, AR 72126
    Phone:
    Fax:
    Send Email
    Member Since: 2013
    See Also Woman Owned and/or CEO
    Premium Refreshment Service
    Mr. E
    est Bethany Road
    North , AR 72117
    I want it to look like this
    Company name, owner name, address, city, state, zip, phone
    How can I get the extra data out of the way and remove the format so that it will go into excel?  Thanks for any help you can provide.  I am not to savvy with code, but I got a friend who is an IT guy that can help.  Thanks again

    So, basically, create 800 individual entries, each one containing everything from business name through the phone (not fax) number, add some commas and spaces to entries, and then put each entry on a separate line?
    1. Go to website page such as this one-- http://www.littlerockchamber.com/CWT/External/WCPages/WCDirectory/Directory.aspx ?ACTION=newmembers --which seems formatwise very close to what you're trying to scrape.
    2. Cmd-A to select all. Cmd-C to copy it to clipboard.
    3. Open freeware TextWrangler. Cmd-V to paste info from clipboard into a blank TW document.
    4. Remove lines from top and bottom so that only membership list remains.
    5. Process lines to remove everything from "Fax" line through "See Also" line. Only business name through phone number will remain in the file.
    --A. TW > Text > Process Lines containing . . .
    -----(check "Delete matched lines"; uncheck all others)
    -----Enter "Send Email" in the search box.
    -----Click Process.
    --B. Repeat 5A for other lines to be removed
    ------Member Since
    ------See Also
    ------Fax
    6. Insert markers to separate entries:
    TW: Search > Find . . .
    ------(check "Wrap around" and "Grep")
    ------in Find box: \r\r\r\r
    ------in replace box: \r***
    ------Click Replace All
    7. Remove remaining blank lines:
    TW: Search > Find . . .
    ------(check "Wrap around" and "Grep")
    ------in Find box: \r\r
    ------in replace box: \r
    ------Click Replace All
    8. Add comma and space at end of each line:
    TW: Search > Find . . .
    ------(check "Wrap around" and "Grep")
    ------in Find box: $
    ------in replace box: ,  (comma space)
    ------Click Replace All
    9. Remove all returns:
    TW: Search > Find . . .
    ------(check "Wrap around" and "Grep")
    ------in Find box: \r
    ------in replace box: (leave blank)
    ------Click Replace All
    10. Insert returns in place of markers:
    TW: Search > Find . . .
    ------(check "Wrap around" and "Grep")
    ------in Find box: \*\*\*,  (backslash asterisk backslash asterisk backslash asterisk comma space)
    ------in replace box: \r
    ------Click Replace All
    11. Remove trailing comma and blank on each line:
    TW: Search > Find . . .
    ------(check "Wrap around" and "Grep")
    ------in Find box: , $ (comma space dollar sign)
    ------in replace box: (leave blank)
    ------Click Replace All
    Import this text file into Excel or Numbers.

  • How do I extract multiple tracks from a CD into a single file in Audition CS6?

    I use Audition to edit my Pastor's messages. The message CD is made with five minute tracks. I want to extract the tracks from the CD into a single file for editing and altering the track lengths. I have done this before in Audition CS6, but I haven't been able to find instructions for it. I only found a note stating this is available in AuditionCC.

    I have discovered an answer to my problem. The way to bring multiple tracks into Audition CS6 from a CD is to use the FILE / OPEN APPEND / TO NEW command. This brings the separate tracks into a single file in Audition CD6. Thanks to everyone who commented.

  • Merging multiple FM 7.0 fies into a single file

    I'm using FrameMaker 7.0 on XP.
    Is there a quick, easy way to merge 3 or 4 docs (such as book chapters) into a single FM file without having to copy & paste manually?
    I need the flow of each added file to become part of flow A in the first file. I don't mind connecting flows if I can easily get all of the pieces into one file first.
    I'm not finding anything on this in the forums or in my various FM reference manuals.
    Thanks!

    I am curious what conversion process you are using and also what you intend the result to be. I ask because perhaps there is a better and even more automated way.
    Quark and other layout programs have different strengths than FrameMaker, and vice-versa. FrameMaker is, in part, built around the book paradigm, so comparisons are often not apples-to-apples.
    Cheers,
    Sean

  • Multiple Joins from one Dimension Table to single Fact table

    Hi all,
    I have a single fact table with attributes as such:
    Action_ID
    Action_Type
    Date_Started
    Date_Completed
    and a Time Dimension to connect to the fact table. Currently the 2 Date columns in my fact table are in the format of 20090101 (which is the same as my key in the time dimension), if it means anything. I've tried to create multiple joins but have been getting error messages. What is the easiest way to link the time dimension with the two date columns in my fact table? Thanks.

    hi..
    it seems to be, you need to use between operator to join time dimension with fact (i.e. Non-equi join)
    If it's then you should create complex join in physical layer by connecting dimension with your fact.
    select columns and operators in such a way that it resembles something like the below.
    timeDimension.timeKey BETWEEN FactTable.Date_Started AND FactTable.Date_Completed

  • Is it or has it ever been possible to select multiple PDF's and print into a single print stream using Reader

    We have Multiple users who claim they have been able to select multiple PDF's and select print. It then would send to a single stream and end up as one document. These are reader users.
    We have tested under reader 10.1.4 and 11.0.06 and haven't been able to make it work. Has this ever been possible?

    Thanks everyone. That's what I needed to know.

  • Convert multiple lines for same material into a single line in Sales Order

    Our company has a requirement, they want if there are multiple lines exist for the same material in sales order and purchase order then it should become like one single line.
    10    35712  5pcs
    20   100885  10 pcs
    30   35712   10pcs
    Now our requirement is that should  become a single line like this
    10  35712  15pcs.
    I will   Text Removed.
    Regards,
    Khawar
    Message was edited by: G Lakshmipathi
    Please dont add such text in your post

    Now our requirement is that should  become a single line like this
    Where?  Meanwhile, I hope, you would have searched in SCN / Google before posting as it is a basic question and needs to be locked.  If searched, specify clearly what efforts you took to find out solution to your requirement.
    G. Lakshmipathi

  • How to calculate the sum of multiple columns and enter it into a single col

    I have a table tab_contributions which has the following columns:
    Emp_code Current_month(format: yyyymm) Contribution_amt
    Sample entry:
    Emp_code Current_month Contribution_amt
    100 200910 100
    100 200911 100
    100 200912 100
    100 200912 100
    100 201001 100
    100 201002 100
    100 201003 100
    Desired output: Table_result
    Emp_code Years Contribution_amt
    100 2009-2010 700
    Also, the years duration should be of only one year. For eg: 2008-2009, 2009-2010 etc.
    Edited by: user9027633 on Feb 26, 2010 12:34 AM

    Select Emp_code, min(substr(Current_month,1,4))||'-'||max(substr(Current_month,1,4)) period, sum(Contribution_amt) amount
    from mytable
    group by Emp_code;
    SQL> with mytable as (
      2  select 100 Emp_code, 200910 Current_month, 100 Contribution_amt from dual union all
      3  select 100, 200911, 100 from dual union all
      4  select 100, 200912, 100 from dual union all
      5  select 100, 200912, 100 from dual union all
      6  select 100, 201001, 100 from dual union all
      7  select 100, 201002, 100 from dual union all
      8  select 100, 201003, 100 from dual)
      9  Select Emp_code,
    10         min(substr(Current_month,1,4))||'-'||
    11         max(substr(Current_month,1,4)) period,
    12         sum(Contribution_amt) amount
    13  from mytable
    14  group by Emp_code;
      EMP_CODE PERIOD        AMOUNT
           100 2009-2010        700Max
    http://oracleitalia.wordpress.com
    Edited by: Massimo Ruocchio on Feb 26, 2010 9:11 AM
    Added example

  • Merging other files into a single pdf.

    I cannot merge multiple documents (other than pdf) into a single pdf. I use Adobe Acrobat X Pro, for

    True Cowgirl; now it simply doesn't work. I had a simple pdf app that does everything I want including converting single document to pdf and vice versa. I bought Acrobat Pro solely to combine several documents with different format into a single pdf. If it doesn't work, it's a shame. Not to mention a rip-off. See my screen capture too.Doc/docx is not a supported format

  • Error combining Power Point 2007 files into a single pdf (Acrobat 11)

    Hi,  Am running Acrobat 11 and am getting an error when attempting to combine files.  Trying to combine multiple power point 2007 files into a single PDF using Acrobat 11.  Am getting an error "unable to find Adobe PDF resource files.  Do you want to run the installer in repair mode".  If choose yes or no I get the yellow error icon beside the PP files and eventually have to cancel the job.
    Any help would be greatly appreciated.

    Hi,
    Please see http://helpx.adobe.com/acrobat/kb/error-unable-create-pdf-resource.html
    Try the suggestions mentioned in this KB doc.

  • How can I use multiple row insert or update into DB in JSP?

    Hi all,
    pls help for my question.
    "How can I use multiple rows insert or update into DB in JSP?"
    I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
    With thanks,

    That isn't true. Different SQL databases have
    different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
    I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
    and there are also a lot of different ways of talking to
    SQL databases that are possible in JSP, from using
    plain old java.sql.* in scriptlets to using the
    jstlsql taglib. I've done maintenance on both, and
    they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
    Well, sure. As long as you only want to update rows
    with the same value in column 2. I had the impression
    he wanted to update a whole table. If he only meant
    update all rows with the same value in a given column
    with the same value, that's trivial. All updates do
    that. But as far as I know there's know way to update
    more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
    Unless you're using MySQL, for instance. I only have
    experience with MySQL and M$ SQL Server, so I don't
    know what PostgreSQL, Oracle, Sybase, DB2 and all the
    rest are capable of, but I know for sure that MySQL
    can insert multiple rows while SQL Server can't (or at
    least I've never seen the syntax for doing it if it
    does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
    Don't assume that all SQL databases are the same.
    They're not, and it can really screw you up badly if
    you assume you can deploy a project you've developed
    with one database in an environment where you have to
    use a different one. Even different versions of the
    same database can have huge differences. I recommend
    you get a copy of the O'Reilly book, SQL in a
    Nutshell. It covers the most common DBMSes and does a
    good job of pointing out the differences.Yes, I understand that.
    It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
    I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
    The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing.

  • Aggregating multiple lists into a single list.

    I have a SharePoint site with several sub-sites, each with its own document library. I’ve created Site Columns and a Custom Content Type that is used by each library. I want to roll up all the documents with their associated metadata into a single list and
    can’t figure out how to do it. I’ve tried using the Content Query and Content Search web parts, which do roll up the libraries, but I don’t get the display I want. I want to view the data as an aggregated list so all the list functions like filtering and creating
    multiple views are available.

    "I want to view the data as an aggregated list so all the list functions like filtering
    and creating multiple views are available."
    Unfortunately that is not possible. At-least not out of the box. If you do not want to use third party components then I think CQWP and CSWP is your best bet.
    Amit

  • Multiple Hierarchies in one dimension - comments?

    multiple hierarchies
    Hi Experts,
    I'd like your comments on my implementation of multiple hierarchies in one dimension.- especially if this can be done in a way that:
    a) still enables users to choose the hierarchy in a dashboard prompt
    b) reduces maintenance to a minimum
    The dimension groups ages into several different groups like the example below:
    Hierarchy1 Hierarchy2
    Age......Groups........Groups.....
    0........0-2...........0-5
    1........0-2...........0-5
    2........0-2...........0-5
    3........3-5...........0-5
    4........3-5...........0-5
    75.......70-75.........70-80
    76.......76-80.........70-80
    Right now I've implemented this by defining one dimension having one hierarchy:
    Total
    ....Hierarchy
    .......Group
    .........Age
    The underlying logical table is based on several logical table sources (LTS) - one for each hierarchy as shown in the first example(Hierarchy1, Hierarchy2).Every LTS has a fragmentation definition filtering on values on 'hierarchy-level'.
    Columns in the logical table (and of course in the underlying LTS) are:
    Column               mapped to hierarchy-level
    - Hierarchy          Hierarchy               
    - Hierarchy_id          Hierarchy
    - Group          Group
    - Group-id          Group
    - Age               Age
    Advantages:
    A answers / dashboard user can select one or more hierarchies by using a dashboard prompt.
    Adding a new hierarchy (a new grouping) doesn't need changes in the dimension itself
    Disadvantages:
    A new grouping needs manual steps to implement
    - a new physical table
    - a new LTS attached to the logical table (including the fragmentation content)
    Thanks for your time and comments
    Regards
    Andy

    multiple hierarchies
    Hi Experts,
    I'd like your comments on my implementation of multiple hierarchies in one dimension.- especially if this can be done in a way that:
    a) still enables users to choose the hierarchy in a dashboard prompt
    b) reduces maintenance to a minimum
    The dimension groups ages into several different groups like the example below:
    Hierarchy1 Hierarchy2
    Age......Groups........Groups.....
    0........0-2...........0-5
    1........0-2...........0-5
    2........0-2...........0-5
    3........3-5...........0-5
    4........3-5...........0-5
    75.......70-75.........70-80
    76.......76-80.........70-80
    Right now I've implemented this by defining one dimension having one hierarchy:
    Total
    ....Hierarchy
    .......Group
    .........Age
    The underlying logical table is based on several logical table sources (LTS) - one for each hierarchy as shown in the first example(Hierarchy1, Hierarchy2).Every LTS has a fragmentation definition filtering on values on 'hierarchy-level'.
    Columns in the logical table (and of course in the underlying LTS) are:
    Column               mapped to hierarchy-level
    - Hierarchy          Hierarchy               
    - Hierarchy_id          Hierarchy
    - Group          Group
    - Group-id          Group
    - Age               Age
    Advantages:
    A answers / dashboard user can select one or more hierarchies by using a dashboard prompt.
    Adding a new hierarchy (a new grouping) doesn't need changes in the dimension itself
    Disadvantages:
    A new grouping needs manual steps to implement
    - a new physical table
    - a new LTS attached to the logical table (including the fragmentation content)
    Thanks for your time and comments
    Regards
    Andy

  • Hyperion Planning : multiple hierarchies for a dimension ?

    Hi,
    Is it possible into planning 9.2 to manage multiple hierarchies for a dimension ?
    I didn't found that in the documentation but I had already listened that there is a workaround to do that.
    Regards

    Hi,
    I would like for the entity dimension used two differents hierarchies (two differents relation Parent/child), one for example used by the accounting service and an other used by the sale service.
    The level0 member are the same but parents are differents in these two hierarchies.
    It's something possible to do into OFA or EPB and I would like to do the same into Hyperion. planning.
    Regards

Maybe you are looking for

  • Mac OS 10.8.4 slows down and freezes

    Hi, I am running Mac OS X Mountain Lion with the newest updates. Since 4 Weeks I am receiving error messages like this one: WindowServer[112]: CGXDisableUpdate: UI updates were forcibly disabled by application "Chrome" for over 1.00 seconds. Server h

  • Questions about web console

    1. how many web console server I can place in one management group? 2. if a web console server is on serverA.company.com, can I configure the server so that users can connect to the web console at http://scom2012r2.company.com/OperationsManager inste

  • Management console 3.0 Java Errors

    I have just installed Sun Management Console 3.0 and the install reported no errors When I go to start the console es-start -c I get a list of fonts not installed and the a list of Java errors. The path for the fonts seems correct in the startup.prof

  • About JFM classpath.

    Dear ALL, Any of you have experinece with JFM? I download JavaTM Media Framework 2.1.1a API unzip and put it into C:\JMF2.1.1 My system is win2k i go to setting----->control panel---> system ---->advance------>enviorment varibles----->system varibles

  • How to create prod categories

    can some one guide me how to create product categories in a standalone SRM system? will award points PS