Dataview and live preview

I want to calculate and show the time I slept in my daily notes. To do this I write down the time I fell asleep and when I woke up.

Asleep:: 2022-04-15T22:35
Awake:: 2022-04-16T07:15

Then I use the following code to calculate the time slept:

Slept = this.Awake - this.Asleep

In reading mode this will calculate and show the time slept. But it is not showing in Live Preview mode.

Doesn’t Dataview support Live Preview for formulas? Or perhaps you have a better way of doing this that you could recommend.

Thanks in advance!

1 Like

Any updates on this?

The question is: inline queries don’t “run” in Live preview, only in Reading view.