In your previous image, you have “=>” when declaring ‘x’, which is a C# syntax. You need to use .net syntax which would be .Sum(Function(x)
However, I think you have other issues with your LINQ code.
You can check out this post here about using GroupBy for Sum:
Regards.