cancel
Showing results for 
Search instead for 
Did you mean: 
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
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors
Top Kudoed Authors