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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Table Visualization: Getting total number of rows on current selection

Is there anyway we can get the count of rows that are currently selectd after applying all necessary filters?

One way I can think of is exporting the selection and then counting the rows in Excel. However, I am interested in showing this value along side the table.

 

How can I achieve this?

 

Thanks.

 

 

 

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Try to create a measure using the formula below and check if it works fine.

result= COUNTROWS(ALLSELECTED(TableName))


Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Try to create a measure using the formula below and check if it works fine.

result= COUNTROWS(ALLSELECTED(TableName))


Best Regards,
Angelia

Ashish_Mathur
Super User
Super User

Hi,

 

Try this calculated field formula

 

=COUNTROWS(Data)

Replace Data with your Table name.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.