To call a BigQuery stored procedure with a dynamic date parameter from Power BI, you can follow these steps:
-
Set up BigQuery Connector in Power BI:
-
In Power BI Desktop, go to Home > Get Data > More.
-
Choose Google BigQuery and sign in with your Google account.
-
Select the appropriate project and dataset, and then connect to BigQuery.
-
Create a Custom Query:
-
After connecting to BigQuery, choose Advanced options and use a custom SQL query to call your stored procedure.
-
For example, you can pass the dynamic date as a parameter in the query like this:
CALL `project_id.dataset_id.procedure_name`(@dynamic_date);
CALL `project_id.dataset_id.procedure_name`(@DynamicDate);
Refresh the Query: