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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Pbiuserr
Post Prodigy
Post Prodigy

Count rows visible in table

Hello,

I have a table and I would like to create a measure which will display number of rows displayed in the table (including all filters, slicers etc) 

Was thinking of COUNTROWS ( ALLSELECTED ( [Fact Table] ) ) but it doesnt really tell the correct number 

 

I have ID from fact table and rest of columns from referential tables

5 REPLIES 5
SpartaBI
Community Champion
Community Champion

@Pbiuserr hey can you share a sample data and the explain the visual you want to create.

Hey,

Visual is already created (table). It's a drillthrough page, and table inside it (ID from fact table and bunch of dimensions associated from referential tables). I want to count all lines visible in the drillthrough. So if somebody drills on 2 rows, the count will be 2, if on 2000 the count will be 2000.

 

Seems like COUNTROWS ( ALLSELECTED ( Fact Table) ) or COUNTROWS ( ALLSELECTED ( Fact Table[ID] ) ) will do the job but I am not entirely convinced if its most efficient way.Moreover I struggle to add this measure to the table, for some reason. If its normal table in the page then its fine but not in this drillthrough worksheet

Hey. 
I'd love too but I think the client would not approve to have 3rd party looking at his company data 😞 and preparing some sample data, yes I might but its standard data, fact table and bunch of referential tables so Idk why its so slow

Amm..ok so let's wait and see if someone else understand and if not prepare a replica with demo data and we could look together in zoom

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.