Real time calculations with dataview

I’m new to Obidian and Dataview, but I am looking to create a note that performs some simple calculations, and later on, I plan on introducing some sliders to manage some of the properties. But for now, I want to resolve the following problem: I can update my properties, but the calculations do not happen in real time, even after a minute. Instead I have to close the file and then open it again for the calculations to happen.

this is my current setup for a test file
—-
price_1: 5000
price_2: 2000
—-

Calculations →=this.price_1 + this.price_2

If i change for example price_1 to 2000 instead, I have to close my file and open it again to see that calculations now reads 4000 instead of 7000

Hi @dcifligu, welcome to the Obsidian community!

One workaround to this issue is to use the “Dataview: Rebuild current view” command from the command palette. It forces Obsidian to re-render the current page, which will update views and expressions.

I use this often, so I have this mapped to Ctrl-R in my hotkeys.

Hope this helps!

Craig