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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

add value to existing numbers

Hello,

Column in a table has 7 or more digits
I would like to add the value 8 to the beginning of the 7 digit numbers only
What is th ebest way to do this please?

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

if Text.Length([text])>=7 then [text]&"a" else [text]

Here [text] is the column(Field) and "a" is the text What i want to add

In power Query Editor , under AddColumn Tab, use Custom Column option to achieve this


@Anonymous wrote:

Hello,

Column in a table has 7 or more digits
I would like to add the value 8 to the beginning of the 7 digit numbers only
What is th ebest way to do this please?


 

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

1 REPLY 1
VijayP
Super User
Super User

if Text.Length([text])>=7 then [text]&"a" else [text]

Here [text] is the column(Field) and "a" is the text What i want to add

In power Query Editor , under AddColumn Tab, use Custom Column option to achieve this


@Anonymous wrote:

Hello,

Column in a table has 7 or more digits
I would like to add the value 8 to the beginning of the 7 digit numbers only
What is th ebest way to do this please?


 

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.