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

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.