Different aggregations at different levels

When I view the data using 'Measure Data Viewer', the items in a dimension are showing in random order.
How do I load the data in a dimension in ascending order so I can view it in ascending order.
Also, is it possible to apply different aggregations at different levels in a dimension?
Thanks.

Thank you. I will put different measures with different dimensions in different cubes.
After I mapped my measures in the mapping canvas(I can see the mapping lines), I tried to maintain the measure. But I am getting an error 'some-measure-name may not be maintained since mapping do not exist for the measure'.
I am using AWM 10.2.0.3A and the database is 10.2.0.4
Thanks

Similar Messages

  • Substract as an aggregation rule for different level in a DIM ?!

    Hi there..
    I'm building a BI model based on financial transactions (incomes, expenses, etc..)
    and my main problem is how to substract a measure, where the aggregation rule is set to SUM, for different levels in the "Account" dimension?
    Example:
    I have the "Account" dimension with the following hierarchy:
    Account_ID / Account_name / Account_type / Account_total
    And, lets say, 2 rows in it:
    1.row in the "Account" dimension:
    account_ID : 100
    account_name : "Marketing expense"
    account_type : "Variable expenses"
    account_total : "Total profit" (total income - total Expenses)
    2. row in the "Account" dimension:
    account_ID : 200
    account_name : "Financial incomes"
    account_type : "Total incomes"
    account_total : "Total profit" (total income - total Expenses)
    "Total profit"
    "Tot. incomes" "Tot. Expenses"
    "Finan. incomes" "Market. expenses"
    The fact table has just one measure: "Amount" and, of course, some foreign keys:
    Account_ID -> "Account" dim
    Organization_ID -> "Organization" dim
    Date -> "Date" dim
    Amount
    The measure "Amount" in the fact table is positive both for expenses and incomes.
    Now, what I'm trying to do is to sum up that measure on my top level in the "Account" dim.
    At that level my report in Answers should substract "Total expenses" from "Total incomes"!
    How can I do that?
    thanks..
    Ivan

    Sorry to pop the obvious question, but can't you model that nicely and put it into distinct columns?
    If not, you can create derived measures on you fact using "case when" statements. One for the incomes with amount > 0 (or >=0 ...depends on where you want to have the 0's) and one for the expenses with amount < 0.
    HTH,
    Chris

  • OBIEE Facts at different levels.

    Hi,
    I am bringing columns from three tables: Two facts and one Dimension table to create a OBIEE Report.
    The fact tables Workforce Event Fact and Employee Daily Snap Fact are at different levels, but both of them have proper joins with Dimension Employee Dim.
    When i am pulling columns from D1 and any one of these two facts, i am not facing any problem in seeing results. But when i bring columns from all of these three tables, i am getting this error,
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table Workforce Event Fact) does not contain mapping for [Employee Daily Snap Fact.Exempt Indicator]. (HY000)
    Is there anything i have to do in Business Model layer to avoid this error. Many people suggesting to assign an aggregation level for these two facts. But i am not having any Dimensional Hierarchy defined.
    Thanks
    Swami

    Hi swami,
    Many people suggesting to assign an aggregation level for these two factsThis is a workaround i think where you need to create aggregate tables(not levels) and then use them for your purpose.(OR) you dint define the logical source table properly either correct it.
    Another work around i could suggest is,take the 2 fact tables columns needed into one alias table and make it as fact and join this fact table to dimension table and you can get all columns.
    Hope it helps you.
    Best Wishes,
    Kranthi.

  • Macro - multiply numbers at two different levels

    Hi Folks,
    I am trying to write a macro which takes KF at a detailed level and multiplies it with another key figure at a different level of aggregation. Any ideas in this direction will help.
    A - B
    KF 1 = 10 %
    A - C
    Kf 1 = 20%
    A
    KF 2 = 100
    I want to write  a macro that gives following result
    A - B
    KF3 = 10 ( 10% * 100)
    A - C
    KF3 = 20 ( 20% * 100)
    Regards,
    Sachin
    Edited by: Sachin Ganesh Shetty on Feb 12, 2009 4:57 AM

    Hi,
    I had a similar requirement of running a macro at 5 level and use a data at 3 level as one of the inputs.
    what i did was i wrote a Z function module which called /sapapo/msdp_data_read and retrieved the value at 3 level.
    Thus i was able to extract a 3 level value and use it to run a macro at 5 level.
    Please let me know if this helps.

  • Extract Data in Power Pivot from MDX with diffrentnt different Level of Hierarchy in MDX

    Hi All,
    My requirement is to extract the data form tabular model and put in power pivot,as all the measures calculation is present in model just extracting the aggregated data.
    Issue is appearing on Rolling up the data, so is there any way to extract the data so that it will display the right data on different level. As per the below example on level 2 data is getting summed up which is not correct.
    Ex:-
    Level1
    A
    10%
    B
    20%
    Level2
    30%
    Thanks Chandan

    Hi Chandan,
    According to your description, you create a SQL Server Analysis Services Tabular model and extract Data in Power Pivot from MDX, the problem is that the hierarchy data rolling up base on the hierarchy level, right?
    I have tested it on my local environment, we cannot reproduce this issue. So as per my understanding, the issue can be cause by the hierarchy setting in your tabular model. Here are some links about how to create and manage hierarchies in a tabular model,
    please refer to the links and check if the settings are correct.
    http://msdn.microsoft.com/en-in/library/hh213003.aspx
    http://www.youtube.com/watch?v=qKKNY1Vj_2c
    If the issue persists, please provide us more information about you hierarchy creation steps, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Can I map different levels of a hierarchy to different sources

    Hi,
    I want for AWM not to aggregate the upper levels of a dimension by itself. Instead, i want to feed the data for upper levels also through different sources.
    Its becauese, the measure values of my dimension can not be aggregated from lower level. The value has to be calculated separetely.
    I know that the AWM will not aggregate when i specify the dimension agg rule as 'NON ADDATIVE' or something like that. I did it and i was done too. There were the data only for base level for that particular dimension. The other levels were empty.
    Now i want to feed the data for other empty levels from different source.
    Does anyone knows if it is possible in AWM 10.2.0.1 or can i do it from any other way?
    If one knows how to do it, i would be very much grateful to know it clearly.
    with regards,
    subash

    The following method assumes that you are assuming responsibility for managing all of the aggregate level data on your own:
    1. Define the cube as (a) uncompressed (the aggregate space of a compressed cube is always managed by the multidimensional engine), (b) with aggregation methods of SUM for all dimensions and (c) with only the detail levels selected on the 'Summarize To' tab of the cube definition. This will set up the cube so that it will not aggregate data when it is loaded.
    You will have a formula used to represent the measure and it will look something like this:
    DEFINE SALES_CUBE_SALES FORMULA DECIMAL <TIME CHANNEL CUSTOMER PRODUCT>
    EQ aggregate(this_aw!SALES_CUBE_SALES_STORED using this_aw!OBJ1819687276)
    You can see from the AGGREGATE command in the formula that it is set up to aggregate data at runtime if necessary. The formula reads from a variable that will look something like this:
    DEFINE SALES_CUBE_SALES_STORED VARIABLE DECIMAL WITH AGGCOUNT <SALES_CUBE_PARTITION_TEMPLATE <TIME CHANNEL CUSTOMER PRODUCT>>
    2. Load the data. You can load the base data through AWM if you wish or you can load it into the variable of the measure using OLAP DML code. You cannot map tables to summary levels using AWM, so you will need to use OLAP DML code to do this. An example program follows.
    DEFINE LOAD_SALES PROGRAM INTEGER
    PROGRAM
    vrb _errortext text
    trap on HADERROR noprint
    sql declare c1 cursor for -
    select -
    to_char(MONTH_ID), -
    to_char(ITEM_ID), -
    to_char(SHIP_TO_ID), -
    to_char(CHANNEL_ID), -
    SALES -
    from GLOBAL.SALES_FACT -
    where -
    (MONTH_ID IS NOT NULL) and -
    (ITEM_ID IS NOT NULL) and -
    (SHIP_TO_ID IS NOT NULL) and -
    (CHANNEL_ID IS NOT NULL) -
    order by -
    CHANNEL_ID, -
    SHIP_TO_ID, -
    ITEM_ID, -
    MONTH_ID
    sql open c1
    if sqlcode ne 0
    then do
    _errortext =  SQLERRM
    goto HADERROR
    doend
    sql import c1 into -
    :MATCHSKIPERR TIME_MONTH -
    :MATCHSKIPERR PRODUCT -
    :MATCHSKIPERR CUSTOMER -
    :MATCHSKIPERR CHANNEL -
    :UNITS_CUBE_PRT_TOPVAR(UNITS_CUBE_PRT_MEASDIM 'SALES')
    if sqlcode lt 0
    then do
    _errortext =  SQLERRM
    goto HADERROR
    doend
    sql close c1
    sql cleanup
    return 0
    HADERROR:
    trap on NO_ERROR noprint
    sql close c1
    NO_ERROR:
    trap off
    sql cleanup
    END
    3. Change the formula of the measure so that it does not aggregate using OLAP DML commands. E.g.,
    consider sales_cube_sales
    eq SALES_CUBE_SALES_STORED
    The formula will then simply get data from the variable rather than call the aggregate system.
    Since you are writing to the physical implementation of the AW you will need to check this code each time you upgrade the database because the physical implementation changes from time to time. (Usually major releases such as 10.1 and 10.2, not usually maintenance releases, but you never know.)

  • Measures in different levels

    I am having problems with measures based on different levels of a dimension.
    The situation is: I have a product dimension with 2 levels (category and detail) and a client dimension. I want a measure with the number of distinct clients wich buys each product (it works fine with count distinct). But I also want a measure with the number of distinct clients wich buys the category of products, wich it's not working.
    I have tried level based measures, but it didn't show the right result. I have changed the aggregate rule for this measure to count distinct, but it shows the same result as the SUM.
    Can I define a custom rule for aggregation based on attributes of another tables?
    Does anyone know a solution for this?

    The output of the reports needs to be as below which shows details of a single customer.
    customer_name---ca_number-----obl_number--------gl_balance--------limit_available-----state
    Krio motors---------222222222-----763764754---------37000.00--------1834297.00--------CA
    Krio motors---------222222222-----326635675---------34820.00--------1834297.00--------CA
    Krio motors---------111111111-----326684759---------670000.00------3456789.00--------CA
    Krio motors---------111111111-----326611111---------32400.00--------3456789.00--------CA
    Krio motors---------111111111-----326622222---------8700.00----------3456789.00--------CA
    Krio motors---------111111111-----326633333---------632450.00------3456789.00--------CA
    here for each record in dimension D6 (for each Ca_number) there are many records in dimension D1 (obl_number records)
    The limit_available is at ca_number level (higher level) and gl_balance is in obl_number detail level.
    Thank you.

  • Different levels of a dimension

    I am having problems with measures based on different levels of a dimension.
    The situation is: I have a product dimension with 2 levels (category and detail) and a client dimension. I want a measure with the number of distinct clients wich buys each product (it works fine with count distinct). But I also want a measure with the number of distinct clients wich buys the category of products, wich it's not working.
    I have tried level based measures, but it didn't show the right result. I have changed the aggregate rule for this measure to count distinct, but it shows the same result as the SUM.
    Can I define a custom rule for aggregation based on attributes of another tables?
    Does anyone know a solution for this?

    Luciene,
    Is your requirement to have seperate metric for the category and a seperate metric for the detail level? if so then you can duplicate the count distinct metric and specify the level for the product dimension.( for the category metric it would be at the category level and for the detail metric it would be at the detail level). But on the other hand if you want the same metric to act at different levels, then you don't have to create a level based metric. Pulling the category/detail and the metric would aggregate the metric to the specific level.
    Arjun

  • Relating facts to different levels of a dimention

    Dear All,
    I need to relate a fact to optionally different levels of a hierarchy in a dimension
    that's sales plan may be put on the level of a salesman or a distributor or a channel and so on ...
    I think that it could be implemented by adding a dummy record in a each level that represent the parent .. but i don't konw how to add this dummy record in owb ...
    can you help ..
    Regards,
    Shaimaa

    Hi Shaimaa,
    this is actually a very difficult business question. Technically, it's straightforward.
    The easy part is to create one fact table per dimension level where you have a plan. So, you would have a SalesPersonPlanFact, a SalesManagerPlanFact, and so on. That will work technically . . .
    But it won't really work. :-(
    The reason is that the way these plans are created. Typically, the Boss and his guys work out a master plan. Then it gets broken into bits, and each department does their own sub-plan. All the way down, until it gets to individual sales plans. And at every step of the way, the plan gets tweaked, modified, 'special cases' put in.
    The result is that they never add up. How you resolve that is a business issue, not a technical one.
    Me? What I do is tell people that they won't add up, and then say that it doesn't matter anyway. The reason I give is that the purpose of the plan is to measure actual sales performance against plan, and that we can do. Sales take place at the most atomic level for which there is a plan, and these we can match and consolidate plan against actuals. The consolidated results are then MVed and thus present a high-performance single picture of 'the truth'.
    Realistically, you're building a second-level snapshot (could be aggregated, could be periodic, could be both), and that's your reporting structure.
    I suspect you may need to go and have a re-think about your value chain, and do much communication with your sponsors so that they understand what's achievable and of real worth to the business. After all, your business as a data warehouse architect is to ensure you're publishing the right data.
    Cheers,
    Donna

  • Display different level for same hierarchy value in BO 4.0

    Hi Expert,
    I have one question for Webi for BO 4.0
    We have one hierarchy in BW side and we hope to display differet level in same report for different column
    For example, column A is for level 6. column B is for level 7.
    Do you know how to releaze this in Webi side?
    In the 3.X version, we have different dimension for different level.
    But now in BO 4, it has been combined into one\
    Thanks and best regards
    Alex yang

    Hi,
    You can still do this in BI 4.0, if you use the old 'legacy'  MDX OLAP.unv from Universe Designer tool .
    Yes, with the BICS connection,  you are getting a native hierarchy, as it would be displayed in an OLAP environment.
    Cheers,
    H

  • OBIEE report from multiple facts at different levels

    Currently we need to develop a report with columns from 3 different facts surrounded with conformed and non conformed dimensions at different levels.
    After setting the hierarchial levels and putting the facts into single logical table with different sources OBIEE is generating 2 different queries and does a full outer join.
    I would like to know how we can do a left outer join instead of full outer join between the 2 queries based on a common column?
    Thanks in advance.

    Hi Vinod,
    The scenario provided in the link above doesnt match to my issue.
    We need to develop a report from multiple fact tables at different levels with conformed & non conformed dimension columns.
    I have 7 dimensions D1, D2, D3, D4, D5, D6 and D7 & two fact F1 and F2 tables.
    F1 is tied to dimensions D1,D2,D3,D4,d5
    F2 is tied to dimensions D3,D4,D5, D6 and D7.
    In my report I have columns from D1, D2, D3, D4, D5, D6, D7, F1 and F2.
    So OBIEE generates 2 queries with columns from D1,D2,D3,D4,d5 & F1 measure and another query with D3,D4,D5, D6, D7 and F2 measure.
    and then does a cross fact join out of box between 2 queries.
    But I need to do a left outer join between the 2 queries on a common column instead of cross fact join. I would like to know how we can achive this.
    Thanks.

  • Displaying different levels of the same hierarchy in the different columns

    I have a parent child hierarchy and wish to display different levels of the hierarchy in different columns of the resultset eg
    level 1 level 2
    Europe UK
    Europe France
    N America US
    N America Canada
    However writing MDX like the below
    select
    {} on 0,
    ([Geo].[level 1],[Geo].Level 2] on 1
    from cube
    results in the error "The [Geo] hierarchy is used more than once in the crossjoin
    How can I get around this??

    Hi,
    You can make use of CrossJoin function in MDX, I give a sample MDX based on the AdventureWorks database:
    select {[Measures].[Reseller Sales Amount]} on 0,
    crossjoin({[Sales Territory].[Sales Territory Group].[Sales Territory Group].members},{[Sales Territory].[Sales Territory Country].[Sales Territory Country].members}) on 1
    from [Adventure Works]
    After execut the MDX you will get the result like this:
    Reseller Sales Amount
    Europe
    France
    $4,607,537.94
    Europe
    Germany
    $1,983,988.04
    Europe
    United Kingdom
    $4,279,008.83
    NA
    NA
    (null)
    North America
    Canada
    $14,377,925.60
    North America
    United States
    $53,607,801.21
    Pacific
    Australia
    $1,594,335.38
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Essbase cubes with different levels of detail - OBIEE 10.1.3.4.1 on LINUX

    Hi all,
    I have BSO and ASO cubes which contain broadly the same information, but with the ASO cube at much higher detail. For simplicity sake, they only have 1 dimension, and 1 fact. The dimension a date and is structured like:
    Gen2 = year
    Gen3 = year & quarter
    Gen4 = year & month
    Gen5 = year, month & day
    Only the ASO cube has Gen5. the BSO cube only has the information to Gen4 level.
    I've imported them both into the RPD and dragged the ASO cube across into the BMM. and then taken the fact column from the BSO cube and dropped it onto the BMM, selected its new source ( the BSO cube ) and set the
    Content tab and set the logical level as Gen4.
    I then dragged the key items from the BSO date hierachy onto the date dimension in the BMM.
    I purposely had a slightly different date hierachy and data content in the 2 cubes so I could tell where it was getting the data from.
    If I select the year only...it gets the value from the BSO, and if I drill down to quarter and month it also gets the dates from the BSO cube.
    If I select the data fact, it will switch to the ASO cube and retrieve the value from there.
    Same applies if I select just the year - data comes in from the ASO cube.
    So my question is this, how do I get it to select the data facts from the less detailed cube when the details is not required and only switch to the ASO cube when the extra detail is needed?
    Thanks in advance for any assistance

    Anyone have any thoughts on this?
    Data fact with 2 sources, where source 1 & 2 have differing levels of detail, it always seems to take the data from the more detailed source

  • Nesting of AGO or TODATE functions with differing level arguments is not supported

    I have a column in BMM which calculates the Year-To-Date Sales. This function uses the ToDate function to caculate the YTD.
    I need to develop another formula column which shows the last-year's YTD.
    I develop this formula in BMM by AGO on the YTD column which already uses a ToDate function.
    In BI Answers when selecting this column, results in the below message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 22044] Nesting of AGO or TODATE functions with differing level arguments is not supported. (HY000)

    To reply to my own question. It appears I got it working, that is, the error message problem is solved, but I still have questions on how to use these functions.
    To get it to work, I added the primary key D_TIJD.TIJDKEY at the level of the lowest grain in my dimension (level tab).
    What I still wonder is how to make it select the right values. I have the following hierarchy: bookyear - bookperiod - week. A bookperiod contains 4 or 5 weeks (4,4,5 in a quarter), so 12 periods in one year. I defined a measure at period level and another at that level with the ago function, that should return the figures for that same period of the year before. My first question is, whether to go back 12 periods or 52 weeks (which is the lowest grain in my dimension)?
    The second question is how to use a combination of TODATE and AGO so that if I calculate the current period (of which only 2 weeks are passed), I also only want to include the same two weeks for that period one year ago in order to make a correct comparison. How do I do that???

  • Controlling the main time line of a movie via a button within a movie on a different level.

    Hi there!
    I have two movie is two different levels,
    Level 5 is my base movie and I am loading another movie on
    top of this into level 10.
    Once the user clicks onto a button within the movie on level
    10, I would like the animation in level 5 to stop (the animation
    runs on the main root timeline of level 5).
    Once the user clicks on a different button within the movie
    on level 10, I would like the animation on the main timeline of the
    movie in level 5 to start again from the point where it previously
    left off.
    Is this possible?
    It would be great if someone could help me out with this.
    Thanks, midi_ie

    midi_ie wrote:
    > Hi there!
    > I have two movie is two different levels,
    > Level 5 is my base movie and I am loading another movie
    on top of this into
    > level 10.
    > Once the user clicks onto a button within the movie on
    level 10, I would like
    > the animation in level 5 to stop (the animation runs on
    the main root timeline
    > of level 5).
    >
    > Once the user clicks on a different button within the
    movie on level 10, I
    > would like the animation on the main timeline of the
    movie in level 5 to start
    > again from the point where it previously left off.
    > Is this possible?
    _level5.gotoAndPlay("someLabelframe");
    Use your regular action to target timeline or movie clips,
    just define the level number at the beginning of the path.
    Pretty much it :)
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

