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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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