Hi team,
i have attached the image with formula. the formula i wrote to explain you the values, but in real file its calculated through the cell number. Instead of cell number i mentioned the field which formula is using. Please let me know how to calculate the formula in Alteryx. You can use the mentioned values in PM(Previous Month and Actual values.

Red color: Variable cost fields and Values
Blue: Rate fields and values
yellow: Factor fields and Values.
Please let me know if you have any questions in the formula. I want the results of each row. Suppose if you see Factor Limestone so i mention the formula in front of that row in the formula field and so on. Please need help on this.
Best Regards,
Kaustubh