get viewcode to work on all the measures