Though not fully understanding all the calculation logics in your workbook,
your two problems are caused by "Desired View" that you placed on Columns shelf.
Check "show header" for "Desired View" on Columns shelf, and you will see the cause clearly.
Drag "Desired View" from Columns shelf, and drop it onto the first "ATTR([Number of Records])" card (I mean the left one).
Your two problems can be solved by this.
While another problem appears, the size