Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hoping someone can help. I've got a session field with values formatted as yyyy/y (e.g. 2016/7, 2017/8). However, I'm trying to find a way to amend the field values by adding a 1 at character position 6 to present the values as 2016/17, 2017/18 etc. Does anyone have any idea whether this is possible? I've seen examples where a character has been added to the beginning or the end but never inside the string itself.
Any help would be most appreciated.
Yours,
Matt
Or this?
SubField(YourField, '/',1) & '/1' &SubField(YourField, '/', -1)
Hi Matt
try with yyyy/1y
Regards
Hi Jose,
Thank you. Could you illustrate how to do this within the load script?
Many thanks.
Matt
One way could be like:
Load
Replace(YourField, '/','/1') as NewField
Is the same, if the value is a date, then
date(DateField, 'yyyy/1y') As newField
But sincerly I don't understand why you need this format, you are writing the year '/' the number one and the last digit of the year. Are you sure do you want this?
Regards
Or this?
SubField(YourField, '/',1) & '/1' &SubField(YourField, '/', -1)
Yes I have to so it matches legacy data.
Brilliant thanks Anil!
Even, I don't prefer this? Because, What if you have data 2016/11, 2017/12 ???