Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count Employees that's not affected by filters

Hi, I have an expression which goes like this:

=sum({1}aggr(sum({<dept={'IT'}>}Empid), Empid))

I was hoping to count employees under IT department which does not change regardless of the selection. i tried adding {1} before aggr but it still change. I also tried adding before Empid of Sum but it counts everything, disregarding my set analysis.. Thank you in advance for the help.

3 Replies
Frank_Hartmann
Master II
Master II

please share a sample qvw which demonstrates the problem

Digvijay_Singh

Can you try this -

=sum({1<dept={'IT'}>}aggr(sum({1<dept={'IT'}>}Empid), Empid))

Anil_Babu_Samineni

Or this?

sum(aggr(sum({1<dept={'IT'}>}Empid), Empid))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful