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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Count words (tags) from a column

Hello!

 

I have several columns with tags that I've prepared based on text comments by survey respondents. 

 

Now I would like to show both the number of comments collected (this is easy) and the number of tags delivered from that comments (one comment can generate 1, 2, 3... tags). I have a column like this that works great for a word cloud extension:

 

TagsQ1

greenapples

greenapples orangepeaches

orangepeaches yellowbananas

greenapples orangepeaches

etc

 

What is a possible solution to count tags in each row? I have empty rows also in this column, because not all respondents were leaving comments.

 

Thank you!

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

In query editor, click split columns and then select the column containing text then click uppivot, finally click group by with aggregation count based on the attribute column.

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

Dear Jimmy from @v-yuta-msft,

 

Thanks for you reply! I've tried and It worked, but I'm still struglling how to visualize the count of tags. Basically I have 3 columns with tags in one table relevant to three different questions from the survey. Previously I've appended the table with tags to a primary database containing all answers and demographics data using the unique ID of each respondent.

 

So what is the most optimal way to link the count data of tags with the primary database, because I need all slicers to work properly (like they work with the count of comments)? To be super clear, when I select city A and Department C an exact number of collected comments is shown for this selection, so how do I do the same for tags?

 

Thanks.

@Anonymous ,

 

Could you share some sample data and clarify more details about your requirement?

 

Regards,

Jimmy Tao

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