Subtraction on Custom Fields in Report
Hi there - can someone help me figure out the following? I have 2 Custom Fields, and I need to subtract one from the other, but cannot seem to get it to work.
I created the Custom column for a Report 'Active # of Weeks'; I need to subtract the # of Days on Hold from the Actual Duration (Days) to get this value. The results I am getting are simply a 'negative' of the number I enter for the # of Days on Hold (i.e., if I enter 2 for # of Days on Hold, I get a '-2' returned). Please disregard my 'Weeks' in the below, it is another issue, but I really need to get this calculation working and can fix that later.
Below is my formula:
aggregator.namekey=Active # of Weeks
aggregator.valuefield=DE:Active # of Weeks
displayname=Active # of Weeks
linkedname=direct
namekey=Active # of Weeks
querysort=DE:Active # of Weeks
textmode=true
valueexpression=SUB({DE:Actual Duration (Days)}, {DE:# of Days On Hold})
valuefield=Active # of Weeks
valueformat=doubleAsInt