Skip to Content

Solution Patterns

Use a fiscal year calendar

Make year date filters and yearly grouping follow an April to March fiscal year.

Set calendar-type="ind" on the embed. Year presets and yearly grouping then use a fiscal year from April 1 to March 31.

Steps

  1. Add calendar-type="ind" to the element:
<dbn-dashboard
  token="YOUR_GUEST_TOKEN"
  dashboard-id="YOUR_DASHBOARD_ID"
  calendar-type="ind"
></dbn-dashboard>
  1. Reload the page.

Year presets on date filters, such as last year, now cover April 1 to March 31. Time series grouped by year use the same fiscal year.

<dbn-metric> takes the same calendar-type attribute.

Values

ValueCalendar
defaultJanuary 1 to December 31 (used when you leave it out)
indApril 1 to March 31

Other start months are not available.

What changes

  • Only the year grain uses the fiscal year. Days, weeks and months stay the same.
  • “Last year” means the last completed fiscal year.
  • The dates in your data do not change. Only the range the filter selects changes.

Related: Guest token timezone.