# 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&#x26;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&#x26;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&#x26;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](https://docs.inforiver.com/analytics+/gantt-chart/gantt-analytics).

<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&#x26;token=cf7ca1f3-c60c-403f-b97d-2ca3f02a7369" alt=""><figcaption><p>Dynamic analytics customization</p></figcaption></figure>
{% endstep %}
{% endstepper %}
