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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MatheusGuzman
Regular Visitor

Need help counting number of times a name is mentioned in each column, to represent in column graph.

Hi!

 

At the moment i´m extracting values from an external API, corresponding to text that users fill in.

 

MatheusGuzman_0-1733760151915.png

I need to make a column graph, showing how many times each name is mentioned. Problem is, everytime a user fills with his name he ends up doing it in a different manner each time. I have cases where the form is filled with multiple names too.

Already tried dividing the column in the multiple names case, but i wasnt able to translate the correct info to the graph this way, my only objective is being able to count how many times each name was mentioned, for each column.

 

Any idea guys?

9 REPLIES 9
Anonymous
Not applicable

Hi @MatheusGuzman ,

 

When I reviewed this post, I saw this post seem not to be solved.

Could you please tell us have you solved it in these days. It's good to see you share us with your own nice solution or accept the helpful replies from users.

In summary, just as Syk said, it is best to solve it from the source, fill it in according to the regulations when entering, and you can add prompt requirements to the input box.

Or you can do it through Power Query's transformation. Use the fuzzy matching in Power Query.

How fuzzy matching works in Power Query - Power Query | Microsoft Learn

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Omid_Motamedise
Super User
Super User

Could you provide sample of data in type table and also your desired result?

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

So for instance:

MatheusGuzman_0-1733830606796.png

The graph above is incorrect, because each bar contains a unique name, even if it´s the same name but typed in a differente way. I need for example to group all "Henrique", "Rogério", and "Jose Mario" each one for his own column.

THe differences is just for caracter "e" or other caracters also  come with the same issue?

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

Other caracters too but is not really the main issue, i can just fix the names selecting the column and switch to the correct names after. The real problema is count multiple names in same column.

Anonymous
Not applicable

Power Query is built for garbage in. I would try Table.FuzzyGroup. Then you can just use the count aggregation. Play with the parameters till it gets right.

 

--Nate

Thanks for the tip, i´m going to explore more with this function!

Syk
Super User
Super User

This is just a case of garbage in, garbage out. You won't be able to account for the numerous ways a user will input information. There needs to be guardrails where the user is entering this data instead of letting it run wild and forcing complex logic on the backend. Can you add a first name and last name field? This should at least let users know you're expecting one name and it should be somewhat similar everytime.

I see, but even if i did that, the possibility of having two people´s name in the same column is still relevant. I could determine specifically with those users to only fill with their first names, but the problem maintains. I need a way to count even if i have multiple names in the same column, each name mentioned.
I tried making a sheet with the names of the user, to use as an index, but i don´t know how to count comparing the original table with the index.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors