if the dishwasher leaves solid detergent on the dishes, try using less detergent (just one teaspoon of powder) and/or switching from powder to liquid

if there is hard water, there are some products for that, e.g.


some things you might want to have if guests are coming over:

all of those items should be relatively clean.