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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
sb19999
Frequent Visitor

how to pass a parameter value to powerbi to set the same value in the queries

We have a parameter as State.

Based on the parameter value powerbi should connect to different sales tables, like US_Sales, UK_Sales etc.

this report is published on powwerbi service and embedded in a power apps portal application.

 

Using Update Parameter REST API is not allowed within our tenant so cannot use this API to set the parameter value before powerbi loads and connects with the desired table according to the parameter.

 

Is there any way we can pass the parameter value to powerbi so that this parameter value can be referenced on the db name so that powerbi can connect to correct table?

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. Usually there are three ways I have seen for parameters in service. The problem is that if you can't use the PowerBI Rest API you can only do it manually. 

1- Use Azure DevOps to set parameters triggered (Rest API)

2- Write your own script anywhere (azure or local) posting an update of params with Rest API.

3- Manual change of the params each time you published a .pbix. You can read more about this one here: https://blog.ladataweb.com.ar/post/190252470550/parametros

It sounds weird the fact that you can't use the API. The request for the update parameters in group won't need a concent from the Admin to work. The only permission you need is the one to register an app in azure (or power bi). The request would be this one https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters-in-group

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hi. Usually there are three ways I have seen for parameters in service. The problem is that if you can't use the PowerBI Rest API you can only do it manually. 

1- Use Azure DevOps to set parameters triggered (Rest API)

2- Write your own script anywhere (azure or local) posting an update of params with Rest API.

3- Manual change of the params each time you published a .pbix. You can read more about this one here: https://blog.ladataweb.com.ar/post/190252470550/parametros

It sounds weird the fact that you can't use the API. The request for the update parameters in group won't need a concent from the Admin to work. The only permission you need is the one to register an app in azure (or power bi). The request would be this one https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters-in-group

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors