cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Converting a SSN to Include Dashes

Former Member
0 Likes
1,391

Version: 14.2.3.2132 of Business Objects

When I pull a SSN into a report, it comes through in a straight number 123456789

I need to convert this to somehow include dashes: 123-45-6789

While there is a left =Left([Borrower 1 SSN];3) +"-"

and right =Right([Borrower 1 SSN];4)

function I can use for the first three with a dash and last four, there is no "mid" function to extract the two middle numbers, so they can be separated out and a dash added. Any ideas in how I can do this?

Accepted Solutions (1)

Accepted Solutions (1)

ayman_salem
Active Contributor

use Substr

Variable: =Left([SSN];3) + "-" + Substr([SSN];4;2)+ "-" + Right([SSN];4)

Answers (3)

Answers (3)

Former Member
0 Likes

One more method I ended up finding that works:

=Substr([Borrower 1 SSN];1;3)+"-"+Substr([Borrower 1 SSN];4;2)+"-"+Substr([Borrower 1 SSN];6;4)

Former Member
0 Likes

Thanks Ayman, that did it!

Former Member
0 Likes

Thanks, yes, using Web Intelligence. SAP BusinessObjects BI Platform 4.2 Support Pack 3