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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
snowrider1799
Helper I
Helper I

Search for repeated alphabet in a string (column)

Hello,

 

I would like to know if there's any method to count the repeat alphabet in a string. 

 

For example, I want to get "a" from a column, repeat for how many times. Is there a way to do it? Thank you.

 

NameCount 
Melissa Sandy2
Albert Adam3
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @snowrider1799 ,

I believe there are several ways to achieve this

One of theseimage.png :

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @snowrider1799 ,

I believe there are several ways to achieve this

One of theseimage.png :

 

 

Anonymous
Not applicable

others way cooldbe be to add a column with one of the following rules:

 

  • List.Count(Text.SplitAny([Name],"aA"))-1)
  • Text.Length([Name])-Text.Length(Text.Replace(Text.Lower([Name]),"a","")))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors