Calculate Column While is empty

Hello Friends, How I can do the calc column while my Column (M) is empty?

1 Like

Kindly try with this expression
int_value= yourdatatable.AsEnumerable.Sum(Function(x) If(IsNumeric(x(“yourcolumnname”).ToString.Trim),CDbl(x(“Value”).ToString.Trim),0))

Cheers @Diego_Pin

1 Like

Hello @Palaniyappan, I use this function in a Assign?

1 Like

yah exactly
@Diego_Pin

1 Like

@Palaniyappan Friend In the final of function (CopyToDatable()) In my assign he take a error (Not is a double)

1 Like

aaah
it was my bad
it will give you only a int32 value as output
int_value= yourdatatable.AsEnumerable.Sum(Function(x) If(IsNumeric(x(“yourcolumnname”).ToString.Trim),CDbl(x(“Value”).ToString.Trim),0))

Cheers @Diego_Pin

1 Like

Kindly let know for any queries or clarification
Cheers @Diego_Pin