# Aura Component for CRM Analytics Dashboards

The Aura component `wave:waveDashboard` displays a CRM Analytics dashboard in a Visualforce or Lightning page.

The component, **CRM Analytics Dashboard** is available in the Lightning App Builder as a drag-and-drop component. You can also create your own component to interact programmatically with the `wave:waveDashboard` component.

To display a CRM Analytics dashboard, pass in the required attribute, which is either the `dashboardId` or the `developerName`. All other attributes have a default value and are only specified if you want to override with your own custom value.

To change the dashboard state dynamically, use the `filter` attribute to add selections or filters to the embedded dashboard. You can filter dataset fields by variables or specified values. See [Filter and Selection Syntax for Embedded Dashboards](https://help.salesforce.com/s/articleView?id=analytics.bi_embed_filters.htm) in Salesforce Help.

You can also update the dashboard state via the `setState` component method or by using the CRM Analytics Web SDK Events like `wave:update`. For details on using events to interact with this component, see [CRM Analytics Aura Events](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_sdk.meta/bi_dev_guide_sdk/bi_sdk_web.htm) in the *Analytics SDK Developer Guide*.

Here's an example of a simple Aura component for CRM Analytics dashboards.

```xml
<aura:component implements="force:appHostable,force:hasRecordId">
  <wave:waveDashboard dashboardId="0FKxx000000000xxxx" height="1200"/>
</aura:component>
```

**See Also**

- [Wave Dashboard Aura Component Reference](https://developer.salesforce.com/docs/component-library/bundle/wave\:waveDashboard/documentation)
- *Salesforce Help*: [Embed Dashboards in Lightning Pages](https://help.salesforce.com/s/articleView?id=analytics.bi_embed_lightning.htm)
- [Add an Analytics Dashboard to a Visualforce Page](https://help.salesforce.com/s/articleView?id=analytics.bi_embed_vf.htm)
- [Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide)
