0

我正在尝试从 Tableau 中的任期月数中获取任期年数,并使用函数?有人能帮我吗?谢谢

在此处输入图像描述

4

1 回答 1

0

If you need to get the number of years and number of months, you can create a new calculated field using the below

STR(INT([Tenure Months]/12)) +' Years '+ Str([Tenure Months]%12) + ' Months'

If you just need the number of years in float, you can create a new calculated field using the below

[Tenure Months]/12
于 2021-05-11T20:05:26.420 回答