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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Splitting up names and recording sum of count

Hi there,

 

I have a column of names in a table that looks like this: 

 

Joe Blogs

John Smith

Sarah Person; John Smith

Joe Blogs

 

I want to be able to graph the count of each person, such that:

Joe Blogs: 2

John Smith: 2

Sarah Person: 1

 

However I can't manage to separate it when there are two names, so it looks like this:

Joe Blogs: 2

John Smith: 1

Sarah Person; John Smith: 1

Sarah Person: 1

 

How might I be able to do this without creating a new column etc?

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

Go to query editor>split columns :

v-kelly-msft_0-1606468331241.png

And you will see:

v-kelly-msft_1-1606468364038.png

Then remove blanks:(using replace values)

v-kelly-msft_2-1606468408467.png

Finally create a measure as below :

 

Measure = COUNT('Table'[Name])

And you will see:

v-kelly-msft_3-1606468509915.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

Go to query editor>split columns :

v-kelly-msft_0-1606468331241.png

And you will see:

v-kelly-msft_1-1606468364038.png

Then remove blanks:(using replace values)

v-kelly-msft_2-1606468408467.png

Finally create a measure as below :

 

Measure = COUNT('Table'[Name])

And you will see:

v-kelly-msft_3-1606468509915.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@Anonymous , best id split the column in power query by rows

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors