Join two cubes
Hi all,
I want to join two cubes, this cubes have two columns to do the join. They don't have any common dimensions. How can I do this?? I've tried it by joining them in the business model Area but it doesn't work how I want because if I only use dimensions or measures from one cube it uses both of them. And also, when I use both cubes, the first it does in the query is the join between them instead of applying the filters...
I need help
It looks like joins are interpreted in different manner when you join cubes. Check this link and see if its helpful..
http://help.sap.com/saphelp_nw04s/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/ab/7a877cba29144b85d07f26f1f50cd8/content.htm
Abhijit
Similar Messages
-
Is it possible to realize join two cubes in BW?
how?Hi,
no, unfortunately this is not possible. The only thing you can do is to create a multi provider based on your two cubes and map the corresponding fields, but this is not a join, it is a union.
regards
Siggi
PS: May be, you load your cubes from ods objects. If yes, you can create a infoset on the ods object and do a join. Additionally you can post the cubes data to newly created ods object and create the infoset on them.
Message was edited by: Siegfried Szameitat -
What are prerequisites for joining two essbase cubes
Hi,
Please explain us the could we able to join essbase cubes. What is the approach in three layers of the rpd. We are struggling since long to join two essbase cubes.
Regards,
Chandra kanthYou can create a third cube and partition those two cubes. This will let you view both the cube from the third cube seamlessly.
Please look this up.
Oracle Essbase Database Administrator's Guide
-Biraj -
We need to query on two cubes
A and B
We need to get Number of operation from second cube (B) based on two conditions (One for numerator and one for Denominator) and then calculate the percentage of those two values.
The Numerator is based on condition that Notification Type (This is part of first cube A) = N1, N2 + Control Key (This is part of second cube) = EVAL
The denominator is based on condition Notification Type (This is part of first cube) = N1, N2.
The common Field in cube is Order Id.
We are not able to get this in one query as the condition for numerator is based on two cubes.
Kindly help how to do it. Basically it is a join between two cubes where the fields of one field are only used in the conditions of Query.Hi Varun,
have you tried to define a multiprovider above your both cubes. Take the two keyfigures you need in the multiprovider and define your characteristics. Multiprovider is basically a join between two cubes. ut then you have to move your query to this multiprovider. Use ta rszc.
Hope it helps
Juergen -
Problem encountered when join two remote tables in a materialized view
I'm using oracle 9.2.0.6
1> I have two tables:
CREATE TABLE TEST
A VARCHAR2(100 BYTE),
C DATE
CREATE TABLE TEST1
A VARCHAR2(100 BYTE),
B TIMESTAMP
2>. I defined a prebuild table:
CREATE TABLE MV_TEST1
ID1 ROWID,
A VARCHAR2(100 BYTE),
ID2 ROWID,
B TIMESTAMP(6),
C DATE
3> I created mview logs:
CREATE MATERIALIZED VIEW LOG ON PSI_TEST.TEST
WITH ROWID
INCLUDING NEW VALUES;
CREATE MATERIALIZED VIEW LOG ON PSI_TEST.TEST1
WITH ROWID
INCLUDING NEW VALUES;
4> when I create mview:
CREATE MATERIALIZED VIEW PSI_TEST.MV_TEST1
ON PREBUILT TABLE WITH REDUCED PRECISION
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
AS
select
test.rowid id1,
test.a,
test1.rowid id2,
test1.b,
cast(null as date) c
from test , test1
where test.a = test1.a(+);
It is created successfully.
5> problem:
when I use remote tables to do the same thing, say test and test1 are in another instance and are connected by a dbLink, I couldn't create the mview successfully:
CREATE MATERIALIZED VIEW PSI_TEST.MV_TEST1
ON PREBUILT TABLE WITH REDUCED PRECISION
REFRESH FAST ON DEMAND
WITH PRIMARY KEY
AS
select
a.rowid id1,
a.a,
b.rowid id2,
b.b,
cast(null as date) c
from test@dbl a, test1@dbl b
where a.a = b.a(+);
when run above statement, I got:
ORA-12015: cannot create a fast refresh materialized view from a complex query
Any ideas? Or joining two table through a dblink for a mview is not allowed at all?
Thanks in advance.No one has a clue?
Message was edited by:
lzhwxy -
In BI7 Linking fields of two cubes of a multiprovider in BEx
There are two cubes in a multiprovider, only one field of these two cubes (SORTL in first cube and ACCOUNT ID in other cube )contain same values based on these two fields.
Q: how we can combine link these two cubes in BEx Reporting side so that the Corrosponding output come in same line
Example:for characteristic Customer Name in 1st cube how we can get corrosponding value for key figure Total Revenue from other cube using characteristic SORTL in 1st cube and characteristic ACCOUNT ID of second cube,(i.e. similar to the way we link two cubes through a commom field in BACKEND using INFOSET)Amit,
Please indicate the fields in cube 1 and 2 clearly and also you would have to use restricted KF for a cross model reporting scenario.
Arun -
I am trying to develop a query in MS Access 2010 to join two tables using three joins, one of which is a (between) date range. The tables are contained in Access. The reason
the tables are contained in access because they are imported from different ODBC warehouses and the data is formatted for uniformity. I believe this cannot be developed using MS Visual Query Designer. I think writing a query in SQL would be suiting this project.
ABCPART links to XYZPART. ABCSERIAL links to XYZSERIAL. ABCDATE links to (between) XYZDATE1 and ZYZDATE2.
[ABCTABLE]
ABCORDER
ABCPART
ABCSERIAL
ABCDATE
[ZYXTABLE]
XYZORDER
XYZPART
XYZSERIAL
XYZDATE1
XYZDATE2Thank you for the looking at the post. The actual table names are rather ambiguous. I renamed them so it would make more sense. I will explain more and give the actual names. What I do not have is the actual data in the table. That is something I don't have
on this computer. There are no "Null" fields in either of the tables.
This table has many orders (MSORDER) that need to match one order (GLORDER) in GLORDR. This is based on MSPART joined to GLPART, MSSERIAL joined to GLSERIAL, and MSOPNDATE joined if it falls between GLSTARTDATE and GLENDDATE.
[MSORDR]
MSORDER
MSPART
MSSERIAL
MSOPNDATE
11111111
4444444
55555
2/4/2015
22222222
6666666
11111
1/6/2015
33333333
6666666
11111
3/5/2015
This table has one order for every part number and every serial number.
[GLORDR]
GLORDER
GLPART
GLSERIAL
GLSTARTDATE
GLENDDATE
ABC11111
444444
55555
1/2/2015
4/4/2015
ABC22222
666666
11111
1/5/2015
4/10/2015
AAA11111
555555
22222
3/2/2015
4/10/2015
Post Query table
GLORDER
MSORDER
GLSTARTDATE
GLENDDATE
MSOPNDATE
ABC11111
11111111
1/2/2015
4/4/2015
2/4/2015
ABC22222
22222222
1/5/2015
4/10/2015
1/6/2015
ABC22222
33333333
1/5/2015
4/10/2015
3/5/2015
This is the SQL minus the between date join.
SELECT GLORDR.GLORDER, MSORDR.MSORDER, GLORDR.GLSTARTDATE, GLORDR.GLENDDATE, MSORDR.MSOPNDATE
FROM GLORDR INNER JOIN MSORDR ON (GLORDR.GLSERIAL = MSORDR.MSSERIAL) AND (GLORDR.GLPART = MSORDR.MSPART); -
We have tried joining two DSO's and are getting the warning that "more than one datasource has been used in this report". It appears that the DSO driver does not support joins. The report runs but it is VERY slow, the same sort of performance you get when you try to join data from two datasources that are actually different (like two different SQL Server databases or an Oracle table joined to a SQL Server table). It appears that this is not a supported function with the DSO driver. Any thoughts?
Yes, we have created the joins between the two DSOs. We are looking into using the Open SQL driver to go against the base tables to see if that will work. This is how the original ODS driver used to work.
Update: After changing the join type to a left outer join the performance improved signficantly. Although not ideal it looks like it will be fine for our requirements. This particular report will be run monthly and scheduled to run overnight.
Edited by: Mike Garrett on Oct 27, 2009 4:28 PM -
Two Cube dimensions with the same name.
Hi
If I have a cube dimension that has the same name as another cube dimension, will this be an issue when quering the cube through 1) Excel 2) SSRS or Cognos Reports?
For instance: The Database dimension DimOrganization exists in cube A as well as
DimOrganization_Dep. Both dimension has the same attribute names and the same hierarchy names.
Their database names are different. (object_ID and Object_name differs)
In the cube I change the name of DimOrganization_Dep to DimOrganization.
This seem to work when I query the cube in Excel, the mdx looks like this;
SELECT NON EMPTY { [Measures].[AntalNotNull] } ON COLUMNS, NON EMPTY { ([Dim Organization].[Yes- No].[ Yes- No].ALLMEMBERS * [Dim Organization].[Yes- No].[Yes- No].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME
ON ROWS FROM [TEST] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
Anyone knows if this kind of setup will result in problems when quering from SSRS reports or Cognos?
And/or if even though I get it right in the cube (quering from Excel) it might as well give me the wrong result the next time?
Cheers
/MartinHi
Thanks for the reply.
I have tried and yes I can change then cube dimension namn to that of another cube dimension.
For instance if i have Cube Dimension "DimA" and "DimB" to begin with , then I change the name of the cube dimension "DimB" to "DimA". So now I have two Cube dimensions with the same name.
It works to deploy and process and Excel somehow understands which one is which.
Both is present in the same cube as you can see from the MDX above.
The tricky part is how does the mdx return the correct result when the mdx looks like this (and it dpoes return the correct result).?
Cheers
/Martin -
Hi Sir/ Madam,
My name is Rishav and I am facing some problem with my Photoshop CC. Actually I have a question. If you guys could help me out i will be very obliged. The quest in "Can you please help me by saying me how can i join two different picture to make it as one picture.??"Maybe you should post over at
Photoshop for Beginners
or start with the "Get Started" section of the Help:
Photoshop Help | Photoshop Help
And your question
Can you please help me by saying me how can i join two different picture to make it as one picture.??
does not seem particularly specific – do you want to simply combine two images as they are, do you want to clip elements from the one and insert them into the other, …?
Could you post (lores of) the images and explain what you intend to achieve? -
Using a view to join two tables
Thank you in advance for any advice you can lend.
I am using this code in my MySQL db to create a view.
select
job.id as job_id,
umr_cost_calculation.plant_name,
max(umr_cost_calculation.id) as max_id
from
job,
umr_cost_calculation
where
job.id = umr_cost_calculation.job_id
group by job.id , umr_cost_calculation.plant_name
I did this so I can join two tables and pull in the most current cost data for a specific plant. The report will, at times, show the wrong (older) data. I can re-run the report, filter to just the one job and see again the wrong data. When I add the max_id to the report, it display the id and updates the report with the correct data. It appears that the view was stale and by adding the ID to the report this fixed the issue.
1) Is this the best way to make this join? I don't see how Crystal supports a subquery to make a join (this is why I used the view).
2) If I leave the max_id on the report, will this force the view to always update?Try:
Select
D1.EmpLoginID,
Count(D1.ID),
Count(D1.AlarmCode),
D1.EmpName,
D1.EmpAddress,
D2.Db2Count
FROM DB1.Data D1
LEFT JOIN (SELECT
empLoginID, Count(*) as Db2Count
FROM DB2.ALL_Database
WHERE site = 'Atlanta'
GROUP BY empLoginID
) D2
ON D1.EmpLoginID = D2.EmpLoginID
GROUP BY D1.empLoginID, D1.EmpName, D2.EmpAddress, D2.Db2Count
Order BY D1.empLoginID ASC
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
Error while generating report by fragmenting two cubes.
I have two Essbase cubes 'bas_reg'(current) and 'basreg09'(history) combined them into one in BMM layer by fragmentation based on Quarter of the Year. This two cubes have 3 unconfirmed dimensions . But for this report i am using the all fields from fact or confirmed dimensions. When i tried to create report i am getting following error. OBIEE is 10.1.3.4.1 and Essbase 9.3.1.
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14023] None of the fact sources for PD_Band.Gen3,PD_Band are compatible with the detail filter [Time.Gen3,Time = '2009 Qtr4', DepInst.Gen2,DepInst = 'DI_CWFN' ]. (HY000)
Regards
Sandeep ArthamHi Arpit,
As well as setting the macro security to Medium or lower, you need to tick the options 'Trust all installed add-ins and templates' and 'Trust access to Visual Basic Projects'. These options appear at the bottom of the Trusted Publishers tab in the Macro Security window.
Hope this helps,
Owen -
Reg: To automate deletion of data in two cubes at a time
Hi,
I want to automate deletion of two cubes at a time using abap code. The selection criteria will be same for both the cubes.
Will it be possible to do?
Please help.
Regards,
Sameer.HI,
please see the below link
How can we automate the process of selective deletion in process chain
and there is a good PDF document is there on this
https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/603a9558-0af1-2b10-86a3-c685c60071bc#rating
thansk & Regards,
Sathish -
DataType conflict in the R/3 when joining two tables
Hi Experts,
I have created a view with two table in the R/3 side by joining two common fields,but one of the field is getting error with different data type, so could any one suggest me how to resolve this issue without changing type.
Thanks,
VenugopalHi
Actually I have to pull one of the field from one table and place in other table and create a generic data source on it,Can any one suggest me with any solution or exists to solve this issue.
Thanks,
Venugopal -
How do you join two tables from different Oracle schemas using a subquery
I am trying to join two tables from different Oracle schemas using a subquery. I can extract data from each of the tables without a problem. However, when I combine the select statements using a subquery I get the Oracle error *'ORA-00936: missing expression'*. Since each SELECT statement executes on its own without error I don't understand what is missing. The result set I am trying to get is to match up the LINE_ID from PDTABLE_12_1 in schema DD_12809 with the MAT_DESCRIPTION from table PDTABLE_201 in schema RA_12809.
The query is as follows:
sql = "SELECT [DD_12809].[PDTABLE_12_1].LINE_ID FROM [DD_12809].[PDTABLE_12_1] JOIN " _
+ "(SELECT [RA_12809].[PDTABLE_201].MAT_DESCRIPTION " _
+ "FROM [RA_12809].[PDTABLE_201]) AS FAB " _
+ "ON [DD_12809].[PDTABLE_12_1].PIPING_MATER_CLASS = FAB.PIPING_MATER_CLASS"
The format of the query is copied from a SQL programming manual.
I also tried executing the query using a straight JOIN on the two tables but got the same results. Any insight would be helpful. Thanks!
Edited by: user11338343 on Oct 19, 2009 6:55 AMI believe you are receiving the error because you are trying to JOIN on a column that doesn't exist. For example you are trying to join on FAB.PIPING_MATER_CLASS but that column does not exist in the subquery.
If you want to do a straight join without a subquery you could do the following
SELECT DD_12809.PDTABLE_12_1.LINE_ID
, FAB.MAT_DESCRIPTION
FROM DD_12809.PDTABLE_12_1
JOIN RA_12809.PDTABLE_201 AS FAB ON DD_12809.PDTABLE_12_1.PIPING_MATER_CLASS = FAB.PIPING_MATER_CLASS HTH!
Maybe you are looking for
-
E-mail and Internet Service stopped working and I cannot get it going again - Pearl 8130
I recently activated e-mail and a data package (December 12th to be exact). On Saturday I noticed that I stopped receiving e-mails from my Hotmail, and as of today I'm receiving any e-mails from my work e-mail either. It worked 100% normally up to th
-
In our Travel and expenses implementation of ESS, The display trip shows up in HTML. I was wondering how/if we can show up the form in pdf instead. Thanks.
-
Unable to settle PM work order
Hi, We have done settlement for a PM work order successfully with transaction KO8G. But still it shows in the open settlement list -Transaction s_alr_87013127. Please advice. Regards, Pratap
-
I have Studio 8 on my computer ( MS windows xp sp2). I uninstalled all of the programs, through the control panel, in preparation to installing CS3 Web Premium . The control panel indicated that the program was uninstalled but when I checked Windows
-
TS1538 Ipod Update to iOs 5.1.1
i jsut upadated my ipod to ios 5.1.1 when i try and click on something or move the pages it shows squares around the word or shape and i have to click 3 times on it and sometimes it doesnt even respond when I do that. and it freezes and i am froced