Hello everyone,
need your help.
I have a simple SP list:

Employee - users column;
From; To - date/time column
Days; Dep - text column
Close - choise column with Yes/No values

I grouped all the requests by employee and counted the total days if status Close = No.
Now I wanted to add the ability to filter by employee and by department.
Filter(AddColumns(GroupBy(AddColumns(Vacation4; "EmplName"; Employee.DisplayName); "EmplName"; "GrpEmplName");
"TotalDays"; Sum(Filter(GrpEmplName; Close.Value = "No" && EmplName = Employee.DisplayName); Days));
StartsWith(EmplName;txtEmplSearch.Text))
I had no problems with employees (I think so. At least the filtering works).
But with filtering by department - I'm stuck.
I will be grateful for any help.