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.)

Similar Messages

  • Why I can not find field:Level in Project Hierarchy in BAPI_BUS2054_NEW?

    Dear experts,
        Why I can not find the field of "Level in Project Hierarchy" in structure BAPI_BUS2054_NEW?
    I only define the data to upload wbs:
    PROJECT DEFINITION
    PROJECT DESCRIPTION
    PROJECT PROFILE
    WBS Element
    WBS description
    Can you tell me which fields must to upload?
    Looking forward to your reply.
    Many thanks.
    Merryzhang

    Anyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.

  • Value Mapping : Different Source - Same Target

    Hi all,
    Is it possible to map the different source value to the same target value with XI Value mappuing.
    Because when i try to set the same target value for a second value .. the directory delete it for the first one.
    for example i have:
    Value1
    Value2 --- newValue1
    Value3
    Value4 --- newValue2
    Value5 --- newValue3
    is it possible to build this somehow with ValueMapping?
    Regards,
    Robin

    Hi,
    no you missunderstood.
    i useing the conversion function Value mapping.
    The Values i set in Directory -> Tools -> Value mapping.
    What i want know, is if value 1 and value 2 comes the value mapping hast to give back for both the same... value 3.
    im only intressting of the values .. no structure other something else.
    Regards,
    Robin

  • How can I share different sources to multiple Apple TV with only one controller (Mac Mini)

    Here's the setup
    3 TV's in 3 different rooms each connected to 3 different Apple TV.
    It is self-explanatory has how to share the SAME source to 2 or 3 of the Apple TV.
    What I want to know: Can we manage Apple TV's in a way that I can share 3 DIFFERENTS source with ONE controller, let's say a Mac Mini or PC using AirParrot.
    Im open to third-party apps as this is my only complaint for using an easy and affordable setup.
    Regards.

    I have a WLAN at home conneting Mac mini (late 2009), PS3 slim and xbox 360 in the living room and I would love to share whats on the Mac mini with AT3 in the guest room upstairs, physically it wont be possible to control both screens at the same times. The files I have are on external HD connected via firewire + USB to Mac mini and they are a mix of avi, mp4, mpeg etc. I'm talking about 3 TB of movies and series (its still legal here in Dubai to download ;-)). starting to convert such amount of files its not an option. AirParrot is a good option when I have media stored on my MacBook pro and would like to play it no AT3 but I used Beamer it works great for such function.
    any ideas folks ?

  • Xslt: mapping different elements onto instances of an unbounded element

    How can you map different elements onto sequential elements of an unbounded type? For example:
    <record>
    <tag1>abc</tag1>
    <tag2>def</tag2>
    <tag3>ghi</tag3>
    </record>
    onto
    <properties>
    <property name="tag1" seq="1">abc</property>
    <property name="tag2" seq="2">def</property>
    <property name="tag3" seq="3">ghi</property>
    </properties>
    The mapping onto the first property will always be from tag1, etc. However, in the schema for <properties>, <property> only appears once:
    <xsd:element name="property" type="NormalizedString" minOccurs="0" maxOccurs="unbounded">
    Can this be mapped using JDeveloper? Can it be mapped by hand?
    If so, how?
    Thanks!

    Hello user,
    I think you will have to do this manually. It's been way too long since I was doing any serious XSLT hacking, and I don't have your schemas, but this may give you a starting point for your transformation;
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns1="http://xmlns.oracle.com/Transformation"
    exclude-result-prefixes="xsl ns0 ns1 xref xp20 bpws ora ehdr orcl ids hwf">
    <xsl:template match="/ns1:TransformationProcessRequest/ns1:record">
    <xsl:for-each select="*">
    <xsl:element name="ns1:property">
    <xsl:attribute name="name"><xsl:value-of select="name()"/></xsl:attribute>
    <xsl:attribute name="seq"><xsl:value-of select="position()"/></xsl:attribute>
    <xsl:value-of select="current()"/>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    <xsl:template match="/ns1:TransformationProcessRequest">
    <ns1:properties>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest/ns1:record"/>
    </ns1:properties>
    </xsl:template>
    <xsl:template match="/">
    <ns1:TransformationProcessResponse>
    <xsl:apply-templates select="/ns1:TransformationProcessRequest"/>
    </ns1:TransformationProcessResponse>
    </xsl:template>
    </xsl:stylesheet>
    Regarding validation to XSD, I guess that's just a matter of specifying the right namespaces and elements...?
    Regards,
    Rune

  • Colour in different ways, rows of different level of a hierarchy in WAD 7.0

    Hi all,
    Can anybody  tell me how  to colour in different ways, rows of different level of a hierarchy, in a web template? I’m working with WAD 7.0
    Thank you,
    Best regards
    Savino Pompa

    Hi wand,
    I know but i have to use Web template and i don't understand why By WAD 3.5 it  was possible format layout through stylesheets and now by Wad BI i can't.
    Thanks Savino

  • Reporting at different levels in a Hierarchy

    Hi,
    How can I report at different levels within a hierarchy? Currently within SAP and BW I have levels 1 to 7, however currently I have to go through level 1 to see any information.
    Please let me know, any help much appreciated
    Thanks
    Bhav

    Hi Riccardo,
    How can I create variables for selecting nodes of the hier?
    I can bring in the hierarchy, but any variables i create only allow me to select different hierarchies.
    What I am trying to do is create a report to run for level/ node 1 of 7 (the top level), this would allow users to expand if necessary and also another one that only has level/node 6 & 7, without levels/nodes 1-5.
    Any help would be much appreciated.
    Thanks
    Bhav

  • How can i manage multi level hierarchy in ADF

    hi,
    i have three View Object which is based on table.
    EmployeeHdr- EmployeeVo
    LeaveApplyHdr- LeaveHdrVo
    LeaveApplyDet- LeaveDetVo
    now how can i manage master detail type of hierarchy among these table.
    a)foreign key relation b/w EmployeeHdr and LeaveApplyHdr based on EmployeeHdr.empcd = LeaveApplyHdr.empcd
    b)foreign key relation b/w LeaveApplyHd and LeaveApplyDet based on LeaveApplyHdr.apply_no=LeaveApplyDet.apply_no
    i have already create association and viewlink for these relationship.
    now can i manage this in Single jsf page.

    hi,
    open your application module and take the source
    And find out where the view links are Used..
    it may be like this...
    <ViewLinkUsage
        Name="ViewLinkA****1"
        Version="@@@@@@@@@@@@@@"
        ViewLinkObjectName="model.ViewLinkA****"
        SrcViewUsageName="model.AppModule.EmployeeVo5 "
        DstViewUsageName="model.AppModule.LeaveHdrvo6 " // check this
        Reversed="false"/>
      <ViewLinkUsage
        Name="ViewLinkB****1"
        Version="@@@@@@@@@@@@@@"
        ViewLinkObjectName="model.ViewLinkB****"
        SrcViewUsageName="model.AppModule.LeaveHdrvo6"//check this
        DstViewUsageName="model.AppModule.LeaveDetVo7 "
        Reversed="false"/>
      From this you can see that SrcViewUsageName reference, change it as per your need.
    Already in application module you may have different instance names, make sure that you have specified the correct names in the application module.
    Then refresh the datacontrol
    Ranjith

  • Display the technical name of the last level of the hierarchy

    Hello,
    I have a report with hierarchy. Each level of the hierarchy uses different infoObject. I want the report to display the technical name only for nodes from specific infoObject. For example if the infoObject uses 0cust_grp1 (for the first level), 0cust_grp2 (for the second level), 0cust_grp3 (for the third level) and 0customer (for the last level) and I want to show the technical name only for the 0customer infoObject. I know how to do it in WAD reports. Is there a way of doing it in the Query Designer?
    Please Advice,
    David

    David,
          Check the below possibilities.
    1. You can do that in a workbook.
    2. Create a copy of the same hierarchy and for the 0CUSTOMER object and nodes give tech names as text also.

  • Data loaded all level in a hierarchy and need to aggregate

    I am relatively new to Essbase and I am having problems with the aggregation of cube.
    Cube outline
    Compute_Date (dense)
         20101010 ~
         20101011 ~
         20101012 ~
    Scenario (dense)
    S1 ~
    S2 ~
    S3 ~
    S4 ~
    Portfolio (sparse)
    F1 +
    F11 +
    F111 +
    F112 +
    F113 +
    F12 +
    F121 +
    F122 +
    F13 +
    F131 +
    F132 +
    Instrument (sparse)
    I1 +
    I2 +
    I3 +
    I4 +
    I5 +
    Accounts (dense)
    AGGPNL ~
    PNL ~
    Porfolio is a ragged hierarchy
    Scenario is a flat hierrachy
    Instrument is a flat hierarchy
    PNL values are loaded for instruments at different points in the portfolio hierarchy.
    Then want to aggregate the PNL values up the portfolio hierarchy into AGGPNL, which is not working the loaded PNL values should remain unchanged.
    Have tried defining the following formula on AGGPNL, but this is not working.
    IF (@ISLEV (folio,0))
    pnl;
    ELSE
    pnl + @SUMRANGE("pnl",@RELATIVE(@CURRMBR("portfolio"),@CURGEN("portfolio")+1));
    ENDIF;
    using a calc script
    AGG (instrument);
    AGGPNL;
    Having searched for a solution I have seen that essbase does implicit sharing when a parent has a single child. This I can disable but this is not the sole cause of my issues I think.

    The children of F11 are aggregated, but the value which is already present at F11 is over wriiten and the value in F11 is ignored in the aggregation.^^^That's the way Essbase works.
    How about something like this:
    F1 +
    ===F11 +
    ======F111 +
    ======F112 +
    ======F113 +
    ======F11A +
    ===F12 +
    ======F121 +
    ======F122 +
    ===F13 +
    ======F131 +
    ======F132 +
    Value it like this:
    F111 = 1
    F112 = 2
    F113 = 3
    F11A = 4
    Then F11 = 1 + 2 + 3 + 4 = 10.
    Loading at upper levels is something I try to avoid whenever possible. The technique used above is incredibly common, practically universal as it allows the group level value to get loaded as well as detail and agg up correctly. Yes, you can load to upper level members, but you have hit upon why it isn't all that frequently done.
    NB -- What you are doing is only possible in BSO cubes. ASO cube data must be at level 0.
    Regards,
    Cameron Lackpour

  • Hide the last level of a hierarchy in bex

    HI experts,
    In a query I use a hierarchy based on 0account (characteristic based hierarchy, every node is also an account...)only leaves have figures in the cube (meaning no direct posting on nodes).
    This hierarchy doesn't have flat / equal levels, and final accounts are sometimes located on level X, sometimes on level X+1 etc...therefore, I can't use the standard fonctionnality "expand to level X"
    see below a simple exemple
    (in fact my hierarchy contain more than 10 levels):
    level1..|..level2..|..level3
    ..node 1-1     
    .........|.node 1-2 ("R"account)
    .......................|.<b>account</b>
    ..node 2-1 ("R"account)
    .........|.<b>account</b>
    My users want to be able to simply navigate in the hierarchy on specific nodes(which have specific properties through the usage of an navigational attribute used on my 0account characteristic), whitout having to expand to the last level: example the "R" level wich is the level before. Again, this R level resides in different levels of my hierarchy.
    So I have to find a way to stop the expand of the hierarchy to this specific level, hide the levels below(account), but include the amount of the lower levels in this specific specified level ("R").
    If you have any ideas/clues or suggestions on how to resolve this issue (navigational attribute, exits, restricted key figures, hidden columns...)...this would really be much appreciated.
    thanks a lot!
    Ps: I work on BW 3.5
    Message was edited by: Agathe LE LAMER

    Hi Agathe LE LAMER
    I know this thread is a little old now, but I would be interested to know if you had found a way of doing this. I am also trying to supress the lowest level in a hierarchy which are not all the same levels.
    Thanks
    Ben

  • How to apply sorting for each level of a hierarchy?

    I'm using SSAS OLAP and I want to apply sorting of the levels of a hierarchy.
    I know that I can sort the whole hierarchy via ORDER function (I have some issues when I'm trying to apply DESC sorting
    on the whole hierarchy), but what I really want to achieve is sorting of a specific level. For example in the [Date].[Calendar] hierarchy (Adventure Works Cube), I want to have ASC sorting
    of years, DESC sorting of Quarter, ASC sorting
    of Months, etc. I do not want to break the hierarchy (using BASC or BDESC), I just need them sorted on the same level. Do you have an idea if this is possible at all?
    My idea is to sort the levels based on their key, not by the measure. For example if we have the following structure:
    -2009
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    -2010
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    I would like to be able to sort the data in the following order (DESC for years, ASC for Quarters, DESC for months):
    -2010
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May
    -2009
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May 
    Thanks in advance for your help!

    Hi Rosen,
    According to your description, you want to sort the different hierarchy members in different order, right? Generally SQL Server Analysis Services doesn't provide a way to sort dimension members in Descending order. SSAS provides only Ascending order. We
    can achieve this sort functionality by using a simple trick. However, the order is used for all the members of different hierarchy under this dimension. So I'm afraid that your requirement cannot be achieved. 
    Reference:Sort Dimension Members in DESCending order
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Drilling via Hierarchy - how to display upper levels of the hierarchy??

    Hi all.
    I'm using Discoverer 10.1.2
    I have a worksheet which contains only one Pie graph.
    Users can drill down and up by clicking on the slices of the graph, because I definied Hierarchy in the Administrator.
    Everything's fine, but when drilling down you can't see through which values of upper levels of the hierarchy you go..
    For example assume the pie graph displaying three slices for warehouses 1,2 and 3.
    User clicks on slice 2. Discovere re-run query with new condition warehouse=2 and displays new pie graph which shows four slices for Items a,b,c and d.
    That's fine user can see there are four items on the selected warehouse and there is some amount of each of these items.
    But he can't see which warehouse was selected!!!
    Discoverer only adds new condition to the source sql query but I have no chance to display these conditions on worksheet.
    Discoverer Plus enables to add "Axis Items", "Data points",etc in the graph title.
    In the Legend of the Graph there is a Column name of the upper level of the hierarchy but not its value (in my example there would be Legend displaying slice colors for items a,b,c,d and link to "warehouse") I would Like to see current warehouse number (e.g. 2 in above example) too!!
    Any workaround???
    Thanks a lot.
    Jakub

    Hi Jakub
    In releases prior to 10.1.2 users really had no choice but to drill to detail. However, with the release of hyper drills in 10.1.2 the situation has changed. Most of my customers now use hyper drills and wondered how they ever got by without them. Using hyper linked workbooks allows you to create a library of workbooks that all interlink to each other, up and down the chain.
    Thus a user can jump into the chain anywhere they like and the system should let them link up or link down. When done properly you end up with a library. Now take this one step further and make the library owner a generic user called something like ACCOUNTS PAYABLE. You can now have a library of accounts payable workbooks, workbooks that have been shared with either the ACCOUNTS_PAYABLE role or responsibility.
    Does this help see the direction I take?
    Regards
    Michael

  • How to make operation Average work on base level of a hierarchy?

    I used Oracle OLAP 11g Sample Schema OLAPTRAIN to make a test, and found something really confused me a lot.
    Here was my steps,
    I made a dimension "TIME" with a hierarchy "calendar": all years <- year <- quarter <- month.
    And then building up two cubes,
    Cube "AVG_TEST" using dimension "TIME" with operator Average.
    Cube "SUM_TEST" using dimension "TIME" with operator Sum.
    After maintaining both dimension and cubes, I tried to query views: AVG_TEST_VIEW and SUM_TEST_VIEW and noticed the cube value based on months level were same for both of cubes. It was pretty clear that operator Average didn't work at month level within cube "AVG_TEST", but using operator Sum.
    Could any one tell me why operator didn't work on the base level of hierarchy, instead of Sum? As I have a requirement to computing average value for day level, but can't add hour level to the dimension because of huge data quantity and the speed of maintaining cube. Is there a way to make operator Average work for the base level of hierarchy?
    Any help will be really appreciated!
    Satine

    Hey Brijesh,
    Thank you for your help!
    I am still confused with it. Even month is the leaf level of dimension, but the fact data is day level precision, not month, and the value at month level still should be computed with my specified operator Average, not Sum. I mean If it could be computed with Sum (actually the value at month level was sumed up data from fact table), then why couldn't with Average at the leaf level?
    My test code is from "Oracle OLAP 11g Sample Schema OLAPTRAIN", and data looks like,
    SQL> select * from sales_fact where to_char(day_Key,'yyyy-mm')='2005-04' and rownum=1;
      QUANTITY      PRICE      SALES DAY_KEY         PRODUCT    CHANNEL   CUSTOMER
             1        125        125 13-APR-05          5298         21     284846
    SQL> select day_key,month_id from times where rownum=1;
    DAY_KEY      MONTH_ID
    31-JAN-05    JAN2005Cube name is AVG_TEST, the fact data is from sales_fact.sales. From below, it is pretty clear the value at month level was sumed up data even specified Average operator.
    SQL> SELECT * FROM AVG_TEST_VIEW where time='APR2005';
           AVG TIME
    7849372.89 APR2005
    SQL> select sum(sales) from sales_fact where to_char(day_Key,'yyyy-mm')='2005-04';
    SUM(SALES)
    7849372.89Thanks
    Satine

  • How to derive new attributes from the levels of a hierarchy

    Hello,
    I have a hierarchy based on object XYZ where each level has a specific meaning, for example: Continent, Country, Region.
    I would like to create new attributes to this object XYZ that would be derived from the hierarchy levels.
    Can anyone provide some help?
    Thanks,
    Tom

    Hi.
    If I understand correctly you want to fill an attribute of XYZ with information on where in the hierarchy the particular XYZ-value is placed?
    If so, I guess you would want attributes on XYZ for each "thing" you derive from the hierarchy levels, but at any rate, you can look up the level each XYZ value belongs to in the H table so, /bic/Hxyz. Fx value 123 is on level 5 and you get the parent ID as well.
    Keep checking the parent ID and which level it is on in order to know when you have reach the next logical "thing" and then read the value of the node and put it as an attribute of XYZ.
    regards
    Jacob

