Query help: sum of expences on the active page

I’m trying to write an inline query which will sum all of the [expense:: x] on the same page. It seems like it should be easy, and that I am missing somthing obvious.

If you’ve got Dataview installed, and inline queries enabled, it could be done with: `= sum(this.expense)`, or potentially if that doesn’t work with `= sum(number(this.expense))`

sum(number(this.expense)) did the trick. That was easy! thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.