Hi,
I will try to explain what I want to do.
If the current year is 2018 then the previous year 2017.
Because the current year 2018 has not yet expired, so there are no actuals for the complete year 2018. Therefore, the starting point is only the previous year (at the moment it is 2017). For the budget forecast growth rate add up we do not use the actuals of 2016, 2015 etc. We only use as a starting point the previous year, at the moment it is 2017, and when we will be in 2019 in the future then we have the actuals of the previous year 2018 etc. etc.
Revenue actual 2017 + growth percentage = revenue budget forecast 2018.
Revenue budget forecast 2018 + growth percentage = revenue budget forecast 2019.
Revenue budget forecast 2019 + growth percentage = revenue budget forecast 2020.
Revenue budget forecast 2020 + growth percentage = revenue budget forecast 2021.
etc. etc. etc.
The code for the growth_perc works perfect. Thanks
How do I make the above mentioned situation?
I have the following code but somewhere it goes wrong.
{% assign growth_perc = 1.02 %}
{{ growth_perc }}
{% assign revenue = period.accounts | range:“70” %}
{% assign start_date = period.year_start_date | date:"%Y" %}
{% assign end_date = period.year_end_date | date:"%Y" %}
| Description 1 |{% if start_date == end_date %}{{ start_date }}{% else %}{{start_date}} - {{end_date}}{% endif %}{% for i in (1…5) %} | {{ INT(start_date+i) }}{% endfor %}
|-----------|---------{% for i in (1…6) %}|----------{% endfor %}+
|Revenue {% for i in (1…6) %}| {{ -1revenue(growth_perc**i) | currency }}{% endfor %}
see print screen
Description 1 gives the wrong revenue actual 2017, that’s not good. The revenue 2017 is a actual. The actuals must remain as actuals in the table. Budget forecast turnover 2018 should be actual revenue 2017 x growth_perc. Budget forecast revenue 2019 should be budget forcast revenue 2018 x growth_perc. Etc. etc for the following budget forecast years.
Description 2
This is only a test to show the actual 2017. As you can see in description 1, the growth percentage is added to the actual 2017 ( 238.128.17 x 1.02 = 242.890,73)