Maybe you are looking for

  • Macbook pro not connecting wirelessly to HP officejet 8650 but other mac devices connect fine

    I have Verizon FIOS and I just upgraded my router to a new one that Verizon sent me in the mail. I changed the wifi password on all my devices after installing the router and they are all connected, however now my macbook pro won't connect to the wir

  • Do I need to update to iOS6 before I switch to my new iPhone?

    Hello! I have an iPhone 5 on its way to me, and I was wondering if I needed to upgrade my current iPhone 3GS to iOS6.   I obviously will want to migrate all of my data over to my new phone, and I wasn't sure if the two phones need to be running the s

  • Junkware/Adware in browser - how to remove

    Help!!  Have no idea how it got installed but in all my browsers (safari, firefox and chrome) today strange search engines pop up and and other adware pages randomly open. Have no idea how to get rid of them - its not extensions Any ideas?? Thanks iM

  • Possible to incorporate motools js into iWeb via HTML snippets?

    I have a pretty media rich site, with plenty of quicktime files. Unfortunately I don't like the iWeb/HTML standard of viewing Quicktime movies in the browser as it slows down page load times and/or requires a lot of unnecessary and redundant page bui

  • CVS "update" ignores new files in Repository ?

    Hi there. We are using CVS as versioning system with JDeveloper. But when doing a "update" from within JDeveloper (on a package or directory) it seems that new files existing in the repository (added and committed from a second computer) are be extra