Make sure the bottom of the dishwasher is draining correctly and it is not clogged with gunk.
Take out the bottom basket of the dish washer.
Unscrew the center of the water blade on the bottom, take out the strainer if there is one down there.. again make sure that is all cleaned out.
Clear out any gunk collected down in there. You may see a tube poking up.. That is what the water squirts out of, make sure there is no debris stuck in it and that the tube is cleaned out. .
Put it all back together.
Either purchase dishwasher cleaner and use it in an empty machine on the highest heat cycle or use vinegar..
This should clean it out..
Make sure you are really rinsing off your dishes prior to placing them in the machine.. unless you have one with a disposal.
And if you have hard water in your area.. yes, it can leave spots on dishes and glasses. Look into purchasing rinse products for dishwashers.