cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Memphis_JW
Regular Visitor

Two queries, one table. How to switch between the two

I have a workbook with one table with the data source coming from a query (DataPull1). I want to know how to switch and run a second query and replace the data with data from the newly activated one (DataPull2).

I do not want a second table unless it is placed in the exact same location.

 

I did it accidently once but, cant seem to find out how to do it intentionally.

 

(Note: If possible, I plan to record the steps and do the steps and  record a macro to switch between 1 and 2 so that I can run either at the click of a button)

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Memphis_JW ,

 

You can create a parameter for this for changing data source dynamically. Please kindly refer to

Change the Data Source dynamically in Power BI using Parameters - SqlSkull

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Memphis_JW ,

 

You can create a parameter for this for changing data source dynamically. Please kindly refer to

Change the Data Source dynamically in Power BI using Parameters - SqlSkull

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors