2 Replies
Latest reply:
May 9, 2012 1:44 PM by
Natalia Gatti
-
1. Re: Formatting string field to date format "YYQQ"
tracyfitzgerald May 8, 2012 11:24 AM (in response to Natalia Gatti)Hi Natalia,
The Quarter (Q) won't be used in the calculation since these are already written in to Tableau dates. One way to do this would be to create a calculated field similar to the following:
if [YY/Q]='12/1' then date('1/1/' + left([YY/Q], 2))
elseif [YY/Q]='12/2' then date('4/1/' + left([YY/Q], 2))
elseif [YY/Q]='12/3' then date('7/1/' + left([YY/Q], 2))
elseif [YY/Q]='12/4' then date('10/1/' + left([YY/Q], 2))
end
Hope this helps!
-Tracy
-
2. Re: Formatting string field to date format "YYQQ"
Natalia Gatti May 9, 2012 1:44 PM (in response to tracyfitzgerald)That worked perfectly! Thank you for your help!
