After a long consumption-driven upswing , Denmark 's economy began slowing in 2007 with the end of a housing boom .