Forum Discussion
PowerBI123456
6 years agoPost Partisan
Countrows by ID
Hi, this seems like it would be simple to do, but I cant figure it out. How can I countrows by ID via a measure? For example, ID 1 has 4 rows. Thanks!
I prefer this one
Measure = CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[ID]))
7 Replies
- az38Community Champion
I prefer this one
Measure = CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[ID]))- PowerBI123456Post Partisan
az38 Thanks! But that is counting all the rows for me. I want to count it by ID.
- az38Community Champion
also you can create a calculated table
New Table = SUMMARIZECOLUMNS('Table'[ID], "Count By ID", COUNT('Table'[ID]))