How to have collection for deposit and total amount tie to tat deposit

Hi there,


Need to store all the 3 deposit and total amount where i will the total amount to recon later. So i need help how to store and use them?

@mark_rajkumar1

use a dictionary with key as deposit first column and value as the total amount

cheers

@Anil_G can i get the work flow

@mark_rajkumar1

only an assign is needed with values you need

cheers

@Anil_G for deposit i can put an assign but for the amount which has 4 rows how do i get total and assign

@mark_rajkumar1

basically you want the data to be read as datatable and then save as well ..as the question was not clear as it want asked for a way to save

okay so if each data could be read as separate datable then dt.AsEnumerable.Sum(function(x) cdbl(x(“column to be totalled”).Tostring)).Tostring this gives total as string

if all the rows are read together into single datatable then you might need to first loop through each row and find out the total like by checking first column is empty get the total till there and then change the deposit account number and repeat the same in loop

cheers

@mark_rajkumar1

Can you give more details about your scenario.

What is Input

What is output you are expecting

@yedukondaluaregala @Anil_G i am trying to store all the deposit and its total amount e.g. 112h, 300 in a datatable where i will use it recon in a browser.

Hi @mark_rajkumar1

Can you try this

Sequence9.xaml (14.6 KB)

Output:

Regards,

Hi @lrtetala ur solution worked. I want to add on one more item which will be a date column which will in column b. For each deposit there would be a date. How do i group deposit date and amount using same method above?

Hi @mark_rajkumar1

Can you share the input, how it looks?

Regards,

@lrtetala

1 Like

@mark_rajkumar1

Can you try this

Sequence9.xaml (20.0 KB)

Output:

Regards,

1 Like

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