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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
schwinnen
Helper V
Helper V

Using Parameters with Dataflows

Currently, I get data from postgresql.  I connect to data from two different databases, test and production.  My current process is to create on report.  Within that report, I have a parameter that specifies the database I want to connect to.  I set the parameter to production, load the data and publish to my production workspace.  I change the parameter to test, load the data and publish to my test workspace. 

I am now trying to utilize dataflows and wondering if there is way to do this and still achieve what I am currently doing with the parameters.  I can create two dataflows with identical structures - one with test data and one with production, but I don't see how to toggle between these in Power BI Desktop like I do with the parameters.  I also see that you can create parameters in the dataflow like I do in Desktop, but I don't see at all how this is useful.  

Any help is appreciated.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Have you looked at this?
https://powerpivotpro.com/2019/04/power-query-magic-parameters-for-dataflows/


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Have you looked at this?
https://powerpivotpro.com/2019/04/power-query-magic-parameters-for-dataflows/


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Would you happen to know if there is a way to parameterize the frase "Source = PowerPlatform.Dataflows(null)," in Power Query for Power BI Desktop?

I did now.  It is pretty confusing in my opinion.  Prior to posting my question, I did a quick internet search and didn't see much.  But maybe I'll dig a little deeper and see if there's someone who explains the process a little better.

@Greg_Deckler - I think the link below has a better solution.   This was a link included in the article you sent me to.  So, in a way, your solution worked for me.  

 

https://data-marc.com/2019/04/16/pimp-the-dataflows-connector-in-power-bi/

A bit round-about but glad you got it! I will have to take a look at your link and see what they did! Thanks for sharing! 🙂


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.