Maintained with ☕️ by
IcePanel logo

Power BI Embedded: Get visual data

Share

Services

When a user interacts with a visual, they have the option to [export data](https://docs.microsoft.com/en-us/power-bi/power-bi-visualization-export-data) through the ellipsis menu in the upper-right corner. The application can now [extract data that is shown in the visual](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Export-Data). This allows the application to get the visual's data and trigger business logic based on the data. For example, a marketing manager wants to start a discount campaign for customers who are most likely to leave the service. The manager starts with the visual that contains the churn probability of customers. The manager can filter customers who are most probable to churn. Then, instead of exporting the underlying customers data and then adding customer details to the campaign one by one, the application can provide a one-click action to do that. By adding **Start discount campaign** on the [menu of the visual](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Menu-Commands-Extension), the app can use the Get Visual Data API to retrieve all the customer's details. It automatically adds them to the campaign list and activates it. This is just one example of how the app can use the underlying data. There are many more ways to use it. * Power BI Embedded * Features * [ Power BI Embedded](https://azure.microsoft.com/en-gb/products/power-bi-embedded/)