Customizing pages for Power BI dashboards
To create custom pages for Power BI dashboards within Power Pages, Sarah can utilize the flexibility of Liquid and web templates. This allows Sarah to design pages that seamlessly integrate Power BI visualizations and provide a cohesive user experience. The following sections will cover some examples of Liquid code that can be used to customize pages for Power BI dashboards.
Embedding Power BI report
To embed a Power BI report on a custom page, use the following Liquid code:
{% powerbi_report embed_url:"https://app.powerbi.com/reportEmbed?reportId=YOUR_REPORT_ID" %}
Replace YOUR_REPORT_ID
with the actual report ID from Power BI. This code will render the Power BI report within the web template, allowing users to interact with the visualizations.
Filtering Power BI visuals
To enable filtering options on a Power BI visual, use Liquid code along with Power BI’s JavaScript API. Here’s an example:
<...