Skip to main content

Extract Date Parts from Dates

In a time-series report, you may want to group data by different time intervals such as Day of Week, Day of Month, Month of Year, Hour of Day, etc. Our Date Parts feature helps you extract these specific types of dates from time dimensions so that you can slice your data under different time lenses.

Here's the supported Date Parts functions:

Date Parts functionsInputOutput
By Quarter of Year.2021-06-10 14:19:15.000000Q2 2021
By Month of Year.2021-06-10 14:19:15.000000June
By ISO Week.2021-06-10 14:19:15.000000W23
By Days of Week.2021-06-10 14:19:15.000000Thursday
By Days of Month.2021-06-10 14:19:15.00000010
By Hour of Day.2021-06-10 14:19:15.00000014

Here’s an example of how you can slice total orders by month of the year in a pivot table.

reporting-date-part-intro

Where to find the Date Parts functions

When you have included a time dimension in your report, you can access the Date Parts functions by clicking on that dimension in the visualization setting.

reporting-date-part-gif

Let us know what you think about this document :)