# Profit last year

**URL:** https://community.silverfin.com/t/profit-last-year/1903
**Category:** Templates
**Created:** [August 19, 2020, 8:49am UTC](https://community.silverfin.com/t/profit-last-year/1903 "2020-08-19T08:49:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Zena](https://avatars.discourse-cdn.com/v4/letter/z/e47c2d/32.png) [@Zena](https://community.silverfin.com/u/Zena)
#### Post date: [August 19, 2020, 8:49am UTC](https://community.silverfin.com/t/profit-last-year/1903/1 "2020-08-19T08:49:55Z")

</div>

Hi

I want to refer to the result (profit or loss) of previous year. (or even 2 or 3 years ago)  
How do I do this?

---

<div class="post-metadata">

### Author: ![agustin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/agustin/32/1207_2.png) [@agustin](https://community.silverfin.com/u/agustin)
#### Post date: [August 19, 2020, 3:43pm UTC](https://community.silverfin.com/t/profit-last-year/1903/2 "2020-08-19T15:43:14Z")

</div>

Hi Zena,

Let’s say that the value you want to refer, is defined in another template and a result tag is created there. You will need to know which is the handle of that template and which one is the result tag name.

Then, you can refer to that result with the following syntax:

> {{ period.reconciliations.template\_handle.results.result\_tag\_name }}

The previous code will refer the variable from the same period. So, to refer to the same variable from the previous year, you can use “minus\_1y”, like this:

> {{ period.minus\_1y.reconciliations.template\_handle.results.result\_tag\_name }}
> 
> {{ period.minus\_2y.reconciliations.template\_handle.results.result\_tag\_name }}

Also, you can apply the same logic if you are getting the information directly from the accounts. In that case (for example if you want to reach the accounts classified as revenue) you can use:

> {{ period.accounts.revenues }}
> 
> {{ period.minus\_1y.accounts.revenues }}

> [@CASE reference values across templates by using result tags](https://community.silverfin.com/t/case-reference-values-across-templates-by-using-result-tags/1157):
>
> If you want to reference a certain value or variable from recon template A in another template, there’s a way to do it with the so-called result tags in STL. They work like this (bulb just type in result and press TAB to get this preformatted code bulb): {% result 'name' content %} where the name is a shortname you can choose, and the content is the value or variable you want to reference to. Let’s say we have this variable done\_prepayments in our recon template Prepayments (which is al…

In the previous post there is a detailed case showing the use of result tags that could be useful.  
Also, there is an explanation of how to reference results in case they are defined in the same template you are working on and not taken from a different one (see: "_How to call on that result then from a previous period?_)

I hope this help you!
