Issue: no data for 2015, however shown in the template

Hi

I have the following issue:

In the file https://vdl.getsilverfin.com/f/1592/327003/permanent_texts/21376743 there are no data for the year 2015, however data are being shown in the template.

This is the code:

{% stripnewlines %}
{% newline %}
{% ic %}
|—50%—
|---------:#
{% endic %}
{% nic %}
|—50%—
|—15%—:
|---------+
{% endnic %}
{% newline %}
|Bezoldiging boekjaar {{ period.year_end_date | date:"%Y" }}
{% assign bez = #618000+#618100+#618400 %}
|{{ bez | currency }}
{% if bez != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% nic %}
|  
{% endnic %}
{% newline %}
|Bezoldiging boekjaar {{ period.minus_1y.year_end_date | date:"%Y" }}
{% assign bez_1y = #618000+#618100+#618400:1y %}
|{{ bez_1y | currency }}
{% if bez_1y != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% newline %}
|Bezoldiging boekjaar {{ period.minus_2y.year_end_date | date:"%Y" }}
{% assign bez_2y = #618000+#618100+#618400:2y %}
|{{ bez_2y | currency }}
{% if bez_2y != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% newline %}
|Bezoldiging boekjaar {{ period.minus_3y.year_end_date | date:"%Y" }}
{% assign bez_3y = #618000+#618100+#618400:3y %}
|{{ bez_3y | currency }}
{% if bez_3y != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% newline %}
|Gemiddelde
{% assign gemiddelde_bezoldiging = (bez+bez_1y+bez_2y+bez_3y)/ct_years %}
|***{{ gemiddelde_bezoldiging | currency }}***
{% endstripnewlines %}

Goodmorning Sylvia,

the period has to be mentioned right after each hashtag. So the above statement should be

{% assign bez_3y = #618000:3y+#618100:3y+#618400:3y %}

Note that this is also the case for minus 1y, minus 2y, … so it has to be replaced across your template

Regards,

Michiel

Hi Michiel

Will do. Thank you!

Sylvia