Concat Function is creating a space on some records, why?
Hello,
I am using the following function to combine the account # with the location ID, but somehow the function is creating a space on some of the records, why?
This is the formula I am using, which is working for most of the records, however there are some that contain a space in between.
Â
=Concat(tBAccount.AcctCD],]Location.LocationCD])
Â
Please see attached screenshot.Â
Â
Â
Â
Page 1 / 1
Hi @jorgep17, you can use the Replace function in GI like this: =Concat(Replace([BAccount.AcctCD],’ ‘,’’) , ™Location.LocationCD]).
They may be fixed width in the database, and such having the space.
You could either Trim, or replace a space with a blank.
I see, maybe in my case, it didn’t need to be, as the data showed correctly after without the spaces. So I would assumed the AcctCD was the one needing Trimming.Â