Thank you for the welcome and for your suggestions. This worked for me however I seem to be having a knock-on problem when I use the v_average variable. Not sure if you have any thoughts on this one.
I want to perform a count on rows from the v_average table where the average is >4.8
In the above example if I use
=Count(RowID]) Where ([v_Average] > 4.8)
I get a count of 3, whereas I expect 2
If I do a count on the other variable then that works
=Count(RowID]) Where ([v_Column 2] > 4.1)
I get 2 rows