let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
criteria1 = Excel.CurrentWorkbook(){[Name="crit1"]}[Content]{0}[Column1],
criteria2 = Excel.CurrentWorkbook(){[Name="crit2"]}[Content]{0}[Column1],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Year", Int64.Type}, {"Qtr", type text}, {"Employee ID", Int64.Type}}),
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([Qtr] = criteria2)),
#"Filtered Rows2" = Table.SelectRows(#"Filtered Rows", each ([Year] = criteria1)),
#"Grouped Rows" = Table.Group(#"Filtered Rows", {"Year", "Qtr"}, {{"Count", each Table.RowCount(Table.Distinct(_)), type number}})
in
#"Grouped Rows"