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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Replace value containing alphabets to blank values

Hi,

 

How can I replace all the rows in a column containing a combination of alphabets and numbers with Blank values?

 

Goal is to -

old        new

111  -    111

222  -     222

333   -   333

a44  - blank

555 - 555

r777 - blank

 

Then convert the column to an integer column

 

I want to add a new column to an existing table in the power query

 

Background

"Old" column is a text column

 

Thank you

1 ACCEPTED SOLUTION
serpiva64
Super User
Super User

Hi,

you can:

- duplicate column

- change type to whole number

- then in transform replace errors to null

 

If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !

View solution in original post

1 REPLY 1
serpiva64
Super User
Super User

Hi,

you can:

- duplicate column

- change type to whole number

- then in transform replace errors to null

 

If this post isuseful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors