When is a DUI a felony in Minnesota?

The 3rd time your caught driving under the influence in Minnesota it's considered a felony.