Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet 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 |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 47 | |
| 44 |