To Sum up

Hi Team,

How can we Sum up the Total Amt column for all Division code = 990

So Output should be
Total Value=880(By Sum of 300+290+290)

|Division Code | Country |Text | Total Amt|
|990| INDIA |***IN | 300 |
|990| INDIA |*******YN |290 |
|990 |INDIA |*******CK |290 |
|770 |AFRICA |*******YN |660 |
|880 |BRAZIL |*******KK |440 |

Hi @NISHITHA ,

Could you maybe try the below :

DT.AsEnumerable.Where(Function(x)x("Division Code").ToString.Equals("990")).Sum(Function(x)CDbl(x("Total Amt").ToString))
3 Likes

Hii @NISHITHA ,
Please check this workflow.

SUMColumn.zip (2.3 KB)

Regards,

1 Like

Thanks @supermanPunch for the approach!

1 Like

Thanks @Jithesh_R for the reference xaml !!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.