Hi @joost_mineur,
Your point is clear.
Full-fledged parametrised functions are not yet part of Coda formulas
Have a look at
CurrentValue in Named Formulas and FormulaMap - #2 by Jason_Tamulonis
I hope with you we can see something not to far from now…
Cheers!