The Custom Calendar feature in ThoughtSpot powers the date keywords. The concepts "yearly", "quarterly", or "weekly" may be skewed (or offset) based on what day determines the start and end boundaries for each of those periods.
This is the ONLY purpose the Custom Calendar feature serves - to provide semantic meaning to DATE
and DATE_TIME
columns. You cannot use Custom Calendars to encode custom date keywords (eg. Is Holiday = TRUE|FALSE
).
When creating a Custom Calendar from a SQL query, the table DDL must exactly match the names and types that ThoughtSpot expects. For this reason, it is advised to create a separate database Table or View in order to isolate these columns.
For example, the default GREGORIAN CALENDAR
in ThoughtSpot..
- begins on Januay 1st
- ends on December 31st
- start of week occurs on a Monday
Meanwhile, Data Managers (those who have Can Manage Data), can configure alternate calendars in order to change the meaning of this kind of query.
Here is an example FISCAL CALENDAR
which..
- begins on August 1st
- ends on July 31st
- start of week occurs on a Monday
You will need to let ThoughtSpot know about its existence. This can be done by navigating to Data Workspace > Utilities > Custom calendar
.
You may have any number of calendar semantics configured for a Connection, however the specific Calendar object within ThoughtSpot cannot be re-used across Connections. Each Calendar may point to the same external database table however, allowing re-use of the semantic.
When creating a new Calendar, you will need to select Existing Table
to reference your external database table.
Important
The Calendar Name
field is USER FACING!
Take special care to name this field appropriately for business users, as you would with Column Names.
apply the calendar type to your Models in ThoughtSpot. This sets the "default calendar semantic" for your DATE and DATE_TIME columns for the Models you applied it to.
If users need to select between multiple calendars, they may type the calendar name in Search and Formulas (see the original screenshots for calendar
and fiscal
calendar names!)