For years, Walmart seemed to understand exactly what its customers wanted. It developed complicated consumer analytics and used that data, along with relentless pressure on suppliers, to become a retail powerhouse that sold practically everything at the lowest possible prices.

A version of this article appeared in the March–April 2017 issue (pp.94–100) of Harvard Business Review.