The trick for me was realising that you need to calcumate Sum_Cost and Sum_Revenue first before then working out a Quarterly Profit Margin. Previously tried doing it all in one tool and then calculating an average Quarterly Profit Margin but this does not give the true average!