Forum Discussion
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.
Can anyone say me if it is the best way to deploy from Dev to Prod workspace ?
Thanks in advance,
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
3 Replies
- GabrySuper 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
- RandcharlesHelper I
Ok thank you.
It works well with parameters.
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 ?- GabrySuper User
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