# Power BI destination

> How to load Windsor.ai data into Microsoft Power BI using the web connector.

You can connect Windsor.ai data to Power BI using Power BI's built-in **Web** connector, which fetches data from a Windsor Connector URL.

## Setup: Web connector

1. In Windsor, connect your data source(s) and configure your query.
2. In the destination list, select **Power BI** (or note your Connector URL from any destination screen).
3. Copy the **Connector URL**.
4. Open **Power BI Desktop**.
5. Click **Get data → Web**.
6. Paste your Windsor Connector URL.
7. Click **OK**. Power BI will load the data as a table.
8. Transform the data as needed in Power Query Editor.
9. Click **Close & Apply** to load it into your data model.

## Scheduled refresh in Power BI Service

To schedule automatic refreshes after publishing a report to Power BI Service:

1. Publish the report from Power BI Desktop to Power BI Service.
2. In Power BI Service, open the dataset settings.
3. Under **Data source credentials**, authenticate the web data source (the Windsor URL).
4. Under **Scheduled refresh**, set the desired refresh frequency.

## Tips

- **Aggregatable vs. non-aggregatable metrics**: metrics like CTR, CPC, and ROAS should not be summed in a Power BI measure without weighting. Create DAX measures that calculate them from raw clicks, impressions, and cost. See [Understanding aggregatable vs. non-aggregatable metrics](https://windsor.ai/documentation/troubleshooting/aggregatable-vs-non-aggregatable-metrics.md).
- **Large datasets**: if the Connector URL times out when Power BI fetches data, pre-load data into a [Cache Data Store](https://windsor.ai/documentation/troubleshooting/understanding-cache-data-store-and-query-cache.md) or [BigQuery](https://windsor.ai/documentation/destinations/google-bigquery.md) first and connect Power BI to the warehouse instead.

## Troubleshooting

- [How to fix data mismatch issues in Power BI](https://windsor.ai/documentation/troubleshooting/how-to-fix-data-mismatch-issues-in-power-bi.md)
- [Understanding aggregatable vs. non-aggregatable metrics](https://windsor.ai/documentation/troubleshooting/aggregatable-vs-non-aggregatable-metrics.md)
