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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Cell entry count in another table.

Hi,

I have a large table with 165 columns and 170,535 rows called full_stats. Not all the rows have data in them.

I want to create a new table that lists all the column headers from full_stats as rows under one column, and another column containing the number of entries (COUNT) in each of the columns in full_stats.

What would be the best way to go about this?

Thanks in advance,
A. Noob. 

2 ACCEPTED SOLUTIONS
v-xiaosun-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please use Power Query to copy your initial table and paste it as below. 

vxiaosunmsft_0-1670306821528.png

Then follow these steps in Table(2).

1, Select all columns and then right click and select "unpivot columns".

vxiaosunmsft_1-1670306992671.png

2, Select the first column and then select "group by", select "OK".

vxiaosunmsft_4-1670307322204.pngvxiaosunmsft_3-1670307160467.png

3, You will get the expected output, and the select "close & apply".

vxiaosunmsft_5-1670307437701.png

 

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ xiaosun

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

Hi @Anonymous ,

 

Thanks for your message.

If your column is text field, you could replace the blank with "null" before your steps. Here are steps.

Sample data:

vxiaosunmsft_0-1670377616139.png

Select the column and then click "replace values".

vxiaosunmsft_1-1670377698366.pngvxiaosunmsft_2-1670377722124.png

Final output:

vxiaosunmsft_3-1670377777675.png

 

Best Regards,
Community Support Team _ xiaosun

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

3 REPLIES 3
v-xiaosun-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please use Power Query to copy your initial table and paste it as below. 

vxiaosunmsft_0-1670306821528.png

Then follow these steps in Table(2).

1, Select all columns and then right click and select "unpivot columns".

vxiaosunmsft_1-1670306992671.png

2, Select the first column and then select "group by", select "OK".

vxiaosunmsft_4-1670307322204.pngvxiaosunmsft_3-1670307160467.png

3, You will get the expected output, and the select "close & apply".

vxiaosunmsft_5-1670307437701.png

 

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ xiaosun

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

Anonymous
Not applicable

Thank you very much for you help. That did the trick.

I did however, present me with another issue. After following the steps above, the resulting count column is not accurate for some of the counts. 

In some of them, one that are text fields not numbers, it is giving me a count of the full 170,535. when I know there are nowhere near that many entries in those columns.

This only happens on text data. It is like the empty cells are being counted as well. Is there something I can do to prevent this?

Thanks.

Hi @Anonymous ,

 

Thanks for your message.

If your column is text field, you could replace the blank with "null" before your steps. Here are steps.

Sample data:

vxiaosunmsft_0-1670377616139.png

Select the column and then click "replace values".

vxiaosunmsft_1-1670377698366.pngvxiaosunmsft_2-1670377722124.png

Final output:

vxiaosunmsft_3-1670377777675.png

 

Best Regards,
Community Support Team _ xiaosun

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

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.

Top Solution Authors