You could define a combined subfilter:
\define all-sum()
[<currentTiddler>[fields[]prefix[ct-]]
[<currentTiddler>[fields[]prefix[usg-]]
[<currentTiddler>[fields[]prefix[mri-]]
:map[<..currentTiddler>get<currentTiddler>]
+[sum[]]
\end
This would allow you to then write:
{{{ [tag[Journal]month<currentTiddler>] :map[subfilter<all-sum>] +[sum[]multiply[400]] }}}
However, I assume that you have defined three different subfilters (for ct-
, usg-
, and mri-
field prefixes) because you want to also compute individual sums for each of those field prefixes.
If this is the case, then without adding the all-sum
subfilter definition, you could write:
$let ct-total={{{ [tag[Journal]month<currentTiddler>] :map[subfilter<ct-sum>] +[sum[]multiply[400]] }}}
usg-total={{{ [tag[Journal]month<currentTiddler>] :map[subfilter<usg-sum>] +[sum[]multiply[400]] }}}
mri-total={{{ [tag[Journal]month<currentTiddler>] :map[subfilter<mri-sum>] +[sum[]multiply[400]] }}}
all-total={{{ [<ct-total>add<usg-total>add<mri-total>] }}}>