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

Straight Table how to add one more column for count number of row ?

Hi All

I have below table , i like to add one more column it will display 1 on every row , and i can sum up this column , so that i know this table have how many row.

Paulyeo11_0-1609390665161.png

https://www.dropbox.com/s/s0zmu80qoyioghq/PBT_V01038%20count%20number%20coy%20at%20table.pbix?dl=0

Above is my PBI file .

 

Paul

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I doubt there is dynamic row counter for table. Please log a new idea- https://ideas.powerbi.com/ideas/

 

You have create a column like

 

Countrows(summarize(Table, Table[Company], Table[Group_]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous , I doubt there is dynamic row counter for table. Please log a new idea- https://ideas.powerbi.com/ideas/

 

You have create a column like

 

Countrows(summarize(Table, Table[Company], Table[Group_]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , I think distinctcount of company. File attached after signature

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , Are you looking for distinctcount(Table[Brand])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit

What i need is count number of row on the striaght table. for example i have below table , which compute which are the new account in 2021 ? and i like to add one more column to display count number of row.

Paulyeo11_0-1609392118488.png

 

Paul

amitchandak
Super User
Super User

@Anonymous , Nor clear Any one of the two measures

 


Measure= calculate(countrows(Table))

or
Measure=  calculate(countrows(Table),allselected(Table))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit

I try using youe expression , i get 23 , which is wrong , how to get 8 ?

Paulyeo11_0-1609391539105.png

https://www.dropbox.com/s/781a9g77rklb267/PBT_V01038%20count%20number%20coy%20at%20table.pbix?dl=0

Above link is my PBI file

Paul

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