Formula:
=LET(Raw,CHOOSECOLS(Table1,1,3,14,27,28,29,32,33,34,37,38,39),
A,IF(Raw=0,"",Raw),
B,FILTER(A,INDEX(A,,2)<>""),
C,UNIQUE(INDEX(B,,1)),
D,EOMONTH(INDEX(B,,2),-1)+1,
E,UNIQUE(D),
F,BYROW(INDEX(B,,3),LAMBDA(z,LEN(z)-LEN(SUBSTITUTE(z,";","")))),
G,BYROW(E,LAMBDA(x,SUMPRODUCT(--(D=x)*F))),
H,EOMONTH(TOCOL(CHOOSECOLS(B,4,7,10)),-1)+1,
I,BYROW(E,LAMBDA(x,SUM(IFERROR(IF(H=x,1,0),0)))),
J,EOMONTH(TOCOL(CHOOSECOLS(B,6,9,11)),-1)+1,
K,BYROW(E,LAMBDA(x,SUM(IFERROR(IF(J=x,1,0),0)))),
L,SCAN(0,G-I,LAMBDA(a,b,a+b)),
VSTACK({"Month","Logged","Assigned","Completed","Outstanding"},HSTACK(E,G,I,K,L)))
Bookmarks