# CASE: show text on an indicator

**URL:** <https://community.silverfin.com/t/case-show-text-on-an-indicator/1460>\
**Category:** Cases\
**Tags:** unreconciled, unreconciled\_text\
**Created:** [April 25, 2019, 1:55pm UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460 "2019-04-25T13:55:25Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [April 25, 2019, 1:55pm UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460/1 "2019-04-25T13:55:25Z")

</div>

Ever wondered why an indicator shows up in a template? Sure, we all know when hovering over an indicator (a red triangle) it shows the difference between values. But that’s about it.

💡  
No more though, as you can add the **unreconciled\_text** to your code explaining with text and numbers why an indicator is showing, like this:

```auto
{% unreconciled some_value as:indicator unreconciled_text:some_var %}

```

This is a game-changer, as you are not forced to create additional warning texts! Cases are endless:

- show an indicator when a value has to be positive
- shown an indicator is an input cannot be empty
- shown an indicator with the formula we use to get to be reconciled or not
- …

A preview (easy example though):

 ![05](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/5598db05a5d7d916c356d482231fdcbac5b84a02.png)

Example code:

```auto
{% assign accounts = #70 %}

{% stripnewlines %}
| Account link
| Value
{% newline %}
|----80%----
|----20%----:#
{% for acc in accounts %}
  {% newline %}
  | {{ acc.link }}
  | {{ -acc.value | currency }}
  {% if forloop.last %}
    {% newline %}
    | **{% t "Total" %}**
    | **{{ -accounts.value | currency }}**
  {% endif %}
{% endfor %}
{% endstripnewlines %}

<br>

{% ic %}{::infotext}
{% t "document VAT segments" %}
{:/infotext}{% endic %}

{% stripnewlines %}
|----85%----
|----15%----:+
{% fori item in custom.vat_segments %}
  {% newline %}
  | {% input item.description placeholder:"Descr." %}
  | {% $1+input item.value as:currency %}

{% comment %}create an indicator saying which value needs to be reconciled{% endcomment %}  
{% assign value_a = -accounts.value %}
{% assign value_b = $1 %}
{% if value_a != value_b %}
  {% assign diff = value_a-value_b %}
{% endif %}
{% capture diff_txt %}Difference is {{ diff | currency }}, as the original value is {{ value_a | currency }} while the details of the VAT segments have a total of {{ value_b | currency }}{% endcapture %}
  
  {% if forloop.last %}
    {% newline %}
    |
    |_^ {% unreconciled diff as:indicator unreconciled_text:diff_txt %}
        {{ $1 | currency }} ^_|
  {% endif %}
{% endfori %}
{% endstripnewlines %}

```

This does the trick:

```auto
{% unreconciled diff as:indicator unreconciled_text:diff_txt %}

```

We’ll use a combination of standard text with variables and put them into one variable with the **capture** tag:

```auto
{% capture diff_txt %}Difference is {{ diff | currency }}, as the original value is {{ value_a | currency }} while the details of the VAT segments have a total of {{ value_b | currency }}{% endcapture %} 

```

---

<div class="post-metadata">

**Author:** ![pgallagher](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/pgallagher/32/1576_2.png) [@pgallagher](https://community.silverfin.com/u/pgallagher)\
**Post date:** [November 21, 2019, 5:17pm UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460/2 "2019-11-21T17:17:00Z")

</div>

Hey Sven, do you know if you can add text over a reconciled icon as well? (green dot) Thanks - Pete

---

<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:** [November 26, 2019, 7:53am UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460/3 "2019-11-26T07:53:21Z")

</div>

Hey @pgallagher,

I’m afraid not. May I ask why you’d want this?

---

<div class="post-metadata">

**Author:** ![pgallagher](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/pgallagher/32/1576_2.png) [@pgallagher](https://community.silverfin.com/u/pgallagher)\
**Post date:** [December 4, 2019, 1:10am UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460/4 "2019-12-04T01:10:53Z")

</div>

I was trying to do integrity checks of calculations & numbers across templates. And I know we can add hover text if something does not reconcile. But was thinking it would be nice to have hover text over if it _does_ reconcile as well so the user/review would be able to know information or have text on what exactly is being reconciled

---

<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:** [December 4, 2019, 7:24am UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460/5 "2019-12-04T07:24:14Z")

</div>

Hey @pgallagher,

May I suggest using an infotext instead then (as a hover)? As I don’t think anyone has the impuls to hover over a green dot. 🙂

---

<div class="post-metadata">

**Author:** ![pgallagher](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/pgallagher/32/1576_2.png) [@pgallagher](https://community.silverfin.com/u/pgallagher)\
**Post date:** [December 4, 2019, 12:30pm UTC](https://community.silverfin.com/t/case-show-text-on-an-indicator/1460/6 "2019-12-04T12:30:38Z")

</div>

yes, thank you. That’s exactly what we ended up doing. And if it didn’t reconcile, we ended up outputting a warning text icon with hover showing/explaining any differences
