반응형
# 특정 열의 데이터를 Grouping 하면서 각 그룹의 총합 구하기
(
From row in DT변수1.AsEnumerable()
Group row By gList = New With {
Key .Name = row(컬럼명1) '그룹할 열
}
Into gListGroup = Group Select DT변수2.Rows.Add(
{
gList.Name.ToString,
gListGroup.Sum(Function(x) CLng(x(컬럼명2).ToString)) '총합
}
)
).CopyToDataTable
반응형
'프로그래밍 > uipath' 카테고리의 다른 글
The RPC Server is Unavilable (Exception from HRESULT: 0x800706BA)HelpstudioexcelLog In (0) | 2021.04.14 |
---|---|
Uipath 특수문자 제거 정규식 (1) | 2021.04.07 |
Uipath Add DataRow 시 오류 처리 이행은 이미 다른 테이블에 속해 있습니다 (0) | 2021.04.07 |
Uipath 날짜 설정 (어제, 내일, 2일전, 일주일전, 요일 등) (0) | 2021.04.06 |
[uipath] BalaReva zip unzip encoding 파일명 한글 깨짐 (0) | 2021.02.02 |