This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I want to embed a powerBI dashboard on some web app in such a way that, only half screen space will be utilised by dashboard and the rest will be used to display built-in maps which are no way related to dashboard.
Here, my goal is to get the values or locations that have been selected from slicer in BI Dashboard, to web page in order to higlight those locations on web app's map which has been visualised on rest of the screen.
Solved! Go to Solution.
Hi @Kbs_2121 ,
To achieve this, you'll need to use Power BI's JavaScript API to embed the report into your web application. The key steps involve capturing the slicer selections from the Power BI dashboard and then passing that data to the map component on your webpage.
Here's how you can approach it:
Embedding the Power BI Report: You'll first embed the Power BI report into the webpage, allocating half the screen for the report and the other half for the map. The Power BI JavaScript API will allow you to do this by using the embed method.
Capturing Slicer Selections: The JavaScript API allows you to interact with slicers. You can use the onFiltersChanged event or getFilters method to capture the current slicer selections in real-time. This will help you track the values or locations selected in the slicer.
Passing Data to the Map: Once you've captured the selected values, you can send them to your map component. This can be done by integrating the map's JavaScript API and using the captured slicer values as input to highlight or filter locations on the map.
Synchronization: To keep the data in sync between Power BI and the map, you'll want to set up a communication system (e.g., via JavaScript) that updates the map whenever the slicer selections change.
By embedding the report and using the JavaScript API, you can pass the selected values to the map and ensure that they’re reflected on your webpage, allowing users to see relevant locations highlighted on the map.
Please mark this as solution if it helps you. Appreciate Kudos.
Hello
May i ask what code need to be added in my plain html page for getting slicers synchroization in my embedded page ??
Hi @Kbs_2121 ,
To achieve this, you'll need to use Power BI's JavaScript API to embed the report into your web application. The key steps involve capturing the slicer selections from the Power BI dashboard and then passing that data to the map component on your webpage.
Here's how you can approach it:
Embedding the Power BI Report: You'll first embed the Power BI report into the webpage, allocating half the screen for the report and the other half for the map. The Power BI JavaScript API will allow you to do this by using the embed method.
Capturing Slicer Selections: The JavaScript API allows you to interact with slicers. You can use the onFiltersChanged event or getFilters method to capture the current slicer selections in real-time. This will help you track the values or locations selected in the slicer.
Passing Data to the Map: Once you've captured the selected values, you can send them to your map component. This can be done by integrating the map's JavaScript API and using the captured slicer values as input to highlight or filter locations on the map.
Synchronization: To keep the data in sync between Power BI and the map, you'll want to set up a communication system (e.g., via JavaScript) that updates the map whenever the slicer selections change.
By embedding the report and using the JavaScript API, you can pass the selected values to the map and ensure that they’re reflected on your webpage, allowing users to see relevant locations highlighted on the map.
Please mark this as solution if it helps you. Appreciate Kudos.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 23 |