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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Count rows in Power Query

Hi 

I want to add a new column in Power Query and count the number of PN in the new column.

I made a result in Excel table. could you teach me how to do it in power Query?

 

Thanks 

 

PeterWu_1-1653958190258.png

PeterWu_2-1653958228232.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

There should be different ways to do it, List.Count or Groupby then join, file attached for your reference

Vera_33_0-1653961275546.png

 

Vera_33_1-1653961287999.png

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous 

 

Sorry, One more question. If I want to get a percentage of the new column, for example it should be 33% in both AA1 and BB1. how should I do on the coding

Anonymous
Not applicable

Hi @Anonymous 

 

You mean you don't need count = 3, but percent instead? Buffer the list as well

Vera_33_0-1653974082939.png

 

Anonymous
Not applicable

Hi

 

Which way is more efficiency if I have huge data set?

Anonymous
Not applicable

Hi @Anonymous 

 

List, buffer the list first

Anonymous
Not applicable

Hi @Anonymous 

 

There should be different ways to do it, List.Count or Groupby then join, file attached for your reference

Vera_33_0-1653961275546.png

 

Vera_33_1-1653961287999.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.