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

Get Fabric Certified for FREE during Fabric Data Days. 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.