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

**URL:** <https://community.silverfin.com/t/issue-no-data-for-2015-however-shown-in-the-template/1473>\
**Category:** Templates\
**Created:** [May 9, 2019, 7:40am UTC](https://community.silverfin.com/t/issue-no-data-for-2015-however-shown-in-the-template/1473 "2019-05-09T07:40:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvia.debaeremaeker](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sylvia.debaeremaeker](https://community.silverfin.com/u/sylvia.debaeremaeker)\
**Post date:** [May 9, 2019, 7:40am UTC](https://community.silverfin.com/t/issue-no-data-for-2015-however-shown-in-the-template/1473/1 "2019-05-09T07:40:01Z")

</div>

Hi

I have the following issue:

In the file [https://vdl.getsilverfin.com/f/1592/327003/permanent\_texts/21376743](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.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/084bcd02fb862ffb4f37fda6194d809f7914047b.png)

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 %}  
| &nbsp;  
{% 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 %}

---

<div class="post-metadata">

**Author:** ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)\
**Post date:** [May 9, 2019, 8:35am UTC](https://community.silverfin.com/t/issue-no-data-for-2015-however-shown-in-the-template/1473/2 "2019-05-09T08:35:56Z")

</div>

> [@sylvia.debaeremaeker](#):
>
> ```auto
> {% assign bez_3y = #618000+#618100+#618400:3y %}
> 
> ```

Goodmorning Sylvia,

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

```auto
{% 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

---

<div class="post-metadata">

**Author:** ![sylvia.debaeremaeker](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sylvia.debaeremaeker](https://community.silverfin.com/u/sylvia.debaeremaeker)\
**Post date:** [May 9, 2019, 8:57am UTC](https://community.silverfin.com/t/issue-no-data-for-2015-however-shown-in-the-template/1473/3 "2019-05-09T08:57:54Z")

</div>

Hi Michiel

Will do. Thank you!

Sylvia

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [May 9, 2019, 8:58am UTC](https://community.silverfin.com/t/issue-no-data-for-2015-however-shown-in-the-template/1473/4 "2019-05-09T08:58:48Z")

</div>


