Hi @Yishay,
You may want to look at the 3rd-party app called the Advanced Formula Booster for this.
The Advanced Formula Booster has many very unique features as you’ll see below, one of which is its capability to write formula results to any type of columns (it doesn’t use the formula column at all).
DEMO OF A FORMULA SOLVING YOUR ISSUE
Here is a quick demo:
For this, all you need is to create a formula at the sub-item level. Here is its syntax:
Explanation: the formula runs at the sub-item level every time you change the value of a duration column. What it does is sum up the {Durations (days)} columns of all the sub-items under the same parent. That’s what the ParentSubItems prefix means (the sub-items of the parent of the current sub-item, i.e. the one that triggers the formula) and writes the result into the parent’s Duration (days) column.
The Duration (days) column being numeric, it can be attached to the Timeline column, as requested.
For this, you only need 1 automation:
DEMO OF A FORMULA PUSHING IT FURTHER
Now, let’s say you want to push the concept further as I see you have a Due Date column at the project’s level. Let’s say we want to set the timeline from the Due Date backwards. And let’s say you want to only take into account business days. I added a Timeline 2 column and a Duration 2 column, but did not tie them together.
This is done with the same trigger but this new formula:
In Line 2, I store the total duration in [Total Duration] and write it to the Parent’s Duration 2 column in Line 3 (same as the previous formula up to here).
In Line 5, I take the Parent’s Due Date and subtract the total duration, using the ADDWORKINGDAYS function which only takes into account business days (in this case, Monday to Friday, but this can be customized). It gives me the date the project should start to finish at the due date.
In Line 7, I set the parent’s timeline so it goes from the calculated Start Date to the Due Date.
Hope it gives you a solution to your problem, as well as ideas on how to push it further!