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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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/

@ 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!:
The Definitive Guide to Power Query (M)

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/

@ 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!:
The Definitive Guide to Power Query (M)

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! 🙂

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors