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
dhruvgulati
Helper I
Helper I

How to filter out only letter in a columns

i want to filter out  only words (numbers not allowed ) from a column without adding a column.

Table.AddColumn(#"Changed Type", "Custom1", each Text.Select([Column1],{"A".."z"}))

1 ACCEPTED SOLUTION

Use this

= Table.ReplaceValue(#"Changed Type",each [Column1],each if Value.Is(Number.From([Column1]), type number) then null else [Column1] ,Replacer.ReplaceValue,{"Column1"})

View solution in original post

7 REPLIES 7
Vijay_A_Verma
Super User
Super User

Use this

 

= Table.ReplaceValue(#"Changed Type",each [Column1],each Text.Select([Column1],{"A".."z"," "}),Replacer.ReplaceValue,{"Column1"})

 

Thanks this worked is there a way that filter out like 

sample input  

sdjwd

122

33wdwq

213

adsdwd232

dw

output

sdjwd

33wdwq
adsdwd232
dw

Use this

= Table.ReplaceValue(#"Changed Type",each [Column1],each if Value.Is(Number.From([Column1]), type number) then null else [Column1] ,Replacer.ReplaceValue,{"Column1"})
latimeria
Solution Specialist
Solution Specialist

Hi @dhruvgulati ,

 Table.TransformColumns( Source, {"Column1", each Text.Select(_,{"A".."z"})})

#"Filtered Rows2" =Table.TransformColumns( Source, {#"Filtered Rows1", each Text.Select(_,{"A".."z"})})
 error 

Expression.Error: We cannot convert a value of type Table to type List. Details: Value=[Table] Type=[Type]

syntax:

#"Filtered Rows2" =Table.TransformColumns( PreviousStep, {"Column name to transform", each Text.Select(_,{"A".."z"})})

in your case

#"Filtered Rows2" =Table.TransformColumns( #"Filtered Rows1", {"Custom1", each Text.Select(_,{"A".."z"})})

Or you can user Table.ReplaceValue, same output.

Vijay_A_Verma
Super User
Super User

Can you post some sample data and result corresponding to the data?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.