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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors