Forum Discussion

san-to's avatar
san-to
Regular Visitor
3 years ago

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