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! Request now

Reply
Anonymous
Not applicable

Total rows column

Hi, I would like to add a column with the sum of total rows.

However, it shows fail if I used "Allselected"

alexng_0-1663899279589.png

May I ask is there any other measure to achieve the same?

IDTotal rows
14
24
34
44

 

Thanks!

2 REPLIES 2
Arul
Super User
Super User

@Anonymous ,

try this or modify based on your requirement,

row count = 
CALCULATE (
    COUNTROWS ( VALUES ( 'tablename'[ID] ) ),
    ALLSELECTED ()
)

Thanks,





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Anonymous
Not applicable

@Arul still the same error, I think its because of the direct query modeling

So trying to see if any simple DAX can achieve the same.

Thanks

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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