There are specially designed products for the dishwasher on the market. Pro Clean Concentrate is a replacement for all commercially available cleaning agents. It wasn't developed specifically for the dishwasher, but we've already had very good experiences with it.
Just try it out for yourself.
If you wish to continue using your normal dishwashing detergent, you can also add a few sprays to the dishwasher with the spray bottle of the diluted or pure Pro Clean Concentrates. In the case of water containing a lot of lime, this can support the cleaning effect as well as preventing the formation of lime stains.
An additional effect is that you avoid unpleasant odours with Pro Clean. Clean the interior of your dishwasher regularly with Pro Clean Concentrate. You will have a lot of pleasure due to the good results and perceive a pleasant smell.