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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to calculate the number of non-blanks in each row?

Screenshot 2020-12-09 094334.png

 

Hi, I have a table with 27 colums with one called last name and 26 questions, like shown in picture. Since someone only answer some of questions and leave the blank for others. I want to calculate how many questions a person answer in a new column. How can I do that?

1 REPLY 1
camargos88
Community Champion
Community Champion

@Anonymous ,

 

You can unpivot the values using Power Query.

Select the name column and right click -> unpivot other columns, the result is:

NAME, ATTRIBUTE, VALUE

 

With this dataset you can easily count the blank values or nonblank values.

 

Unpivot columns (Power Query) - Excel (microsoft.com)



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

Proud to be a Super User!



Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.