Version 2021
Preview Feature: Time Zone Based Reporting
MicroStrategy 2021 Update 5 introduces a preview of new capabilities on the time dimension. Time zones can be created and applied to content that contain the date-time attribute type. You can aggregate, filter, and display data based on different time zones.
Your metadata version must be upgraded to MicroStrategy 2021 Update 5 or newer.
Time zone reporting is currently only available on Snowflake, PostgreSQL, and the following Oracle databases:
-
Oracle 12c
-
Oracle 12c R2
-
Oracle 18c
-
Oracle 19c
-
Oracle 21c
-
Upgrade the metadata repository and project after installing MicroStrategy 2021 Update 5 or newer. Learn more about updating the metadata on Windows and Linux.
-
Enable the time zone feature flag with REST API in the metadata.
Click here to see detailed steps.-
Open the REST API Swagger user interface by appending
/MicroStrategyLibrary
with/api-docs/index.html?visibility=all#/Configurations/updateFeatureFlag
in your browser. -
Under the
Authentication
section, look upGET /api/auth/token
. -
Click
Try Out
and then,Execute
. -
In the response, find
X-MSTR-AuthToken
. -
Under the
Configurations
section, look upPUT /api/configurations/featureFlags/{id}
. -
Click
Try Out
. -
Set the proper
X-MSTR-AuthToken
. You can get this via inspecting the browser network XHR requests. -
Set
id
to6AD4EB6E47499E51A1E671921A8426EC
. This is the static ID for the time zone feature flag. -
To enable the time zone feature flag, set the
status
value to1
. See below:Copy{
"status": 1
} -
To disable the time zone feature flag, set the
status
value to2
. See below:Copy{
status": 2
} -
Click Execute.
-
-
In Workstation, go to Help > Preview Features. If it is already selected, deselect and reselect it. This ensures you get the latest preview features.
You can see Internalization in the Navigation pane.
Check out the tutorial below to learn more!
The following are workflows for using Time Zone Aware attributes:
Administration: Managing Time Zones
You must use the environment in which you enabled Preview Features in.
You must create at least one custom time zone to take advantage of Time Zone Aware reporting.
Add Custom Time Zones
-
Open the Workstation window.
-
In the Navigation pane, click Internationalization.
-
Click
New Time Zone.
-
Select the system time zones you want to add.
-
Click Add. Custom time zones are created based on your selected system time zones.
-
Open the Workstation window.
-
In the Navigation pane, click Internationalization.
-
Right-click a time zone and choose Edit.
-
Change the display name or the assigned system time zone.
-
Click OK.
-
Open the Workstation window.
-
In the Navigation pane, click Internationalization.
-
Select the custom time zones you want to delete.
-
Right-click on the selection and choose Delete.
-
In the prompted confirmation dialog, click Delete.
-
Open the Workstation window.
-
In the Navigation pane, click Internationalization.
-
Right-click a time-zone and choose Get Info.
-
In the left pane, click Security Access.
-
Select on users or user groups to modify their permissions.
-
Click the plus sign to add a new control list.
-
Select single users or entire user groups and click Add.
-
Click OK.
Set the Project-Level Default Time Zone
You can enable and set a default custom time zone for a project. Once it is set, the custom time zone is applied to the content with the date-time attribute type within the project.
- Open the Workstation window.
- In the Navigation pane, click Projects.
- Right-click a project and choose Properties.
Choose Get Info if you are using a Mac.
- In the left pane, click Internationalization.
- Select the Enable Time Zone for this Project checkbox.
-
From the Default Time Zone drop-down, select a custom time zone.
- Click OK.
Modeling: Create a Time Attribute
An attribute form of the TimeStamp data type is required to see the Time Zone Aware option.
- Open the Workstation window.
- In the Navigation pane, click Create a New Object
next to Objects.
- Choose your environment and project.
- Select Attribute and click Select.
- In the Name field, enter an attribute name.
- In the table header, click
Add New Form.
- Select a table and a column with the TimeStamp type.
- Validate the expression and click Done.
-
In the top right, select the Time Zone Aware checkbox.
Enabling this option removes all relationships defined for this attribute and disables the Relationships tab.
- Click Save.
You can create a variety of attributes derived from the current time attribute. These attributes are automatically calculated from the time attribute's key form. Time attributes represent different dimensions, like week, month, quarter, year, and so on.
Time Zone Aware and Smart Time attributes are independent of each other, but can both operate on the TimeStamp ID form.
- Go to the Time Attributes tab.
-
Select the range of required attributes. The 15 minute interval attribute is created by default when you select any interval, as it is the base for all interval aggregation.
- Click Save.
- To use Smart Time attributes, create an Intelligent Cube with them and use it as the base dataset for your dossier.
Authoring: Create a Dossier
- Open the Workstation window.
- In the Navigation pane, click Create a New Dossier
next to Dossiers.
- Add your time attribute to the grid.
- In the Filter panel, click Dossier Time Zone.
- Specify the dossier's behavior when opened by a user. The default behavior is to apply the project level time zone preference upon opening the dossier.
- To prevent users from selecting different time zones when viewing the dossier in Library, select the Lock the Time Zone in Library checkbox.
- Save the dossier.
Consumption: View the Time Zone Aware Dossier in Library
-
Open the Time Zone Aware dossier Library Web.
-
To change the dossier's time zone, click Filter
.
-
Select an available time zone and click Apply.
Set the User Default Time Zone
-
To change your preferred time zone, click Account
.
-
Go to Preferences > My Time Zone.
-
From the drop-down, select your preferred time zone.
Share Dossiers with a Selected Time Zone
Bookmarks in Library save the time zone in which you viewed your content. To save a bookmark, click Bookmark > Add New.