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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Count text with comma delimiter in a column

I want to count text which has comma delimiter. See below screenshot

EalTim_0-1647270336520.png

my expected result should be 

EalTim_1-1647270393874.png

This is counting Answer column and comma delimiter separate one text from the other.

How can i achieve this?

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

Create a custom column from Power Query like below:-

 

List.Count(Text.Split([Answer], ","))

Samarth_18_1-1647271270374.png

 

 

Output:-

Samarth_18_0-1647271182352.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

Create a custom column from Power Query like below:-

 

List.Count(Text.Split([Answer], ","))

Samarth_18_1-1647271270374.png

 

 

Output:-

Samarth_18_0-1647271182352.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

@Samarth_18 thanks for the solution.
However, I getting Error for those that has null value in Answer column.
How can i fix it?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Kudoed Authors