I need to make a function that adds in the new column “calculate” the formula:
Col1*(1+Col3)*(1+Col2)

Thanks. But…
I wanted a function
var_DT.AsEnumerable().ToList().ForEach(Function (r)
r.SetField(“yourColumnName”, r.Field(“Col1”)(1+r.Field("Col3”))(1+r.Field(“Col2”))))

![]()
can you share your flow?
Hi,
If your datacolumn is object type, the following might be better.
dt.Columns("calculate").Expression = "Convert(col1,'System.Double')*(1+Convert(col3,'System.Double'))*(1+Convert(col2,'System.Double'))"
Sample20220922-1.zip (2.8 KB)
Regards,
it worked!!
![]()
Thank you!!!



