How do I call a BigQuery stored procedure with a parameter from Power BI and pass a date dynamically

0 votes

How do I call a BigQuery stored procedure with a parameter from Power BI and pass a date dynamically?

I need to call a BigQuery stored procedure from Power BI and pass a dynamic date parameter, and I’m looking for guidance on how to set this up correctly.

7 hours ago in Power BI by Evanjalin
• 36,180 points
4 views

1 answer to this question.

0 votes

To call a BigQuery stored procedure with a dynamic date parameter from Power BI, you can follow these steps:

  1. 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.

  2. 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);
  • Create a Parameter in Power BI:

    • Go to Modeling > New Parameter and create a date parameter (e.g., DynamicDate).

    • You can set the default date or make it a user-input parameter for dynamic selection.

  • Update the SQL Query to Use the Parameter:

    • Replace the static date in your SQL query with the dynamic parameter. Power BI will automatically substitute the parameter value when executing the query.

CALL `project_id.dataset_id.procedure_name`(@DynamicDate);

Refresh the Query:

  • After setting everything up, clicking Refresh will pass the dynamic date parameter to your BigQuery stored procedure, running the query with the selected date.

answered 7 hours ago by anonymous
• 36,180 points

Related Questions In Power BI

0 votes
1 answer

I have a web API with basic authorisation and username and password. How do i connect to it in Power BI?

Hey, @There, I found your query is quite ...READ MORE

answered Oct 29, 2020 in Power BI by Gitika
• 65,730 points
4,289 views
0 votes
2 answers

How do I create a Power BI visual that dynamically adjusts based on user-selected filters and slicers?

The application of slicers and filters in ...READ MORE

answered Jan 23 in Power BI by anonymous
• 24,450 points
371 views
0 votes
1 answer

How can I troubleshoot a scenario where Power BI loads data with wrong formats or encoding from a CSV file?

Troubleshoot Incorrect Formats or Encoding with CSV ...READ MORE

answered Dec 30, 2024 in Power BI by Vani
• 3,580 points

edited Mar 6 468 views
+1 vote
1 answer
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,090 points
1,805 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,090 points
3,171 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,520 points
1,973 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Open power bi report nd sign in ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited Mar 5 2,174 views
0 votes
1 answer

How do I create a paginated report with an interactive drill-through from a Power BI dashboard?

These are the steps to establish a ...READ MORE

answered Mar 19 in Power BI by anonymous
• 36,180 points
213 views
+1 vote
1 answer

How do I prevent my app from redirecting to Power BI when embedding a protected report in a React application?

To ensure that your React app will ...READ MORE

answered Feb 28 in Power BI by anonymous
• 36,180 points
228 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP