My data looks like:
A | B
80 | 80
90 | 10
80 | NULL
I count all non Null values of B with
.C = eGroup.Count(Function(x) x.IsBNull = False)
But I need another condition in my expression since I just want to count if A >= B.
I tried
.C = eGroup.Count(Function(x) x.IsBNull = False And x.A >= x.B)
but I get an error as soon as the B is NULL.
EDIT: I get my data from a dataset I have a field "Teams" and group my dataset by teams befor I use the query above:
dim query = From row in _dataset.DS Group row by row.Team Into eGroup = Group