Dimensional Analysis Beyond the Pi Theorem