Hi Jonathan
Please check the below page for an example using average. Simply replace .average() with .sum*(.