Tableau how to convert a dimension into a datetime -
i'm using tableau 9.0, trying calculate service outage time. have 2 dimensions work -start time , end time. when @ values in format:
example:
outage start: outage end: 1452005400 1,452,011,400
ideally i'd convert current format datetime work find outage time down seconds.
does 1 know how might go this?
depending on epoch format use, formula trick:
dateadd('second', [epoch format time], date('1/1/1970'))
for example value of 1452011400 return jan 5, 2016 - 4.30pm.
keep in mind there 2 epoch formats, make sure use correct one: unix epoch typically 1/1/1970, while microsoft com epoch 12/30/1899.
i have used unix format in example above (the last argument dateadd funciton).
Comments
Post a Comment