ClearCollect(deptList, {Dept: "A"});
Collect(deptList, {Dept: "B"});
ClearCollect(
testDB0,
AddColumns(
GroupBy(
Filter(
'Driving Permits',
'EP 1' <> ""
),
Dept,
Grouped
),
Count,
CountRows(Grouped)
)
);
ClearCollect(testDB1, AddColumns(deptList,'EP 1', LookUp(testDB0,testDB0[@DEPT]=deptList[@Dept],Count)));
ClearCollect(
testDB2,
AddColumns(
GroupBy(
Filter(
'Driving Permits',
'EP 2' <> ""
),
Dept,
Grouped
),
'EP2',
CountRows(Grouped)
)
);
ClearCollect(
testDB3,
AddColumns(
GroupBy(
Filter(
'Driving Permits',
'EP 3' <> ""
),
Dept,
Grouped
),
'EP3',
CountRows(Grouped)
)
);
ClearCollect(finalDB, AddColumns(testDB1,EP2, LookUp(testDB2,testDB2[@DEPT]=testDB1[@Dept],'EP2')));
ClearCollect(finalDB1, AddColumns(finalDB,EP3, LookUp(testDB3,finalDB[@Dept]=testDB3[@DEPT],'EP3')));
ClearCollect(
FinalDB,
AddColumns(
GroupBy(
'Driving Permits',
Dept,
Grouped
),
EP1,
CountRows(
Filter(
Grouped,
EP1 > 0
)
),
EP2,
CountRows(
Filter(
Grouped,
EP2 > 0
)
),
EP3,
CountRows(
Filter(
Grouped,
EP3 > 0
)
)
)
)
WarrenBelz
146,596
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional