Yes, you don’t have to buy commercial dishwasher detergent, you can make some at home.
This dishwasher detergent is for your dishwasher, not for using for handwashing dishes.
1/2 cup citric acid
1 1/2 cup borax
15 drops of lemon essential oil
Combine and store in a sealable plastic container.
Pour (or use a scoop) to pour into your dishwasher’s detergent compartment and use the wash cycle as usual.