'Power Bi subtract two columns which already has measure

I have one column that has measure calculation in it,

Total IOP = Production[Production] + CALCULATE([Openinig inv])

I want to subtract the above column with another column,

Closing Inventory = Production[Total IOP] - Production[Total Sales]

but, I get the below error

A circular dependency was detected: Production[Closing Inventory], Production[Total IOP], Production[Closing Inventory].

I expect to have them subtracted



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source