The Summary Platform gets you what you want. Then some simple manipulations and an update and you have your answer.
Tables==>Summary
Select both ID and use_yn as your grouping variables.
Make sure to unselect "Link to Original Data Table: and then click on OK.
The new data table has all combinations of ID and use_yn, and you only want where use_yn = 1, so, click on one cell that has use_yn with the value of 1. Then right click and select
Select Matching Cells
All rows with use_yn are selected.....but what you want are the opposite selection, so you can delete them.
Move the cursor to one of the selected rows, and then into the RowState column for that row. Right click and select Invert selection. Now just go to one of the newly selected rows, and right click and select Delete Rows. You now have the counts that you requested.
To move the data back into the original data table, simply select the original table and go to
Tables==>Update
In the dialog window, select your summary table as the one to update with.
Select Match Columns, and select both ID and use_yn as matching cells, and click on OK. The N Rows column is your count
Jim