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

How to Count number of rows in every columns and store it in a new column

Hi,
I am just practicing some formulas on Power BI. I have one simple excel file which have some name(Player) columns with their scores.
Now i want to add one new column in a table which will count the number of zeros get for each player.

Please help me with this. Sharing the table screenshot 

RuchikaSarve_0-1697088753491.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi , @Anonymous 

 

Based on your description, I'm wondering if the value 0 in your table needs to be counted.

 

I created the same sample as you and unpivot columns like this:

vtianyichmsft_0-1697163485092.png

 

You can refer to the documentation for details:Unpivot columns - Power Query | Microsoft Learn

 

Result is as follows :

vtianyichmsft_0-1697161607962.png

 

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Anonymous
Not applicable

Hi @Anonymous 

I understood the given solution but i want to count number of zeros for every person seperately and show it on other table like example sumit got 2 zeros and deepak got 5 zeros. This result i want to execute. sharing the sample table from which you can understand the requirement.

RuchikaSarve_0-1697172432671.pngRuchikaSarve_1-1697172466103.png

 

 Thanks!!

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.