I have created a module with multiple line items and values for FCST and Budget.
I need to calculate the Variance which has a different formula for each line item.
What is the best way to do this?
You can add another module with line item subsets and use IF function to go through different line items.
Also, you can use IF function in each of your line items.
Try out Version Formulae (there is an article) https://help.anaplan.com/10c7423e-7824-4309-a192-93c6c57d3b63-Add-Version-Formula-
There is some more material for you: https://community.anaplan.com/t5/Chapter-1/1-07-02-Line-Item-subsets-for-Version-Formulae/ta-p/71193