I want to add a calculated column to my report showing the average number of hours per week of that task. I tried doing a formula - planned hours / duration - but it shows as blank. How do I use the Planned Hours field in a calculation?
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hmmmm, a few things to be aware of.
Formulas need to be wrapped with expressions (sort of like Excel if you are familiar)
There is a list of them here. You should bookmark
You also need to use the proper names. Workfront has a few instances of confusing system names. For instance, planned hours is actually "workRequired".
You should get comfortable reading the API Explorer to find system names. Or you can select them from the UI while building reports and switch to text mode.
Eventually, you end up with something like this.
valueexpression=PROD(DIV(DIV({workRequired},60), DIV({duration}, 60, 8)), 5)
You will also note, when using the value of a data field in Workfront it needs to be wrapped in curly brackets {likeThis}. You can adjust numbers accordingly
Thank you for the detailed explanation! I think this will work - going to try it out in the AM
Views
Replies
Total Likes
Hey Tony, did you manage to make it work?
I am under a similar situation here - I am adding a calcualted field that would use the Fibonnaci scale to return an X amount of hours based on the input from Planned Hours, however, I can't manage to make it work, no matter what I try, the formula (I am using IF) always returns the false expression. I am guessing is because of the word "Hours" that gets added to the field once in view mode?
@Jose Mora‚
Views
Replies
Total Likes
No, I ended up abandoning the idea and found another way to do what I wanted to do. It was a simpler solution that didn't require a calculated field.
Views
Replies
Total Likes
Hi Tony, I found a solution to my "problem". The Planned Hours is somehow reporting in the backend, other data different than the amount of hours, it is actually reporting minutes if I am not mistaken. So to make it work, I did enter the formula as follows, it was the only way I could get Planned Hours to show accurate data.
IF(Planned Hours<1*60,2,IF(Planned Hours>=1*60&&Planned Hours<2*60,4,... so on...
Hope it works!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies