How to counting data string in data excel in uipath studio X?

image

In column result:
OK : 6 Data
NOT : 3 Data

for result in new sheet
How to Counting data from column result?

for sample result:
image

Hi,

Can you try the following sample?

dtResult = dt.AsEnumerable.GroupBy(Function(r) r("Result").ToString).Select(Function(g) dtResult.LoadDataRow({g.Key,g.Count.ToString+" Data"},False)).CopyToDataTable

Sample
Sample20240222-3a.zip (7.5 KB)

Regards,

This also works in StudioX as the following.

NewBlankTask20240222-1a.zip (54.7 KB)

Thank Mr. Yoichi

Koniciwa

because after add activity:

For my project
JoinDataTable.zip (185.3 KB)

Because you already use SingleExcelProcessScope. In this case, itโ€™s unnecesary to use it there.

Thanks, where do I put the activity?

As there is SingleExcelProcessScope on the most outer sequence, it is no necessary to use it again.

For the activities below, do you put excel aplication scope?

Thank you very much, itโ€™s already running on the project I made Mr. Yoichi.
ใ‚ใ‚ŠใŒใจใ†ใ”ใ–ใ„ใพใ™ใ€‚ใ™ใงใซๅƒ•ใฎใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใงๅ‹•ใ„ใฆใ„ใพใ™ใ€‚

image

1 Like

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