You can use speed as a proxy for power on a trainer. Just be careful of the influence of press-on force, tire pressure and the tire itself. I sometimes run VO2MAX tests for other riders on my CompuTrainer and of course their tires are all different. I have been astonished to find out how much difference there is in press-on force when I calibrate their tires for power. It's really eye-opening.