MEXICO CITY—Growing numbers of companies are deciding to limit their investments in Mexico because of spiraling drug-related violence in one of the world's most important emerging markets.

The latest is Swedish appliance maker Electrolux AB, which said Thursday it had chosen Memphis, Tenn., over locations in Mexico for a $190 million appliance factory that will employ 1,200 people.

The...