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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I would like to add a column with the sum of total rows.
However, it shows fail if I used "Allselected"
May I ask is there any other measure to achieve the same?
| ID | Total rows |
| 1 | 4 |
| 2 | 4 |
| 3 | 4 |
| 4 | 4 |
Thanks!
@Anonymous ,
try this or modify based on your requirement,
row count =
CALCULATE (
COUNTROWS ( VALUES ( 'tablename'[ID] ) ),
ALLSELECTED ()
)
Thanks,
@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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |