Partial work for badge report.

Just need business rule fix in related issue and the functionality should work.