<td style="text-align:center">
{!IF(Project.pse__Planned_Hours__c - {!grandtotalAH})> 0,Project.pse__Planned_Hours__c-Project.Total_Billable_Hours__c,0)}

I want to subtract {!grandtotalAH} inside the IF condition. can somebody suggest any workaround or right way achieve this?


Once you're in a "merge field", you don't need to keep merging:

{!IF(Project.pse__Planned_Hours__c - grandtotalAH > 0, 
Project.pse__Planned_Hours__c - Project.Total_Billable_Hours__c, 0)}
  • gah, beat me by mere seconds – Derek F May 19 '17 at 14:06
  • @DerekF You'll have a lot of time today, I'm going to be busy all day at work. – sfdcfox May 19 '17 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.