# Performance

A lot of work went into optimisation and reducing impact on the SQL database when querying data as well as reducing resources required for Power BI to render data. However, there few things to consider when it comes to the Power BI Performance:

## Data Volumes

This is the most important factor. It is obvious that the more data Power BI downloads, the more it has to process and render.&#x20;

There are some clever mechanisms built into Power BI such as High Density Sampling which reduce the amount of data rendered with minimised loss of granularity:

{% embed url="https://docs.microsoft.com/en-us/power-bi/desktop-high-density-sampling" %}

However, first and foremost, download less data into Power BI to make it run fast.

* Reduce time window
* Reduce granularity by increasing aggregation
* Only download what you want to see
* Hide baselines
* Filter Central Repository

## Performance Analyser

Recent versions of Power BI come with performance analyser that will show you what Power BI spends most time on when rendering report. You can use this to understand where the bottlenecks are.&#x20;









### Report Time Window

Reduce the Report Time Window parameter to download less data.

### Report Aggregation



### Unused Sets

If you are investigating last 60 minutes of production performance issues, perhaps you do not need to see last 24 hours worth of Agent Job history, index statistics or disk utilisation. Make sure you are setting report parameters correctly to limit what is being downloaded to Power BI

![](https://560149426-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LamHUpIpVXoBUUDZZpO%2F-LvT1Sr_sKNFd5edrPvT%2F-LvT7Te9tbc1OO0TERi8%2Fimage.png?alt=media\&token=d57d91da-a0b5-4a44-a263-f219c04cf342)

### Baselines

Baselines are fantastic way to compare same periods of time in an offset. For example, Same hour but yesterday, same day but last week etc. However, they also require more data to be downloaded. Only enable baselines if you have to.

![](https://560149426-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LamHUpIpVXoBUUDZZpO%2F-LvT1Sr_sKNFd5edrPvT%2F-LvT7bhppNeQwxvTShW4%2Fimage.png?alt=media\&token=b8df5332-d13d-4341-baa1-d3ac2489e7d7)

### Generic Performance Analyser

The Generic Performance Analyser tab shows all Performance Counters without aggregation. It's purpose is to drill down into details. Only enable it when you are debugging performance issues.&#x20;

![](https://560149426-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LamHUpIpVXoBUUDZZpO%2F-LvT1Sr_sKNFd5edrPvT%2F-LvT617aWuaEXUpyVBvX%2Fimage.png?alt=media\&token=264b456f-9723-476b-95bd-65301b19f2f3)

### Filter Central Repository

When using Central Repository, data for all servers is downloaded into Power BI. If you are investigating specific SQL Instance, you can apply filter so only data for this instance is downloaded:

![](https://560149426-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LamHUpIpVXoBUUDZZpO%2F-LvT1Sr_sKNFd5edrPvT%2F-LvT8G3cKx-amB6wQX0g%2Fimage.png?alt=media\&token=a77cde02-8e76-4d6d-9c37-eaa39dbf3f72)

##
