cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sb19999
Frequent Visitor

How to set datasource value on a parameter from Powerbi URL

Hello

I have two tables with same schema ( Table 1 and Table 2)

I have modified Table 2 'Navigation' steps as '= Source{[Schema="dbo",Item=DataSourceParam]}[Data]' where DataSourceParam is the parameter. 

What I am expecting to achieve is, if I pass DataSourceParam = Table1, then my visuals should load data from Table 1 and if I pass DataSourceParam = Table2, visuals will reflect Table 2 data. 

 

Now this is already achieved if I manually change the parameter value from PowerBI Desktop > Power Query Editor.

But the ask is to do it from Powerbi published report URL.

 

Please help!!!

6 REPLIES 6
amitchandak
Super User
Super User

@sb19999 , see if dynamic M parameter can help

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

@amitchandak : This is not helping. I need to provide parameter value from power bi service not from desktop.

Hi @sb19999 ,

 

Does you review and edit parameters in the tab for Datasets?

 

image.png

 

For more information, please refer to Edit parameter settings in the Power BI service 

 


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

 

@v-kkf-msft Changing parameter value from Dataset settings each time I want to switch to a different dataset is a manual task and is not the solution.

The business problem here is, switching between datasets having same schema on runtime. Something that I can feed into my powerbi url and it will generate the visuals with the data set. like query parameters which I tried to use (it filters on the visuals but not able to set data source with query parameters)

@sb19999 Were you able to figure this out?

 

Thanks!

We did it through azure functions using power bi API to update parameter.

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

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

Ted's Dev Camp - July 28, 2022

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

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.

Top Solution Authors
Top Kudoed Authors