Skip to content

Commit

Permalink
update dashboard datetime (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonlee5 authored Jan 19, 2025
1 parent 7de0998 commit e23ddff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/app/visualization/DashboardTips.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,11 @@ in the plot.

This could mean that superset is having trouble recognizing your time series variable as a time stamp
or datetime variable. You can try creating a calculated variable in the `Edit dataset` from `Chart
Source` and do
Source`; for example, if your time variable is in epoch time, then you can convert it to a datetime variable with

```sql
CAST(my_time_variable AS TIMESTAMP)
-- use TIMESTAMP_SECONDS or TIMESTAMP_MICROS if your time is in seconds or microseconds
DATETIME(TIMESTAMP_MILLIS(my_time_variable))
```

Then set the variable type to DATETIME in the DATA TYPE section.
And then ensure that the variable type to DATETIME in the DATA TYPE section.

0 comments on commit e23ddff

Please sign in to comment.