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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
tjravi2828
Frequent Visitor

Trying to setup parameters in Power BI dataflows

I am trying to setup parameters (for Azure Databricks Datasource DEV, TEST & PROD) in dataflows in Power BI Service. They are not visible under Dataset/Semantic Model settings. What am I missing here? Please refer screenshots.

parameters.JPG

Code.JPG

Error.JPG

3 REPLIES 3
tjravi2828
Frequent Visitor

How do I do that? M-query does not show the dataflow name to replace it with parameter.

tjravi2828_0-1704721770842.png

Hi @tjravi2828 

It is not the Dataflow that you need to parameterize. it is the entity.

aj1973_0-1704725219564.png

 

These are the "Entities" of a Dataflow

aj1973_1-1704725298844.png

 

So let's you create a Dataflow in a Workspace. In the Dataflow you will add one entity for each server or environment (Dev, Test, Prod). When you Get Data in your desktop to build your dataset, In Power Query you create parameters for each Entity.

 

In your case where you have 3 Workspaces (Dev,Test and Prod) with 3 Dataflows, you will then create parameters for each Workspace ID and Dataflow ID. I hope you know where to get the IDs .

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

Hi @tjravi2828 

Dataflows storage is ADLS(Azure Data Lake Storage) therefore the parameters you have created are applied to the ADLS and when you call the Dataflow from your desktop (Through semantic model) you import the data that is already parameterized. 

I think if you want to switch between 2 hostnames in Databricks then you create 2 Dataflows (One for each Host) and then create parameters in the semantic model to switch between the 2 of them.

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors