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

How do I use a measure to count the number of times ';' appears in column?

Hi,

 

I have a table which lists user emails seperated by ';'. For example,

 

jac.smith@gmail.com; james.smith@yahoo.com; amy.white@gmail.com; jason.smith@gmail.com 

 

If the DAX is correct, it should count 3. Any ideas? 

1 ACCEPTED SOLUTION
Demert
Resolver III
Resolver III

Hi @dinosainsburys ,

You can create a new measure or column in your table with the following code:

 

 LEN(Table[ColName])-LEN(SUBSTITUTE(Table[ColName],";",""))

 

To check how many times ; is in the column 

View solution in original post

2 REPLIES 2
Demert
Resolver III
Resolver III

Hi @dinosainsburys ,

You can create a new measure or column in your table with the following code:

 

 LEN(Table[ColName])-LEN(SUBSTITUTE(Table[ColName],";",""))

 

To check how many times ; is in the column 

pankajnamekar25
Super User
Super User

Hey Try this measure

CountOfSemicolons =

SUMX (

    'Users',

    LEN ( 'Users'[EmailList] ) - LEN ( SUBSTITUTE ( 'Users'[EmailList], ";", "" ) )

)

Thanks

 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors