Forum Discussion
sahubibhuti45
Helper I
1 year agoOracle SP calling with date parameter in Power BI Desktop.
Hi Team, I wanted to call an Oracle Stored Procedure with date parameter input from my desktop, can anyone help in here. Thanks
- 1 year ago
In Power BI Desktop you can call an Oracle Stored Procedure with a date parameter using a query like this:
EXEC MyPackage.MyProcedure(TO_DATE('2024-01-01','YYYY-MM-DD'))Steps:
-
Get Data >> Oracle database.
-
In the SQL statement box, paste your EXEC command.
-
To make the date dynamic, create a Power Query parameter (Manage Parameters >> type Date) and replace the hardcoded date with:
EXEC MyPackage.MyProcedure(TO_DATE(' " & Date.ToText(ParameterDate,"yyyy-MM-dd") & " ','YYYY-MM-DD'))This way you can pass a date parameter from Power BI into your Oracle SP.
https://learn.microsoft.com/en-in/power-query/power-query-query-parameters
-
Anonymous
11 months agoNot applicable
Hi sahubibhuti45
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Thank you.