Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JonSwed
Advocate II
Advocate II

Using LEN, need some help altering the length of string it returns

Hi all!

I have a formula I'm using to create a new column where the first letter of a string is made upper case.

Looks like this:

Region rewrite =
(
(UPPER( left([Website region],1) ))
&
(right ( ('Site appearance'[Website region]), LEN( ('Site appearance'[Website region]) ) ) )

)
But this returns 'Jjordan'. What I need is 'Jordan'. I've been trying to use -1 to alter the LEN function but without success, any help much appreciated thanks!
1 ACCEPTED SOLUTION
nandukrishnavs
Community Champion
Community Champion

@JonSwed 

 

Try this 

Region rewrite = 
(
     ( UPPER ( LEFT ( [Website region], 1 ) ) )
        & (
            MID( 
                 ( 'Site appearance'[Website region] ),2,
                LEN ( ( 'Site appearance'[Website region] ) )-1
            )
        )
)

nandukrishnavs_0-1598425313656.png

 

 


Regards,
Nandu Krishna

View solution in original post

2 REPLIES 2
nandukrishnavs
Community Champion
Community Champion

@JonSwed 

 

Try this 

Region rewrite = 
(
     ( UPPER ( LEFT ( [Website region], 1 ) ) )
        & (
            MID( 
                 ( 'Site appearance'[Website region] ),2,
                LEN ( ( 'Site appearance'[Website region] ) )-1
            )
        )
)

nandukrishnavs_0-1598425313656.png

 

 


Regards,
Nandu Krishna

amitchandak
Super User
Super User

@JonSwed , Try like

Region rewrite =
(
(UPPER( left([Website region],1) ))
&
(right ( ('Site appearance'[Website region]), (LEN('Site appearance'[Website region]) -1) ) )

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors