PowerPivot with Oracle Functions (Excel 2010)

ss_2014

New Member
Joined
Jun 23, 2014
Messages
4
Hi All,
I have a requirement of building reports using Oracle functions in PowerPivot.
My Oracle functions are like below:
CREATE OR REPLACE TYPE <DATABASENAME>.obj_Inactive_Cases
AS OBJECT
(
STATUS VARCHAR2(30),
SUB_STATUS VARCHAR2(30),
CNT NUMBER(12)
)
/

CREATE OR REPLACE TYPE <DATABASENAME>.tbl_Inactive_Cases
AS TABLE OF obj_Inactive_Cases
/

/* ----------------------------------------
Object and Type for Report -
FUNCTION getInactiveCases(
RegisteredDateFrom VARCHAR2,
RegisteredDateTo VARCHAR2)
RETURN tbl_Inactive_Cases
---------------------------------------- */
FUNCTION getInactiveCases(
RegisteredDateFrom VARCHAR2,
RegisteredDateTo VARCHAR2)
RETURN tbl_Inactive_Cases
IS

INACTIVE_CASES_TBL tbl_Inactive_Cases := tbl_Inactive_Cases();

CURSOR INACTIVE_CASES_CUR IS
SELECT TBL1.STATUS
,TBL1.SUB_STATUS
,COUNT(*) CNT
FROM (
SELECT TBL.RECORD_ID, MAX(WCS.ID) ID
FROM <DATABASENAME>.TABLE_STATUS TBL
WHERE TRUNC(TBL.START_DT) >= TO_DATE(RegisteredDateFrom,'dd/MM/yyyy')
AND TRUNC(TBL.START_DT) <= TO_DATE(RegisteredDateTo,'dd/MM/yyyy')
GROUP BY TBL.RECORD_ID
) QueryResult
LEFT JOIN <DATABASENAME>.TABLE_STATUS TBL1 ON (QueryResult.ID = TBL1.ID)
GROUP BY TBL1.STATUS, TBL1.SUB_STATUS;

BEGIN
FOR INACTIVE_CASES_REC IN INACTIVE_CASES_CUR
LOOP
INACTIVE_CASES_TBL.EXTEND;
INACTIVE_CASES_TBL(INACTIVE_CASES_TBL.LAST) := obj_Inactive_Cases(INACTIVE_CASES_REC.STATUS, INACTIVE_CASES_REC.SUB_STATUS, INACTIVE_CASES_REC.CNT);
END LOOP;
RETURN INACTIVE_CASES_TBL;

-- End function
END getInactiveCases;

I have tried using Table Import Wizard and Command Type=StoredProcedure in th ePowerPivot.
Any help will be appreciated.
Thanks and Regards,
SS
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Upvote 0
Ya, that looks like the same thread I posted, and it looks... unhappy for you. :( I know very little about Oracle, so can't really help out. You might see if Power Query helps you at all though? Otherwise you are probably looking at exporting from Oracle to CSV, then important that into Power Pivot.
 
Upvote 0
Thanks a lot Scott.

Sorry I am very new to this Oracle plus PowerPivot functionality. Can you please help me in providing steps to do above mentioned thing? We actually deploy all powerpivot data to the SharePoint site to generate Power Views. I am not sure how to import data into PowerPivot using Oracle functions.

Need urgent help as we have to provide approach to the client ASAP
 
Upvote 0

Similar threads

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top