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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors