Forum Discussion
UK PostCode to Area Code
- 4 years ago
Hello there Anonymous ! Wouldn't it be easier for you to do this in Power Query Editor with either the "split column" function or the "extract" function?
Alternatively, you can also try this!
ColumnB = Var FirstSpace = FIND(" ";'UK Post Code'[POSTCODEold]) Return LEFT('UK Post Code'[POSTCODEold]; LEN('UK Post Code'[POSTCODEold]) - FirstSpace)Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!
Best regards,
Gonçalo Geraldes
Hello there Anonymous ! Wouldn't it be easier for you to do this in Power Query Editor with either the "split column" function or the "extract" function?
Alternatively, you can also try this!
ColumnB =
Var FirstSpace = FIND(" ";'UK Post Code'[POSTCODEold])
Return
LEFT('UK Post Code'[POSTCODEold]; LEN('UK Post Code'[POSTCODEold]) - FirstSpace)
Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!
Best regards,
Gonçalo Geraldes