Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

KPI tab creation below requirement

poojanpatel
Giga Contributor

Is there a way to add a date filter widget with preset options such as This Month, Last 6 Months, and Last 12 Months? This would make it easier to review trends over different periods without manually adjusting the dates. I have already charts created can we able to create some filter so I can have both charts give date wise data currently I am not able to do it. Please see below chart settings.

 

poojanpatel_0-1794498111614.png

poojanpatel_3-1794498226602.pngpoojanpatel_4-1794498280151.png

 

 

 

1 ACCEPTED SOLUTION

Rajesh_Singh
Kilo Sage

Hi @poojanpatel,

Yes, this is out of box. Edit the dashboard > Add new element > Filter > New filter, and select the Date type. Point it to the date field your charts use, for example Created.

1. In Date filter view, choose Relative ranges only (the other options are Calendar with relative ranges and Calendar only).

2. Open Select predefined ranges. Applied already has Last 3 months, Last 6 months, Last 7 days, Last month, Last year and YTD. Move This month and Last 12 months from Available to Applied, and move out the ones you don't want.

3. In Default values, pick the range the dashboard should open with.

3620702_1.png

The Date filter applies to Score, Time series, Bar and Pie/Donut visualizations on the same tab. For indicator-based charts, also turn on Apply date range in each chart's configuration panel. Time series charts adjust their aggregation automatically. By doing this, you can change the period for both charts in one click, without editing each chart.

Kindly remove any fixed date condition from the charts' data sources (like Created on Last 6 months), otherwise it gets combined with the filter.

Configure a Date filter: https://www.servicenow.com/docs/r/now-intelligence/create-date-filter-workspace.html 

If this helped, kindly mark it Helpful so others facing the same issue can refer to it.

View solution in original post

1 REPLY 1

Rajesh_Singh
Kilo Sage

Hi @poojanpatel,

Yes, this is out of box. Edit the dashboard > Add new element > Filter > New filter, and select the Date type. Point it to the date field your charts use, for example Created.

1. In Date filter view, choose Relative ranges only (the other options are Calendar with relative ranges and Calendar only).

2. Open Select predefined ranges. Applied already has Last 3 months, Last 6 months, Last 7 days, Last month, Last year and YTD. Move This month and Last 12 months from Available to Applied, and move out the ones you don't want.

3. In Default values, pick the range the dashboard should open with.

3620702_1.png

The Date filter applies to Score, Time series, Bar and Pie/Donut visualizations on the same tab. For indicator-based charts, also turn on Apply date range in each chart's configuration panel. Time series charts adjust their aggregation automatically. By doing this, you can change the period for both charts in one click, without editing each chart.

Kindly remove any fixed date condition from the charts' data sources (like Created on Last 6 months), otherwise it gets combined with the filter.

Configure a Date filter: https://www.servicenow.com/docs/r/now-intelligence/create-date-filter-workspace.html 

If this helped, kindly mark it Helpful so others facing the same issue can refer to it.