MDX query for to get the data from two cubes
Hi
Can you tell me how to create MDX query to get the values from two cubes. (One hierarchy from first cube and one hierarchy from second cube)
Can you give me one example.
Regards,
Madhu.
Sudhan
Hi Sudhan,
According to your description, you want to retrieve data from two different cubes, right? The short answer is yes. To query multiple cubes from a single MDX statement use the LOOKUPCUBE function (you can't specify multiple cubes in your FROM statement).
The LOOKUPCUBE function will only work on cubes that utilize the same source database as the cube on which the MDX statement is running. For the detail information about it, please refer to the link below to see the blog.
Retrieving Data From Multiple Cubes in an MDX Query Using the Lookupcube Function
Regards,
Charlie Liao
TechNet Community Support
Similar Messages
-
Define a join in Webi Report which gets the data from two Excel files
Hello,
I have the following excel records as a source for my Webi Report:
Excel 1
Excel 2
Date
Month
Month
Year
Year
Total Number of Days
in Month
No. Of Exec
Functional
Area
Now I need to show No. of executions/Total Number of Days in Month per functional area (Where Month of Excel 1 is Month of Excel 2).
For this:
I have Merged, Month of Excel 1 and Month of Excel 2, Year of Excel 1 and Year of Excel 2.
Created a variable vNoofExec , No. of Exec/Total Number of Days in Month.
Created a graph, with Merged Month, Merged Year, vNoofExec with Region Color on 'Functional Area'.
But, it doesn't work.
If I replace vNoofExec with No. Of Exec I get the data, but not with vNoofExec.
Any Idea how we can get a solution for this?
Best regards,
Praveen.Hi Amit,
Thank you for your reply.
I tried putting them in a table to see if I am getting the value for vNoofExec but, no, I am not getting. Here is the dummy data for both the excels:
1. Excel 1:
Year
Month
Week
Date
No. Of Exec
Functional Area
2013
1
30
26
1
FA1
2013
2
21
20
12
FA2
2013
3
21
21
1
FA3
2013
4
21
22
5
FA4
2013
5
21
23
2
FA5
2. Excel 2:
Year
Month
TotalDays
2013
1
31
2013
2
28
2013
3
31
2013
4
30
2013
5
31
What I found is, if I create a measure like, [No. of Exec] where ([Functional Area]="FA1") and use this measure in the graph I am able to see the data even if I use Total Days in the Graph, but, I cannot create multiple measures like this because for me number of Functional Areas will be changing always. -
Can we get the data from two internal tables in ALV.
hi friends i would like to display the data using two internal tables using alv grid.please guide me.
Hi,
ALV would be having a specific layout say :
MATNR
MAKTX
QTY
Now, if you have two internal tables, then do they have a different structure. If they have different structures, then what kind of ALV layout you expect. The ALV output should be as per the structure of 1st or 2nd internal table.
If both internal table have same layout, then populate the data from 2nd internal table into 1st internal table and pass the 1st internal table ( it will have data of both internal tables) to ALV.
Best regards,
Prashant -
How to merge the data from two cubes into ODS?
Hi,
I wan to analyze the data of both the cubes by means of merging into an ODS.
And i want to have one of the characteristic is used as a key for the purpose which is existing in both the cubes
Cany nay one detail me of how this can be done?
Thanks,
RaviHi,
If it is very needful.
you can create the ODS object for each infocubes and map these ODS objects to target ODS object.
or, you can create the Export datasources from each infocube and map these to new target ODS object which is having all the char and KF of both the infocubes.
reg.
Vis -
How to get the data from pcl2 cluster for TCRT table.
Hi frndz,
How to get the data from pcl2 cluster for tcrt table for us payroll.
Thanks in advance.
Harisumanth.ChPL take a look at the sample Program EXAMPLE_PNP_GET_PAYROLL in your system. There are numerous other ways to read payroll results.. Pl use the search forum option & you sure will get a lot of hits..
~Suresh -
How Can we get the data from Non-SAP to SAP in WebDynpro
Hi,
I hope u understand my query, How can we get the data from Non-SAP to SAP thru WebDynpro Programming.
Help out with the steps for getting the data or procedure.
Regards,
MutyapuYou can expose the APIs in the Non-SAP backend as Web Services, and consume them in SAP by creating an Enterprise Proxy. Then these can be called just like normal class methods from Web Dynpro.
Regards,
Nithya -
Export is not exporting the data from Page. It always gets the data from VO
Hi,
I have got a critical issue, where I am Not able to export the current data from the page.
I have an export button and the VO is attached to it.
1) My page will execute the VO and I do some calculations to remove some rows, add the grand total etc.
2) The export button just re-executes the query and exports, which is not that, I want. I would like to export the current contents of the VO, which I manipulate and it is shown on the page.
To give an example -
My VO query is executed, when I click the Report button. I then adds Grand Total row to the VO and it gets displayed on the Page also.
Now, when I click the export button, it just exports the data which is coming from the VO SQL query, whereas I want the data from current state of VO i.e. with the grand total, which I added and is coming on the page also.
I will be really grateful, if someone can help me with this as it is really urgent.
Thanks for your help.
ShijuHi Shiju,
Is the export to csv opening fine with the data showing in individual columns when opening from internet explorer. What version of IE are you using? For us the export works fine from Firefox but does not work well in IE. From IE, the data shows with the commas in a single string. Appreciate your response as it will help us understand if our issue is local to our environment.
Thanks. -
How to get the data from a cluster table to BW
Dear All,
I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
In SE11 Transaction the Cluster (table ZES) is showing invalid table.
I referred some Forums, but no use.
Can any body tell me procedure to get the data from a cluster (table ZES) ?
Waiting for you results.
Thanks and regards
RajeshHI Siggi,
Thank you for your reply..
I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
How can I use the Fields from the that table.?
What can I do now, can you please explain me about this point.
Waiting for your reply.
Thanks and Regards
Rajesh
Message was edited by:
rajesh -
Unable to get the data from the stored procedure
Hello Folks,
I have this stored procedure and am trying to get the data from the table stage_bill but for some reason i am not sure its not pulling the data.Am a beginner in pl/sql Can any one please help to find out. I can give the code below.
create or replace procedure Load_FADM_Staging_Area_TEST(p_data_load_date date) is
-- local variables
v_start_date date;
v_end_date date;
-- cursor starting
CURSOR c_get_data
IS
SELECT
a.batch_id
,a.beginning_service_date
,a.bill_id
,a.bill_method
,a.bill_number
,a.bill_received_date
,a.bill_status
,a.bill_type
,a.change_oltp_by
,a.change_oltp_date
,a.client_datafeed_code
,a.client_id
,a.created_date
,a.date_of_incident
,a.date_paid
,a.deleted_oltp_by
,a.deleted_oltp_date
,a.duplicate_bill
,a.ending_service_date
,a.event_case_id
,a.event_id
,a.from_oltp_by
,a.oltp_bill_status
,a.review_status
,'HRI' schema_name
, sysdate Load_date
,'ETLPROCESS001' Load_user
,v_start_date as Row_Effective_Date
,null Row_End_date
from stage_bill a
where
--created_date >= to_date('20101031 235959', 'YYYYMMDD HH24MISS')
created_date >= v_start_date
and
--created_date <= to_date('20101111 235959', 'YYYYMMDD HH24MISS')
created_date <= v_end_date
and not exists
(select
b.batch_id
,b.beginning_service_date
,b.bill_id
,b.bill_method
,b.bill_number
,b.bill_received_date
,b.bill_status
,b.bill_type
,b.change_oltp_by
,b.change_oltp_date
,b.client_datafeed_code
,b.client_id
,b.created_date
,b.date_of_incident
,b.date_paid
,b.deleted_oltp_by
,b.deleted_oltp_date
,b.duplicate_bill
,b.ending_service_date
,b.event_case_id
,b.event_id
,b.from_oltp_by
,b.oltp_bill_status
,b.review_status,
b.schema_name,
b.Load_date,
b.Load_user,
b.Row_Effective_Date,
b.Row_End_Date
from STG_FADM_HRI_STAGE_BILL_TEST b)
-- cursor o/p variables
v_batch_id stage_bill.batch_id%TYPE;
v_beginning_service_date stage_bill.beginning_service_date%TYPE;
v_bill_id stage_bill.bill_id%TYPE;
v_bill_method stage_bill.bill_method%TYPE;
v_bill_number stage_bill.bill_number%TYPE;
v_bill_received_date stage_bill.bill_received_date%TYPE;
v_bill_status stage_bill.bill_status%TYPE;
v_bill_type stage_bill.bill_type%TYPE;
v_change_oltp_by stage_bill.change_oltp_by%TYPE;
v_change_oltp_date stage_bill.change_oltp_date%TYPE;
v_client_datafeed_code stage_bill.client_datafeed_code%TYPE;
v_client_id stage_bill.client_id%TYPE;
v_created_date stage_bill.created_date%TYPE;
v_date_of_incident stage_bill.date_of_incident%TYPE;
v_date_paid stage_bill.date_paid%TYPE;
v_deleted_oltp_by stage_bill.deleted_oltp_by%TYPE;
v_deleted_oltp_date stage_bill.deleted_oltp_date%TYPE;
v_duplicate_bill stage_bill.duplicate_bill%TYPE;
v_ending_service_date stage_bill.ending_service_date%TYPE;
v_event_case_id stage_bill.event_case_id%TYPE;
v_event_id stage_bill.event_id%TYPE;
v_from_oltp_by stage_bill.from_oltp_by%TYPE;
v_oltp_bill_status stage_bill.oltp_bill_status%TYPE;
v_review_status stage_bill.review_status%TYPE;
v_schema_name varchar(50);
v_Load_date date;
v_Load_user varchar(50);
v_Row_Effective_Date date;
v_Row_End_Date date;
Begin
if p_data_load_date is null then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date is not null then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
else
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;
-- cursor c_get_data loop begin
OPEN c_get_data;
LOOP -- cursor c_get_data loop begin
FETCH c_get_data
INTO
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
V_Row_Effective_Date,
v_Row_End_Date;
EXIT WHEN c_get_data%NOTFOUND;
insert into STG_FADM_HRI_STAGE_BILL_TEST
batch_id
,beginning_service_date
,bill_id
,bill_method
,bill_number
,bill_received_date
,bill_status
,bill_type
,change_oltp_by
,change_oltp_date
,client_datafeed_code
,client_id
,created_date
,date_of_incident
,date_paid
,deleted_oltp_by
,deleted_oltp_date
,duplicate_bill
,ending_service_date
,event_case_id
,event_id
,from_oltp_by
,oltp_bill_status
,review_status
,schema_name
,Load_date
,Load_user
,Row_Effective_Date
,Row_End_Date
values(
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
v_Row_Effective_Date,
v_Row_End_Date ) ;
COMMIT;
END LOOP;
CLOSE c_get_data;Maybe you need something else, like
CREATE OR REPLACE PROCEDURE load_fadm_staging_area_test (
p_data_load_date DATE
) IS
v_start_date DATE;
v_end_date DATE;
BEGIN
SELECT NVL (p_data_load_date, SYSDATE) - 7,
NVL (p_data_load_date, SYSDATE) - 1
INTO v_start_date,
v_end_date
FROM DUAL;
MERGE INTO stg_fadm_hri_stage_bill_test b
USING (SELECT *
FROM stage_bill
WHERE created_date BETWEEN v_start_date AND v_end_date) a
ON (b.bill_id = a.billl_id)
WHEN NOT MATCHED THEN
INSERT (batch_id,
beginning_service_date,
bill_id,
bill_method,
bill_number,
bill_received_date,
bill_status,
bill_type,
change_oltp_by,
change_oltp_date,
client_datafeed_code,
client_id,
created_date,
date_of_incident,
date_paid,
deleted_oltp_by,
deleted_oltp_date,
duplicate_bill,
ending_service_date,
event_case_id,
event_id,
from_oltp_by,
oltp_bill_status,
review_status,
schema_name,
load_date,
load_user,
row_effective_date,
row_end_date
VALUES (a.batch_id,
a.beginning_service_date,
a.bill_id,
a.bill_method,
a.bill_number,
a.bill_received_date,
a.bill_status,
a.bill_type,
a.change_oltp_by,
a.change_oltp_date,
a.client_datafeed_code,
a.client_id,
a.created_date,
a.date_of_incident,
a.date_paid,
a.deleted_oltp_by,
a.deleted_oltp_date,
a.duplicate_bill,
a.ending_service_date,
a.event_case_id,
a.event_id,
a.from_oltp_by,
a.oltp_bill_status,
a.review_status,
'HRI',
SYSDATE,
'ETLPROCESS001',
v_start_date,
NULL
END load_fadm_staging_area_test;Whenever you code a cursor and a loop, ask yourself. Do I need that?
Regards
Peter -
The problem here is i am not able to get the data from the list
hi all,
i have the following code
EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
enrichedProductCatalogue1.setAssetCount(2);
enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
enrichedProductCatalogue1.setBlockingReason("Compatability");
ArrayList<String> availableActionsList = new ArrayList<String>();
availableActionsList.add(EnrichedProductConstants.ADD.toString());
availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
BundleProduct bundleProduct = null;
Product product = new Product();
product = new Product();
product.setProductName("International");
product.setProductClassName("International");
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory);
bundleProduct = new BundleProduct();
bundleProduct.setCommercialProduct(product);
enrichedProductCatalogue1.setBundleProduct(bundleProduct);
listOfEnrichProducts.add(enrichedProductCatalogue1);
listOfEnrichProducts.add(enrichedProductCatalogue1);
here i have an list called listOfEnrichProducts.
here i am adding two objects of enrichedProductCatalogue.
which contains a object called BundleProduct.
which has a reference for Product class.
here this product class has a list which contains objects of another class called UiCategory.
the problem here is i am not able to get the data from the list which contains UiCategory objects .
the following is the UI
<af:table var="row" rowBandingInterval="0" id="t1"
value="#{pageFlowScope.sample1}"
binding="#{pageFlowScope.sampleManagedBean.dataTable}"
partialTriggers="apimethods ::apimethods">
<af:column sortable="false" headerText="ProductName" id="c2">
<af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
</af:column>
<af:column sortable="false" headerText="ProductClass" id="c12">
<af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
</af:column>
<!--
<af:column sortable="false" headerText="UICategoryName" id="c32">
<af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
<af:outputText value="#{item.categoryName}" id="ot119"/>
</af:forEach>
</af:column>
-->
<af:column sortable="false" headerText="AssetCount" id="c22">
<af:outputText value="#{row.assetCount}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="blockingReason" id="c3">
<af:outputText value="#{row.blockingReason}" id="ot2"/>
</af:column>
<af:column sortable="false" headerText="blockingProduct" id="c4">
<af:outputText value="#{row.blockingProduct}" id="ot3"/>
</af:column>
<!--<af:column sortable="false" headerText="availaibleActions" id="c1">
<af:commandButton text="#{row.availaibleActions}" id="cb1"
actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
partialSubmit="true">
<af:setPropertyListener from="#{row.availaibleActions}"
to="#{pageFlowScope.avalibleaction}" type="action"/>
</af:commandButton>
</af:column>-->
</af:table>
Can anyone pls give some solution ...Hi Frank,
value="#{pageFlowScope.sample1}"
here sample is
Map<String, Object> flowScope1 =
ADFContext.getCurrent().getPageFlowScope();
flowScope.put("sample1", listOfEnrichProducts);
this is not the problem . i am able to get all the values except the following .
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory); -
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/ -
I have a new ipad mini that I need to activate but I need to get the data from my old ipad 1 and install on the new mini. I have a itunes acct and also icloud acct. How do I back up the ipad 1 data and then activate the mini. I assume I will need to transfer the sim from the ipad 1 to the mini.
Thanks for any info
wino454How to Transfer Everything from an Old iPad to New iPad
http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
Cheers, Tom -
Get the data from a dbase file - .dbf.
Hello all - good morning working on Sunday :(. I am needing to get the data from old application which run the dbase program. Need to automatique the data getting. If you have any idea, please tell to me. Thanks to you, Nóra.
>
Hello all - good morning working on Sunday :(. I'm not even working - how sad is that :)
I am needing to get the data from old application
which run the dbase program. Need to automatique the data getting. If you have any idea, please
tell to me. Take a look here http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:711825134415.
It worked for me, with a bit of difficulty - mostly due to my own stupidity... if you have
any problems, post back.
HTH,
Paul...
Thanks to you, Nóra. -
I recently restored my iPhone 4s from back-up after being reset. An app that I had turned off in back-up did not show up in my recent resoration. I forgot to turn the app back on. Would there be any way I would be able to get the data from that app onto my phone? Is it possible to put an old back-up on my phone?
LukaPetranovic wrote:
Hello anita4323.
I hope this will help you with your problem:
Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
You can restore your backup whenever you want from iTunes or iCloud, depending where you made it.
Let us know if you succeeded or need any further help.
I believe you are missing the point. The OP has already restored from back up, but failed to include a specific app in the back up and is trying to recover data for it, which in this case is not possible. -
Using Iwork 09 I have spent several hours setting up a mail merge from a spread sheet in Numbers to create receipts for my customers from a Pages template.
After the merge I am left with one long Pages document that will not save as separate files; one per customer, it will only save the whole document of several receipts.
What is the easiest way to get the data from the mailmerge to form Pages files that can be saved separately?
Many thanks in advance.
RichardMr. Clark,
You will probably be more pleased with the iWork apps when you begin to learn your way around. Until you learn such basic things as how to print only one page of a document, you will probably continue to be disappointed.
Does your Print dialog look like this:
Or like this:
If it looks like the first one, then you will want to click this expander control:
Regards,
Jerry
Maybe you are looking for
-
Email Client Problem with HP Scan to Email Automator
Whenever I use the screen features on my HP Photosmart D110a printer and select scan to pc and then email PDF it opens HP scan just fine using the Email PDF Automator and the document scans perfectly but instead of being sent to Outlook 2011 it gets
-
Javamail html send partial message
hi, I have problem with javamail when I want send a html message, the received message is incomplete(I have more than 1000 characters). And this is not the end of the message that missed. Can you help me? Here is my code: MimeBodyPart mbp1 = new Mime
-
How do I open epub file. I have downloaded book. I'd like to read it.
I have a PC with windows 7. Purchased book from Barnes and Noble and downloaded in FireFox. I am clueless as to how to open it. I am able to open the sample in epub-catalog.
-
Un installing Concers with itunes
I have a lot of problems with Itunes Crashing and not responding. Specifically when I add movie content to the Library. I want to uninstall & reinstall the itunes software, but I have a concern that this will this affect - -My paired Ipod -My Apple T
-
Officejet 4630 printer won't print web page google chrome windows 3
HP 4630 officejet printer Google Chrome Browser Windows 8 I can't print web pages or selections from a Web Page directly. I have to copy and paste into Adobe or OneNote. Not using wireless--direct hookup. Is this normal? any info on steps I can take