# CASE: display values of accounts in ones, thousands or millions

**URL:** <https://community.silverfin.com/t/case-display-values-of-accounts-in-ones-thousands-or-millions/1090>\
**Category:** Cases\
**Tags:** case, methods\
**Created:** [August 7, 2018, 9:38am UTC](https://community.silverfin.com/t/case-display-values-of-accounts-in-ones-thousands-or-millions/1090 "2018-08-07T09:38:02Z")\
**Posts on this page:** 1\
**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:** [August 7, 2018, 9:38am UTC](https://community.silverfin.com/t/case-display-values-of-accounts-in-ones-thousands-or-millions/1090/1 "2018-08-07T09:38:02Z")

</div>

If we create an account-drop ( a collection that gathers all my selected accounts in it ), like this f.i. :

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

```

we now have an option to display any value, rounded as ones, thousands or millions. Just add the method `return_values_in_ones`, `return_values_in_thousands`, `return_values_in_millions` to the accounts-drop `accounts`.

An example:

```auto
{% stripnewlines %}
| Acc.Nbr
| Acc.Descr.
| Acc.Value
{% newline %}
|----15%----
|----50%----
|----15%---:
{% for acc in accounts %}
{% newline %}
| {{ acc.number }}
| {{ acc.name }}
| {{ acc.value | currency }}
{% endfor %}
{% endstripnewlines %} 

```

It’ll display this, with no rounded values:  
 ![13](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/69694a4c4c55ba96e639b90b877666c6b65b3a39.png)

If we add the method `return_values_in_thousands` to the accounts-drop `accounts`, it will display any account that has a rounded value in thousands:

```auto
{% stripnewlines %}
| Acc.Nbr
| Acc.Descr.
| Acc.Value
{% newline %}
|----15%----
|----50%----
|----15%---:
{% for acc in accounts.return_values_in_thousands %}
{% newline %}
| {{ acc.number }}
| {{ acc.name }}
| {{ acc.value | currency }}
{% endfor %}
{% endstripnewlines %}

```

Output:  
 ![45](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/4229c0fd6f708835f7cf578a78f5fa7fbbf96651.png)
