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
SettlerOfCatan
Frequent Visitor

Power BI Desktop does not resolve parameters for connection settings

Hello everybody,

 

I have received a local Power BI Report from my client. The work on the report is completed.

The last task which needs to be accomplished is to set the data source settings by using parameters.

 

Therefore, I created two parameters:

Parameter1.pngParameter2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Then, I went into the data source settings in order to use these two parameters.

 

I choose "Change Source":

Datenquelleneinstellung.png

I am using the parameters for the data source:

SettingParameters.png

And this is the result:

Datenquelleneinstellung_Result.png

 

As you can see, Power BI Desktop is using the name of the parameter instead of its value (DatabseValue).

 

I went back to the data source settings and set the parameter "ServerName" in both fields.

SettingParameters_2.png

This is the result:

Datenquelleneinstellung_Result_2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Again, the value for the server is correct but the value of the database could not be resolved.
Instead, the name of the used parameter shows up instead of its value.

 

I noticed that this behaviour does not appear in new/unedited Power BI Desktop files, but in Power BI Desktop files that have already set up a (working) data source connection.

 

How can I set these parameters even under these circumstances with Power BI Desktop?

Can someone confirm this behaviour of Power BI Desktop?

 

My client is using the RS version of Power BI Desktop (May 2021).

 

I appreciate any help to solve this issue.

 

@v-yingjl 

@v-shex-msft 

 

With best regards

SettlerOfCatan

1 ACCEPTED SOLUTION

@SettlerOfCatan , Are you trying to do what is shared in this video by Guyinacube  - https://www.youtube.com/watch?v=OnaDJkGOmIE ?

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@SettlerOfCatan , I think when you open and check advance editor(of a table) , there you should see the difference(Parameter name replaced with actual value).

Are you able to add a table using this connection?

Hello @amitchandak,

 

Thank you for your reply.

This is a great idea!

 

I have opened the advanced editor and this is what I got:

AdvancedEditor.png

 

 

 

 

 

 

 

 

 

 

I am sorry for asking this question:

What do I need to change (properly I need to replace Name="DatabaseName") so that the value of the parameter DatabaseName is being used?

 

I am not familiar with the M-language. 😪

@SettlerOfCatan , Are you trying to do what is shared in this video by Guyinacube  - https://www.youtube.com/watch?v=OnaDJkGOmIE ?

 

exactly!

@amitchandak, thank you very much for helping me fixing the parameter issue! You have solved my problem!

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.