Maybe you are looking for

  • Trying to upgrade to 10.4.7 from 10.3.9 but not working please help!

    ok so first off I have no problem with panther. I have been happy with my powerbook b4 titanium for the past 6 years now. but now that I went and bought a new iphone 3G , my powerbook doesn't support it. fortunately I converted my parents over to mac

  • QuickTime Movie Files Won't Convert For iPod using iTunes and QuickTime Pro

    I've got a ton, and I mean a ton of QuickTime movie files of music videos that I want to convert to use on the iPod. I tried using "Convert Selection For iPod" in the Advanced Menu on iTunes, but got the following message trying convert a QuickTime f

  • Prevent slide show image resizing

    Is there any way to prevent iweb from resizing images for the slideshow? My images are already resized to the exact size that I want them to be displayed. I don't want the software to mess with them!!!

  • My computer is surviving off chargers, but not allowing itself to charge.

    My macbook pro I just got about a month ago now will not charge when plugged into the power adapter. There is a very very faint green light and the computer is constantly (calculating...) the battery life. I have been continually on 11% for 2 days wh

  • Error in Inserting

    I m trying to insert a row in a mysql database table but it is giving error that cannt insert , RowSet must be updatable or RowSet should select only from one database or select all primary keys. i have checked that the rowset is updateable, it is us