# Template is not showing all selected accounts

**URL:** <https://community.silverfin.com/t/template-is-not-showing-all-selected-accounts/2475>\
**Category:** Templates\
**Created:** [December 4, 2023, 11:28am UTC](https://community.silverfin.com/t/template-is-not-showing-all-selected-accounts/2475 "2023-12-04T11:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Romy\_Vermeeren](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/romy_vermeeren/32/2295_2.png) [@Romy\_Vermeeren](https://community.silverfin.com/u/Romy_Vermeeren)\
**Post date:** [December 4, 2023, 1:43pm UTC](https://community.silverfin.com/t/template-is-not-showing-all-selected-accounts/2475/2 "2023-12-04T13:43:28Z")

</div>

Hi @bartanthonissen and welcome to the Community!

Mapping lists are period specific, so changing the mapping list can have some consequences indeed. We actually recently uploaded a case, that I think reflects the issue you are currently facing:

> [@CASE: changing mapping lists between periods and account locking impact on templates](https://community.silverfin.com/t/case-changing-mapping-lists-between-periods-and-account-locking-impact-on-templates/2457):
>
> It is not uncommon for firms to transition from one mapping list to another. This transition can stem from a variety of factors, including changes in company type, where different company types require different account mappings, or a strategic shift towards a more standardized mapping list. While such shifts bring several advantages, they can also introduce unexpected complexities within underlying templates. This is especially the case when these templates rely on comparisons between the previ…

The solution offered in this case will only work for templates that compare year end values.  
If your template is also used in periods that are not necessarily the year end, the possible solution would be a bit more elaborate.

Can you try if looking at the opening value solves the issue at hand?  
In your code it could look like this:

```auto
{% assign acc_nbr = acc.mapped_number %}
{% assign acc_selected = period.accounts | range:acc_nbr %}
{% assign acc_py_value = acc_selected.opening_value %}

```

kind regards  
Romy

---

_[View the full topic](https://community.silverfin.com/t/template-is-not-showing-all-selected-accounts/2475)._
