About yaml and inline queries

Things I have tried

What I’m trying to do

im trying to referance yaml datas which created with inline java queries from another pages to make calculations with them for example lets say my first page contains

Page1

presentage::= round(length(filter([[saas]].file.tasks.completed, (t) => t = true)) / length(this.file.tasks.text) * 100, 2)

Page2:

Presentage:: = round(length(filter([[saas]].file.tasks.completed, (t) => t = true)) / length(this.file.tasks.text) * 100, 2)

And what im triyng to do is

main page

[[Page1]],[[Page2]]
= sum(this.file.outlinks.Presentage)

if i dont write sum it is workiing as intended in prewiev mode and editmode it switches to
= round(length(filter(this.file.tasks.completed, (t) => t = true)) / length(this.file.tasks.text) * 100, 2), = round(length(filter(this.file.tasks.completed, (t) => t = true)) / length(this.file.tasks.text) * 100, 2)

can you help me to this topic

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