> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/analytics+/gantt-chart/gantt-dynamic-analytics.md).

# 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2Ftj6b4F5bMeGMKGK55MIK%2Fimage.png?alt=media&amp;token=80049853-79ae-4c55-9b28-bb2ce8c73f17" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FOQP7Qi63Ecw9iLcaxF1m%2Fimage.png?alt=media&amp;token=2d7fe3b3-926b-45f9-9f04-21ef89768d3a" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FZXRuVWStfDiBpCwhH7sp%2Fimage.png?alt=media&amp;token=43bc450f-a5b1-41a8-9557-2dbff04d9783" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FUcNzPbVJYqQmQVcO90eP%2Fimage.png?alt=media&amp;token=cf7ca1f3-c60c-403f-b97d-2ca3f02a7369" alt=""><figcaption><p>Dynamic analytics customization</p></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
