Table:
0
A
B
C
D
E
1
document id
draft number
copy number
employee id
circulation history
2
20
17
15
8
3
1
2
5
1
4
2
1
4
2
5
10
20
10
2

Questions and formulas:
Question: For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.
Formula: SUMMARIZE(HSTACK(A1,E1),SUMX(D1))
Formula2: SUMMARIZE(HSTACK(A2:A5,E2:E5),SUMX(D2:D5))
Level: medium