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
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors