Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

kennethholden
Contributor

aggr

count(Aggr(total distinct(AGENT_LAST_NAME),SUPERVISOR))

I am trying to get QLIKSENSE to find the TOTAL number of reps under a specific supervisor, vs the number of active reps under the supervisor; for example a supervisor may have 4 reps who write business this week but actually have a total of 10 reps, just 6 did nothing, I am looking for the total number of reps under a supervisor.

This expression is giving me a 0 result.

any help appreciated

1 Solution

Accepted Solutions
MVP
MVP

Re: aggr

Where are you doing this? Why not create a straight table with  SUPERVISOR as dimension and Count(DISTINCT AGENT_LAST_NAME) as expression? Would it not give the count of all Agents?

4 Replies
MVP
MVP

Re: aggr

Where are you doing this? Why not create a straight table with  SUPERVISOR as dimension and Count(DISTINCT AGENT_LAST_NAME) as expression? Would it not give the count of all Agents?

kennethholden
Contributor

Re: aggr

i do have a table and supervisor as dimension, but count distinct agent last name is giving me active reps not total reps on the supervisor team

kennethholden
Contributor

Re: aggr

count(total distinct(AGENT_LAST_NAME))

this was original expression, but it gives me the total reps for entire business, not for each supervsior.

kennethholden
Contributor

Re: aggr

THIS Was working, sorry, i should shut my mac off and relax, I am not seeing the forest for the trees tonight.

Thank you for your time.

Community Browser