Chiming in with my experience here. I have a 2004 LX470 where the speedometer was working maybe 10% of the time. I'd start the car, and it would either work for the entire drive, or not at all.
I swapped the tach and speedo motors, and confirmed that the speedometer now worked 100% and tach...