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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rcosarba
New Member

Counting Unique Rows after Splitting Row by Delimiter

Hi All,

 

I am using survey data and I am having trouble counting the responses after splitting rows by delimeter. I have one questions that is a "select all that apply" question and in order to do counts of each answer, I split them into rows by delimiter. This worked, but now my response count is off. I was using a COUNTROWS formula but now there are more rows than actual responses, is there a way to count unique Index numbers or use a different column with unique content?

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ryan_mayu ,thanks for your quick reply, I will add more.

Hi @rcosarba ,

If I understand correctly, you are converting your data to something like the following?

vzhouwenmsft_0-1717654061095.png

vzhouwenmsft_1-1717654074913.png

You can try using the 'SUMMARIZE' function with 'COUNTROWS'.

vzhouwenmsft_2-1717654249575.png

SUMMARIZE function (DAX) - DAX | Microsoft Learn

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

View solution in original post

4 REPLIES 4
Ray_Minds
Continued Contributor
Continued Contributor

1. You could be create a measure and use (DISTINCTCOUNTNOBLANK) DAX function.
2. If point 1 will not work please provide some sample data so that I would be able to better help you to solve this problem.

Did I answer your question? Mark my post as a solution! This will help others on the forum!




Anonymous
Not applicable

Hi @ryan_mayu ,thanks for your quick reply, I will add more.

Hi @rcosarba ,

If I understand correctly, you are converting your data to something like the following?

vzhouwenmsft_0-1717654061095.png

vzhouwenmsft_1-1717654074913.png

You can try using the 'SUMMARIZE' function with 'COUNTROWS'.

vzhouwenmsft_2-1717654249575.png

SUMMARIZE function (DAX) - DAX | Microsoft Learn

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

This worked perfectly! Thank you!

ryan_mayu
Super User
Super User

could you pls provide some sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.