I'm not quite up to the task of making a homemade dishwasher detergent, and read how damaging vinegar and other things can actually be for your dishwasher. But I wanted something environmentally friendly, a more natural dishwasher detergent. I checked the EWG Database, they have great guides and a huge database where they rate products' safety based on the chemicals they include (THE best to search for the best environmentally friendly cleaners).
Please note, this is NOT SPONSORED, I simply bought some products that scored REALLY well on the EWG database and seemed to have great reviews for getting rid of white film in dishwasher, and figured I'd share how they worked for me, in case they might work for you!
Supposedly Lemi Shine products use citric acid to break down hard water residue and whatever is contributing to your cloudy dishes. Seventh Generation Dishwasher Detergent is a great environmentally friendly dishwasher detergent (and according to GE, dish detergent packs do better than liquid, but be careful if you have little ones at home who may mistake them for candy), but the Lemishine Booster is what really really did the trick. It didn't get my glasses 100% crystal clear but got them to about a 90, and cleaned the dishwasher completely.
Watch the video to see how they did (links under the video to purchase, if so inclined):