Handle multiple formulas for calculated attribute