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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.