It seems I was a little tired when answering yesterday. A dataviewjs needs to have some sort of output function to present any result. In the first case youâ€™re using dv.list(), but in the second one you donâ€™t have anything, so the sum is actually calculated OK, but itâ€™s never displayed.

```dataviewjs
const sum = dv.func.sum(
dv.pages('"ForumStuff/f77/f77973"')
.where( p => p.payment_due )
.payment_due
)
dv.paragraph("Due payments: " + sum.toFixed(2))
```

This variant calculates the sum, and uses dv.paragraph to present a full block with the result. You could also use dv.span() for inline variants. Iâ€™ve also added a little bit of formatting just for the fun of it, and then we end up with: