Expand my Community achievements bar.

The next phase for Workfront Community ideas is coming soon. Learn all about it in our blog!

Calculated Column IF Statement with PROD function

Avatar

Level 3
Hello Workfront Community, I am running into an issue with a calculated column expression that I am trying to implement in a project report. Text mode included below. displayname=Web Revenue on Project linkedname=direct namekey=fixedRevenue querysort=fixedRevenue textmode=true valueexpression=IF({templateID}=5cf68aa5013d07e39626464fe1bf4ae8, PROD({fixedRevenue},0.85), IF({templateID}=560e8e40003a475314e84bf86b75a3e7,{fixedRevenue}, IF({templateID}=5c193194000fb4d68dce3bbf473728db, PROD({fixedRevenue},0.6),{fixedRevenue}))) valueformat=currencyStringCurrencyRounded The part that I need help with is the "valueexpression=" line. I am trying to create a nested IF statement that will look at the project's template ID, if it matches one of the values listed that I would like the column to perform the PROD function multiplying fixedRevenue by the value of 0.85, 0.6 or just return the full fixedRevenue value. I believe the issue may be in the way I am referencing "templateID" in this expression. Since this is a calculated column does it need to be "{template}.{ID} since template information is a reference element within Project according the API explorer? This is all very confusing since the formatting of these text mode codes varies slightly depending on where they are being developed. Any help is much appreciated!! Cameron Howitt
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 3
Hi Cameron, Try adding "" around your template ID's like this: valueexpression=IF({templateID}="5cf68aa5013d07e39626464fe1bf4ae8", PROD({fixedRevenue},0.85), IF({templateID}="560e8e40003a475314e84bf86b75a3e7",{fixedRevenue}, IF({templateID}="5c193194000fb4d68dce3bbf473728db", PROD({fixedRevenue},0.6),{fixedRevenue}))) Let me know if that works. Dan Dan Perkins

Avatar

Level 3
Hello Dan, This worked. Thank you! -Cameron Cameron Howitt