How to keep a long-term digital transformation on track

Some firms have been transforming digitally for years and understand that the process never ends. How do they stay focused on the right areas, especially when the technological goalposts keep shifting?