Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Randcharles
Helper I
Helper I

How to use parameter using dataflow as data source in Power BI desktop

Hi all, 

I have some queries referred to Dev Dataflow in Power BI. 
I would like to deploy my report to PROD environment, so I need to refer my queries to Prod Dataflow. 
I think about using parameter in Power BI desktop to handle the change of worskpace ID an Dataflow ID from Dev to Prod.

Randcharles_1-1722846638311.png

 


Can anyone say me if it is the best way to deploy from Dev to Prod workspace ? 

Randcharles_0-1722846568033.png

Thanks in advance,


1 ACCEPTED SOLUTION

With deployment pipelines, when you distribute your items across workspaces you can change the datasource. Also you can change the parameters so it's pretty the same but you don't need to do it manually on the desktop.

You just set the rule and when you transfer the report from test to prod it automatically change the datasource.

Check the link provided for all the info

View solution in original post

3 REPLIES 3
Gabry
Super User
Super User

Hello,

as I see in your M code you are still not using the parameters.

Anyway I think that solution is good.

 

If you are using premium workspace you could also use deployment pipeline Deployment pipelines 

Ok thank you.
It works well with parameters.

Randcharles_0-1722850069369.png

 


Just a question for deployment pipeline, If I choose this option, so Don't I need to use parameter ?
Is the report will be refered to the Prod dataflow automatically without configuring it manually ?

With deployment pipelines, when you distribute your items across workspaces you can change the datasource. Also you can change the parameters so it's pretty the same but you don't need to do it manually on the desktop.

You just set the rule and when you transfer the report from test to prod it automatically change the datasource.

Check the link provided for all the info

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors