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