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

Metric Calculation with records having least value in a column

Hi,

I have the following table:

     

Program NameCourse NumberEmployeeIdJob LevelJobLevel As of CompletionJL Change
wqaAbc11111121
dwdDef11111222
sdqDef23333112
dqwAbc23333112
casAbc1121341
dasfgr12122341
asdhjh121212121
asdnklsd121212232
asdmskld121212341
asdferer33333345

1

JL Change : 1- Job Level Changed, 2- No Job Level Change

I have to calculate 2 metrics Job Progression Count (Number of Employees who had a job change) and No Job Progression Count(Number of Employees who did not have a job level change)

For Job Progression Count I have expression = Count({<[JL Change]={'1'}>}DISTINCT [Employee Id]) -- works fine

However, for calculating No Job Progression, I need to exclude employee Ids 11111 and 121212 since they have a JL Change of 1 along with JL Change of 2, so the expression =Count({<[JL Change]={'2'}>}DISTINCT [Employee Id]) , does not give me desired results.

Kindly suggest!

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Try below

Count({<JLChange = {2},EmployeeId=e({<JLChange={1}>}EmployeeId)>}DISTINCT EmployeeId)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
antoniotiman
Master III
Master III

Hi,

maybe

Count(DISTINCT Aggr(If([JL Change]='2',[Employee Id]),[Employee Id]))

Regards,

Antonio

vinieme12
Champion III
Champion III

Try below

Count({<JLChange = {2},EmployeeId=e({<JLChange={1}>}EmployeeId)>}DISTINCT EmployeeId)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.