You need 0 homeless and a wealth per capita of more than 5 (though it can round down so you can see 5 and it's really 5.4). So build more houses and more buildings in general.