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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to create parameters via data load in power bi

Hi Team, How to achieve below scenario in power Bi. I have to load data through folders in power bi by using parametrs.

 

Narayana7481_0-1640835778006.png

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @Anonymous,

You can create a query parameter with text type, then copy the data connection folder path to the parameter and use this parameter to replace the raw connection string.

After these steps, you can modify the query parameter value to change the data source path. (notice: the new path files show has the same data structure as the old one or you need to manly fix the cached data structure not match issue)

Raw query table:

let
    Source= Folder.Files("D:/xxx/xxx/")
in
    Source

Parameterize connection string:

let
    Source= Folder.Files(parameter1)
in
    Source

Reference link:

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev  
Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

You can create a query parameter with text type, then copy the data connection folder path to the parameter and use this parameter to replace the raw connection string.

After these steps, you can modify the query parameter value to change the data source path. (notice: the new path files show has the same data structure as the old one or you need to manly fix the cached data structure not match issue)

Raw query table:

let
    Source= Folder.Files("D:/xxx/xxx/")
in
    Source

Parameterize connection string:

let
    Source= Folder.Files(parameter1)
in
    Source

Reference link:

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev  
Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous , I think you are looking for connection as parameter , discussed by guyinacube in this video https://www.youtube.com/watch?v=OnaDJkGOmIE

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Users online (144)