I bought my 2nd X5 - a 2002 BMW X5 4.6is with 120k miles on it.
After two weeks of owning the transmission failed and had to be replaced at a cost of $4k.
The dealer wanted $8k to replace, but did work with me on the installation of the rebuilt one I found online.
The vehicle is powerful and fun to drive, but I've spoken with other owners who have experienced tranny failure, so this may be a systemic issue.
My first X5 was a 2001 3.0 and I did not have any issue with it.
† Edmunds.com received the highest numerical score in the proprietary J.D. Power 2014 Third-Party Automotive Website Evaluation Study℠. Results based on responses from 3,381 responses, measuring 14 companies and measures third-party automotive website usefulness among new and used vehicle shoppers. Proprietary study results are based on experiences and perceptions of owners surveyed from January 2014. Your experiences may vary. Visit jdpower.com.