# How to get the last attibute edge workflow

**URL:** <https://forums.losant.com/t/how-to-get-the-last-attibute-edge-workflow/4881>\
**Category:** Help\
**Tags:** edge, workflow\
**Created:** [January 11, 2023, 11:08am UTC](https://forums.losant.com/t/how-to-get-the-last-attibute-edge-workflow/4881 "2023-01-11T11:08:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_Pinheiro](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Lucas\_Pinheiro](https://forums.losant.com/u/Lucas_Pinheiro)\
**Post date:** [January 11, 2023, 11:08am UTC](https://forums.losant.com/t/how-to-get-the-last-attibute-edge-workflow/4881/1 "2023-01-11T11:08:33Z")

</div>

How to get the last value received in an attribute in the edge workflow and use this attribute to store in a variable that will be the totalizer of this value received multiple times

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [January 11, 2023, 3:58pm UTC](https://forums.losant.com/t/how-to-get-the-last-attibute-edge-workflow/4881/2 "2023-01-11T15:58:38Z")

</div>

Hi @Lucas_Pinheiro and welcome to the Losant forums!

Just to confirm, you are receiving a number value as a device state attribute, and you’d like to set a separate value that contains the sum of all previously received numbers from this attribute?

If so, my recommendation is to use [Storage: Set Value Node](https://docs.losant.com/workflows/data/store-value/). Under the Configuration section, you’ll see an option to Increment Value. This value is stored in [workflow storage](https://docs.losant.com/workflows/overview/#workflow-storage).

Let us know if this will work for your use case!

---

<div class="post-metadata">

**Author:** ![Lucas\_Pinheiro](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Lucas\_Pinheiro](https://forums.losant.com/u/Lucas_Pinheiro)\
**Post date:** [January 11, 2023, 7:43pm UTC](https://forums.losant.com/t/how-to-get-the-last-attibute-edge-workflow/4881/3 "2023-01-11T19:43:50Z")

</div>

Thank you for your help, this solution solved my problem.
