MDX calculations using multiple hierarchies
In previous versions of BPC (easpecially earlier versions of v5.1) it was not possible to have an MDX calculation (like a KPI in the form of A/B) when account A was part of Hierarchy1 and account B was part of hierarchy2.
Do anyone of you have experience in newer version of 5 (like sp7 or 8) or v7 and know if this issue has been solved ?
The thing is, in v4 these type of calculations worked.....
But in the beginning of v5 it did not.
Edwin van Geel
Actually in this version you can specify the hierachy and it is recommended to that every time when you are writting an MDX formula.
I think it should work but I never tried to be honest.
Regards
Sorin Radulescu
Similar Messages
-
How to use multiple hierarchies for a single char in single query
Hi,
Is there any way that we can use multiple hierarchies for a single char in single query. I tried and it just allows me to select one hierarchy even if I use hierarchy variable.
I have a requirement where user wants to see information related to a cost center with different cost center groups in different hierarchies (every year has different cost center group hierarchies).
Suppose I want to see information related to a cost center from year 2001-2004.in these four year cost center may have been associated to different groups depending upon that year hierarchy. How can I do that?
Thanks
JonaNope. Now way to do this.
There is always just one hierarchy assigned to a characteristic. And even if the hierarchy was time dependent, it only reads it for one key date and not according to transaction data.
Regards,
Beat -
Calculation using multiple select statements - APEX 4.0
Hello,
I am new to APEX, PL/SQL and have some SQL knowledge, but I pick up things quickly. I want to make a page item equal to the value of a Select statement minus another Select statement. The statements pull from the same tables and only differ slightly in the where clause. I do not know the best way to create this calculation. Can someone please assist.
Select Statement #1
select sum(JE_TRANSACTIONS.DEBIT_AMOUNT) as "Release"
from "REVREC_FORMS" "REVREC_FORMS",
"JOURNAL_ENTRIES" "JOURNAL_ENTRIES",
"JE_TRANSACTIONS" "JE_TRANSACTIONS"
where "JOURNAL_ENTRIES"."RELATED_REVREC"="REVREC_FORMS"."REVREC_ID"
and "JOURNAL_ENTRIES"."RECORD_ID_"="JE_TRANSACTIONS"."RELATED_JOURNAL_ENTRY"
and "JOURNAL_ENTRIES"."RELEASE_TYPE" ='Release'
and "JOURNAL_ENTRIES"."REVENUE_TYPE" ='Software'
and "REVREC_FORMS"."REVREC_ID" =:P12_REVREC_ID
Select Statement #2
select sum(JE_TRANSACTIONS.DEBIT_AMOUNT) as "Deferral"
from "REVREC_FORMS" "REVREC_FORMS",
"JOURNAL_ENTRIES" "JOURNAL_ENTRIES",
"JE_TRANSACTIONS" "JE_TRANSACTIONS"
where "JOURNAL_ENTRIES"."RELATED_REVREC"="REVREC_FORMS"."REVREC_ID"
and "JOURNAL_ENTRIES"."RECORD_ID_"="JE_TRANSACTIONS"."RELATED_JOURNAL_ENTRY"
and "JOURNAL_ENTRIES"."RELEASE_TYPE" ='Deferral'
and "JOURNAL_ENTRIES"."REVENUE_TYPE" ='Software'
and "REVREC_FORMS"."REVREC_ID" =:P12_REVREC_IDHow about
select sum(decode(release_type,'Deferral',je_transactions.debit_amount)) - sum(decode(release_type,'Release',je_transactions.debit_amount)) as result
from "REVREC_FORMS" "REVREC_FORMS",
"JOURNAL_ENTRIES" "JOURNAL_ENTRIES",
"JE_TRANSACTIONS" "JE_TRANSACTIONS"
where "JOURNAL_ENTRIES"."RELATED_REVREC"="REVREC_FORMS"."REVREC_ID"
and "JOURNAL_ENTRIES"."RECORD_ID_"="JE_TRANSACTIONS"."RELATED_JOURNAL_ENTRY"
and "JOURNAL_ENTRIES"."REVENUE_TYPE" ='Software'
and "REVREC_FORMS"."REVREC_ID" =:P12_REVREC_IDScott -
How to use Multiple Product Hierarchies in Shopping Cart creation
Dear SRM Experts,
We have an issue in using multiple Product Hierarchies while creating a shopping cart. Need your help to resolve this.
Our SRM system is integrated with 2 ERP back-end systems. In material replication we have created 2 hierarchies for different ERPs and their product categories are stored in respective hierachies.
Example:
EBPMATCLAS is for ERP1
EBPSERVCAT is for ERP2
Now when I create shopping cart, it allows only those products which are part of EBPMATCLAS because of below configuration..
We cant configure multiple hierarchies for purchasing so we are not able to use both Hierarchies simultaneously.
Request you to help with the possible solution to use multiple hierarchies.
Thanks
RajanHi Rajan,
You not need to create 2 hierarchy ID. Inside the R3MATCLASS you can see the reference with both banckends.
Ex:
R3MATCLASSECCCLNT001
R3MATCLASSECCCLNT002
Rgs,
Pedro Marques -
How does Disco handle multiple hierarchies in dimension from OWB?
Hi,
I have a ROLAP cube developed with OWB. All the dimensions have only one hierarchy at the moment. I derive the EUL from this cube.
One of the dimensions now need another hierarchy. Does anyone know how Discoverer handles multiple hierarchies in a dimension? How would you be able to choose which hierachy to use in a Disco worksheet? Can you actually use multiple hierarchies or only the hierachy set as the default?
ThanksHi,
Yes, you can set up multiple hierarchies in Discoverer for the same EUL items. When you drill down you have the option to select which hierarchy you use.
Rod West -
Multiple hierarchies in Work Status settings
Hi,
I have datasouce dimension with more than one hierarchy and I need to set work status using multiple hierarchies but Work Status Settings in Admin console allow to specify only one hierarchy in Base Hierarchy.
A possible solution could be to create a new hierarchy that includes the others but I don't like.
Do you have any other idea?
I'm working on SAP BPC 10 MS
Many thanks
DinaHi Dina,
as per note 1339135 - How to set dimension hierarchy on work status settings
<If you set "Base Hierarchy" to 2 for a dimension has 3 hierarchies, you cannot set work status for members included in hierarchy 1 and 3 on BPC for Web. Only you can set work status for members of hierarchy 2.>
so I think the only solution is yours.
Regards
Roberto -
Help in creating MDX Calculated Member using attributes from multiple Dimension
Hi All,
First of all my knowledge on MDX is basic. In one of our projects, there is a requirement to create calculated member (similar to derived fields in SQL) which is more of a dimension attribute and not really a calculated member. Due to IP issues I cannot paste
the actual queries but I will provide an SQL Query equivalent to what I am trying to achieve:
Select P.Product, Case When ISNULL(FS.ArtistName,'') = '' Then P.ArtistName Else FS.ArtistName End Artist
From
dbo.FactMusicSales FS
Join dbo.dimProduct P
on P.DimProductKey = FS.DimProductKey
We are trying to replicate the logic for derving the "Artist" field using MDX script.
We are running into issues while trying to build an MDX expression using the above logic. The main issue being that the new field/member "Artist" would not be calculated unless its elements are selected (FS.ArtistName, P.ArtistName). Besides this
we are also unable to place this new member in a different folder other than a sub folder under the measures. Any pointers to solving this would be really helpful.
Thanks in Advance,
VenkiHi Venki,
According to your description, you need to create calculated member (similar to derived fields in SQL) which is more of a dimension attribute and not really a calculated member, right?
In your scenario, you needn't to achieve this requirement by using MDX. You can use a named query on your data source view. A named query is a SQL expression represented as a table. In a named query, you can specify an SQL expression to select rows and columns
returned from one or more tables in one or more data sources. So in you scenario, you can use your query on the DSV, and then use the modified table to create a dimension.
http://msdn.microsoft.com/en-IN/library/ms175683.aspx
Regards,
Charlie Liao
TechNet Community Support -
Using HLEVEL Property with Multiple Hierarchies
Hello,
I am trying to use the HLEVEL property on a dimension to indent the rows different amounts. Easy stuff, except I'm doing a row expansion on hierarchy 3 (H3). Using EVPRO(AppName, MemberID, "HLEVEL") always returns the HLEVEL from H1. If you select the same member ID in the member selector under different hierarchies and click the Properties button you can see a different value for HLEVEL, but I can't figure out how to get that in a report using EVPRO.
Is there a way to tell EVPRO specifically which hierarchy to use when returning the value for HLEVEL?
Thanks!
Paul Petersen
AkiliMike,
please check the answer in this other post:
EVPRO with multiple hierarchies
It's for the MS platform, but it's the same for Netweaver.
EVPRO can only retrieve the HLEVEL for the first hierarchy. You need to maintain further custom properties if you want to get the level of a member within multiple hierarchies.
Regards,
Simmaco -
Using HLEVEL with multiple hierarchies
Hi all,
Is there a way to pass a parameter to the HLEVEL keyword to specifiy which hierarchy (Parent H1,H2, H3, etc.) to use when pulling the HLEVEL?
We would like to use HLEVEL for report formatting however we need the ability to choose the hiearchy.
Thanks!
MikeMike,
please check the answer in this other post:
EVPRO with multiple hierarchies
It's for the MS platform, but it's the same for Netweaver.
EVPRO can only retrieve the HLEVEL for the first hierarchy. You need to maintain further custom properties if you want to get the level of a member within multiple hierarchies.
Regards,
Simmaco -
Multiple hierarchies single dimension single report
I am trying to add multiple hierarchies from a single dimension in a single report. To create the hierarchy in BI admin I followed the instructions found here
Oracle BI EE 10.1.3.3/2 &#8211; One Dimension &#8211; Multiple Hierarchies &laquo; Business Intelligence &am…
and here
https://forums.oracle.com/thread/2440305
My Patient hierarchy looks like the this
All Patients->Gender->Patient ID
All Patients->Age Group->Patient ID
When I drag and drop the second hierarchy in the Criteria Oracle BI Answers says the following "...you can only add one hierarchy per dimension to a report". I deduct that what I am trying to do is not possible!:-)
Q1: Is this feature indeed not supported or am I doing something wrong?
Q2: If this is not supported can someone explain why?
Version Oracle Business Intelligence 11.1.1.6.0a) Reporting across levels of 2 hierarchies is not supported. As explained below, you cannot use OLAP to get aggregate values at cross combination of levels from hierarchies: H1 and H2.
However if you wish to, you can report at the lowest level, Patient, common to both hierarchies and display the Age Group as well as Gender attributes corresponding to each patient. This becomes reporting at Patient/lowest level. You can of course use the capabilities of the reporting tool like obiee to use a Pivot object (say) and exclude Patient columns like Id, name etc. and get obiee to perform localized summaries within the reporting layer and get summarizations of interest. OBIEE Pivot measures allow for aggregation using Min, Max, Sum, Count, Running Sum etc. OLAP facilitates this solution but does not particularly help in the aggregation (since aggregation is now being done in obiee and not as per cube definition rules in olap aw). It acts as a source for information at the lowest level stored in the cube. Some performance degradation would result but it may be acceptable/manageable depending on the data volumes/report criteria.
NOTE: For workaround/solution, use the regular fields, not hierarchical columns, from OBIEE presentation layer.
b) Not supported: OLAP Cubes contain pre-calculated (or dynamically calculated) summaries at various level of each hierarchy. This aids in faster reporting performance. Allowing 2 hierarchies at the same time defeats this feature/goal. A cross combination of levels across different hierarchies requires a dynamic recalculation of the detail records to get the right values for, say, Age Group: 30-39 and Gender: Male. H1 summaries at AgeGroup level for Age Group: 30-39 cover all genders and cannot be split up into male/female w/o recalculation. Similarly H2 summaries at Gender level for Gender: Male cover all age groups. Splitting it up is not possible except via workaround/ solution explained in (a).
Hope that helps. -
Query selected levels of multiple hierarchies of one dimension
Hi to all.
I have created through AWM 11 a customer dimension with two hierarchies as follows.
SLM_HIER: All Customers -> Salesman -> Customer
GEO_HIER: All Customers -> State -> City -> Customer
I have also created a SALES_CUBE (measures: QUANTITY, VALUE, aggregation: SUM) that is dimensioned with Customer dim.
I'm using OBIEE to query the OLAP engine (through the relational views that AWM created automatically). I have followed the OTN OBE tutorials.
I would like to have the following query on the cube:
Give me QUANTITY where SALESMAN=S1 and CITY in ('Athens','Rome').
Is it possible to have such a query? As far as I understand there are no ready aggregated data for selected levels of both hierarchies.
Thank you very much.
ChrisI think OBIEE would also give you your answer from OLAP.
This query has filters defined from both the hierarchies and hence OBIEE would (should) automatically service this query from the highest common level b/w the hierarchies (in this case: base/leaf level - Customer). As a result of this, if CUST is your Customer dimension, OBIEE (at least, the older style of obiee modeling with olap) would introduce the security filter CUST_LEVEL = 'Customer'. Granularity of the resultset returned would be per individual Customer. 1 record per Customer satisfying the criteria SALESMAN='S1' and CITY in ('Athens','Rome').
Ideally you should include the Cust Id, Quantity columns in your obiee answers report and use an internal answers object/view like a Pivot View to hide Customer details column and get a localized aggregation performed over the resultset returned from OLAP to get the consolidated Quantity. Answers table has data at Customer level, Answers Pivot can show the required result.
Note1: The Cube cannot have this result pre-calculated since its a contradictory combination of filters across hierarchies. Level specific aggregate values calculated (or pre-calculated) in the cube for Salesman level (h1) would contain Customers from all cities (h2) and similarly City level (h2) Aggregates would contain Customers of all Salesmen (h1).
Note2: I believe OBIEE modeling with OLAP suffers from some issues relating to multiple hierarchies (e.g: if you have filter from non-default hierarchy CITY in ('Athens','Rome') alone, i think it would still fetch the results from lowest common level Customer instead of from City level directly).
HTH
Shankar -
How to use multiple data controls in a single JSF page
Hi,
I am using Essbase Data Control to in my project to get Essbase Cube data into ADF table/Pivot Table.
Suppose if [Item] dimension has this hierarchy [category] -> [Segment] -> [Brand] -> - [Item]
I need to display Category in one column and Segment in the next Column and [Brand] in the another column.
Different types of Category, Segment and Brands should display as table data(data values).
Using MDX query I can not print [Item] hierarchy in different columns..so I am planning to use multiple data controls.
Could any body help me to get the solution.Hi,
sounds like you want to try the Pivot table
http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e12418/tagdoc/dvt_pivotTable.html
I don't think that multiple Data Controls is the solution to the problem
Frank -
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
Andymultiple 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 -
Drill with multiple Hierarchies
Hi,
I have defined multiple hierarchies in an OLAP universe (like state>region>customer>product or state>region>customer segmentation>Product or state>region>product ...) in order to use the drill functionnality in webi.
In our scenario, each webi report should use only one hierarchy and we don't want the user to have the choice between the different hierarchies when he drills down. So is there a way to define in a webi report what hierarchy should be used?
Thanks,
Gabrielhi,
As 'State' object is the starting point for both the Hierarchies,
Please duplicate the state object and place it in other class. (as two objects with same name shouldn't exist in same class)
Now edit the second hierarchy such that new State Object will be the starting point.
Also , please ensure that 2nd WEBI report uses new State Object in Query Pane.
This will prevent 1st hierarchy in 2nd webi report.
I tried this out and it's working.
Regards,
Vamsee -
Multiple Hierarchies from Single Dimension Table in OBIEE-11g?
Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g?
Like 1)Year-Qtr-Month-Weeks 2)Year-Month-DaysHi,
or if your lowest level is the same like
Day->month->year->Total
Day->businessMonth->businessyear->Total
Then yes, it is.
Create the first, then you start to create the second by adding your top(business year) level on the same level as the one you have (year) both under your total.
Then when you would add your second base level, there is a special option for it, something like use other hierarchy level/shared level (sorry can't recall and does not have a connection right now) then you select your existing day level under your businessmonth level.
Hope this helps,
Regards,
D
Maybe you are looking for
-
I lose my internet connection on my XP computer when the printer is connected as wireless.
My new hp6510 wireless printer works great but I lose my internet connection when the printer is connected as wireless. I am using the printer with a linksys router E3000. The network has an XP computer , a win7 64 bit computer. I do not have a probl
-
Adobe reader 9 unable to print - please help
The printer works properly, but everytime time I try to print something off of Adobe Reader 9 while in PDF form it won't let me print. The error it gives me is Unable to print(window pops up, I hit okay or X it out) then another pops up saying, There
-
Friends, We are not able to do Implicit Personalization for MSS iViews/Pages .When we open the iView in preview mode and set the property of a field to invisble mode then click apply and OK the filed gets hidded.But when we open or refresh that iVie
-
Hi, The trash is refusing to empty a couple of font packages, saying that they are locked. But 'Get Info' shows them not to be locked. I own permissions for the Mac. Solutions most welcome! newomary
-
[svn] 3060: integrate:
Revision: 3060 Author: [email protected] Date: 2008-09-02 11:06:53 -0700 (Tue, 02 Sep 2008) Log Message: integrate: vellum build 157 (8/25) player build 584 Modified Paths: flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc flex/sdk/trunk/fram