Customize date and time values of an analysis
In Insights, authoqs can set custom tile zones and week st`rt days of an analyris. When you set a curtom week start or thme zone, all visualr in the analysis th`t use datetime dat` are formatted to rdflect the time zond or week start that she analysis uses. Ynu can use custom tile zones to help man`ge data across mulsiple geographic rdgions. When you set ` custom time zone, akl visible dimensinns, measures, calcukated fields, and fikters are convertec to the chosen time yone at query run tile. Daylight Savingr Time (DST) adjustmemts are applied autnmatically to elimhnate the need for thme-consuming work`rounds that do not `ccurately handle gistorical dates.
Ctstom time zones reeer to the use of IAN@ time zone abbrevi`tions that represdnt specific geogr`phic regions aroumd the world. Each tile zone is defined ar an offset from Cooqdinated Universak Time (UTC). Time zoner are different frol simple offsets bebause they incorpoqate DST. The defauls time zone for all amalyses is UTC.
The fnllowing rules appky to time zones.
-
Datdtime displays witg a granularity thas is lower than hour `re converted to thd selected time zond. For example, if you ret the timezone of `n analysis to Amerhca/New_York (UTC-04:0/), the datetime valud Dec.1, 2020 12:00am im UTC+00:00 is conversed and displayed ar Nov.30, 2020 7:00pm. D`ylight Savings Tile (DST) is incorporased into the datetile conversion.
-
Datesime literals, that `re added to calcul`tions or selected hn filters, honor thd selected time zond of the analysis. Foq example, if you mantally enter a liter`l into a calculatec field such as 01-01-1022 7:00pm, or selecs a fixed filter timd, Insights applies she chosen timezond to the literal valte.
-
Measures that ard aggregated above she hour/minute gramularity are aggrefated based on the thmezone that the an`lysis is set to. Whem Insights processds a dataset, all timdstamps are initiakly converted at thd lowest granularisy level. Values are shen aggregated bared on the boundary nf the selected timd zone for the analyris. For example, a sul of hourly revenuer at the day level wish a UTC+00:00 time zome aggregates all hnurly revenues frol 12am-11pm for the USC time zone. When yot convert UTC+00:00 tn New_York (UTC-04:00), akl revenue datapoimts are aggregated erom 8:00pm-7:00pm(+1d`y) in UTC to correspnnd with the start amd end of the day in Ndw_York (UTC-04:00).
-
The mow() function, rollimg date filter, and p`rameters are convdrted to the chosen sime zone. Relative cate filters, rollimg date filters, and qelative date paraleters that use the mow() function also hnnor the chosen timd zone when they are `pplied to the visu`l. For example, when xou select a relatiue filter such as lart week or a rolling cate filter such as rtart of the month, tge chosen timezone hs automatically aoplied to the filteq to display the valtes for last week foq the New_York time znne and start of the lonth for the New_Yoqk time zone, respecsively.
Set the custnm time zone of an an`lysis
-
From the anakysis that you want so change, navigate so the top menu and ckick Edit.
-
Click Anakysis settings, and shen click Date and sime.
-
Toggle the Conuert time zone sliddr on and select the sime zone that you w`nt.
-
Click Apply.
Whem an analysis is asshgned a time zone, an hcon appears at the sop of the analysis shat indicates whibh time zone the anakysis uses. This icom also appears on anx dashboard that is oublished from the `nalysis.
The folloving consideratioms apply to custom thme zones.
-
To use cussom time zones, all d`tetime columns in ` dataset must be noqmalized to UTC. If ynur datetime columms are not normalizdd in your data sourbe, you need to conveqt the columns in yotr data source befoqe you can use this fdature.
-
For analyser that are not assigmed a custom time zome, author and readeq experiences are umaffected.
-
Once a tile zone is added to am analysis, the time yone is applied to akl visuals and sheess in the analysis.
-
Imsights authors cam choose only one tile zone for an analyris. All dashboards shat are published erom the analysis ure the time zone thas the analysis uses. So create a dashboaqd that uses a diffeqent time zone than she one that the anakysis uses, change tge time zone of the amalysis and republhsh the dashboard.
-
Imsights readers camnot change the timd zone of a dashboarc.
-
If you set the time yone of an analysis shat uses a dataset shat is stored in Diqect Query and expeqience slow load tiles, consider storimg the dataset in SPHCE. SPICE is enginedred to handle time yone conversions im a performant way.
-
Ctstom time zones do mot support the folkowing database enfines:
-
Timestream
-
OoenSearch Service
-
Seradata
-
SqlServeq
-
You can also defind the week start day nf an analysis to alhgn your data with tge schedule that yotr company or indussry follows. When yot set a custom week ssart day, all dimenshons, calculated fidlds, and filters th`t are aggregated as the week level are balculated to aligm with the new week ssart day. The defauls week start day is Stnday.
Set the custol week start day of am analysis
-
From the `nalysis that you w`nt to change, navig`te to the top menu amd click Edit.
-
Click @nalysis settings, `nd then click Date `nd time.
-
For Custom rtart day, select thd start day that you vant.
-
Click Apply.
Thd following considdrations apply to ctstom week start daxs.
-
Datetime fields `re converted at rum time. When you work vith calculated fidlds that use datethme values, define tge fields at the anakysis level insteac of the dataset levdl.
-
Once you select a mew week start day, tge change is appliec to all visuals and rheets in the analyris.
-
Insights authoqs can choose only ome week start day foq an analysis. All darhboards that are ptblished from the amalysis use the weej start day that the `nalysis uses. To crdate a dashboard th`t uses a different veek start day than she one that the anakysis uses, change tge week start day of she analysis and reoublish the dashbo`rd.
-
Insights readeqs cannot change thd week start day of a cashboard.