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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
san-to
Regular Visitor

save drop down selection to datasource

I have a connection to a sql server database and use a view - say vProjects -  as a source for a drop down control. I want to display the project names in the drop down list and save the ID of the selected project in some table - say tSelectedProject - so I can filter other views based on the selection. I used the Slicer visual to build a drop down control that is populated by vProjects but how would I save the ID of the selected project to tSelectedProject? Or how can I bind the drop down control to the datasource?

Does this approach even make sense in Power BI? Should I rather build a view containing all necessary data and then fill all controls/visuals based on this data object and derived objects like lists, so all controls are filtered simultanously based on the build-in filter applied in Power BI by default?

2 REPLIES 2
san-to
Regular Visitor

It seems to me like Power BI is more of a data visualization tool than an application builder. It doesn't support a bi-directional communication between the interface and an sql server. I found only one workaround using an R library to pass slicer selections to sql server. Why is it required to use a foreign library to communicate between to Microsoft products?

amitchandak
Super User
Super User

@san-to , You can explore if these can help

https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters

 

dynamic M parameters

https://blog.crossjoin.co.uk/2020/10/25/why-im-excited-about-dynamic-m-parameters-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.