# How to sum 2 saved context values

**URL:** <https://discourse.nodered.org/t/how-to-sum-2-saved-context-values/69430>\
**Category:** General\
**Created:** [22 October 2022 14:35 UTC](https://discourse.nodered.org/t/how-to-sum-2-saved-context-values/69430 "2022-10-22T14:35:18Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Walt\_Dod](https://avatars.discourse-cdn.com/v4/letter/w/e9a140/32.png) [@Walt\_Dod](https://discourse.nodered.org/u/Walt_Dod)\
**Post date:** [27 October 2022 09:03 UTC](https://discourse.nodered.org/t/how-to-sum-2-saved-context-values/69430/14 "2022-10-27T09:03:40Z")

</div>

Hi Paul,  
The uncommenting of my last mail (see below) did work for a while but not any more...

I had a look on

> [@Fun With Persistence?](https://discourse.nodered.org/t/fun-with-persistence/33189/2):
>
> Hi @Nodi.Rubrum that is strange. When I use the same contextStorage setting as you have, then the editor knows I have multiple context stores and the UI reflects that. For example, the Change node (and all other users of the TypedInput widget) offers an option on which store to use: The Context sidebar includes labels for the store a value is in: In the developer console of your browser, can you enter RED.settings.context and see what its value is?

and found i had the same issue as described about the store use, whether default or persistent, which do not appear in the change node settings on my screen. I tried deleting the coma in the settings.json file as shown, whith no avail...

Maybe you can help ?

Regards,  
Walt

Hi Paul,  
As the watt2kwh node was set with your help in context mode to avoid data influence from one node to the next,  
it seems that I only had to uncomment

**_contextStorage: {_**  
**_default: {_**  
**_module:"localfilesystem"_**  
**_},_**  
**_},_**

in **settings.js** to have the stored kwh data saved in the dashboard when redeploying...

W.

**Envoyé:** mardi 25 octobre 2022 à 10:22

---

_[View the full topic](https://discourse.nodered.org/t/how-to-sum-2-saved-context-values/69430)._
