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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.