# Gantt: Dynamic analytics

You can also use DAX measures to plot reference bands. A DAX-driven reference band is used to overlay contextual time ranges on top of a Gantt chart without modifying the underlying tasks. This enables dynamic and user-driven insights that cannot be achieved with static data alone.

We'll look at how to set up dynamic analytics in Analytics+

{% stepper %}
{% step %}
Create a **DAX measure** to hold reference dates and text. Assign it to the Gantt visual parameter.

<figure><img src="/files/TgdRrvlkjOMtTrW0uamA" alt=""><figcaption><p>DAX measure added to the Gantt chart</p></figcaption></figure>
{% endstep %}

{% step %}
Assign the DAX measure to the **Dynamic analytics** data well in the Pivot data window. You'll notice that reference bands and text, based on your DAX measure, are automatically plotted.

<figure><img src="/files/UaUawVVXSvYuvgyXLuXa" alt=""><figcaption><p>Reference bands and text plotted based on the DAX measure</p></figcaption></figure>

{% endstep %}

{% step %}
The **Dynamic Analytics button** will now be enabled in the Story section of the Gantt ribbon. Click the button to open the customization side pane.

{% hint style="info" %}
The Dynamic Analytics button will be enabled only after assigning a DAX measure to the Dynamic analytics data well in the Pivot Data window.
{% endhint %}

<figure><img src="/files/JUiqApiw7FAlA1UIMQtd" alt=""><figcaption><p>Dynamic analytics customization window</p></figcaption></figure>
{% endstep %}

{% step %}
Customize the background fill and format the text from the side pane. The customization options are covered in the [Analytics section](/analytics+/gantt-chart/gantt-analytics.md).

<figure><img src="/files/tPEstAWBUVuOACwaLi47" alt=""><figcaption><p>Dynamic analytics customization</p></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/analytics+/gantt-chart/gantt-dynamic-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
