Welcome to SSC
The image in your post is a deadlink, so I literally have no idea what you're asking here. Don't post code as an image; post it as text (in code markup). Try to explain your goals. Sample data would probably really help here, but at a guess, I doubt you need to do this in SSRS, I imagine it could be achieve with COUNT and an OVER clause.
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.