Thanks for quick reply.
I did try to use countrows() function before and it gave me following result and it is correct.
Measure = COUNTROWS(AttendanceDetails)
But I want to display matrix based on AttendanceStatusID.
Each attendanceStatusId has Attendance Description such as Present, Absent,etc..
I have a unique symbol for each AttendanceStatusID . See IMAGE 2 .
I used following measure (Replaced AttendanceStatusID with Symbol field)
Attendance symbol Measure1 =
Check First row and column Subtotal value, it should have 1 not AttendanceStatusID/Symbol in IMAGE 2.
The problem is that if we have single value across row it will display AttendanceStatusID/Symbol instead of rowcount value.
Let me know if you need more information.