Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Expert,
I am try to create an evaluation column to identify who is the recruiter that hired the most candidates of the job req. Example as below. A job Req can have multiple recruiters. Each recruiter may successfully hired different number of candidates. The column should return the Top recruiter who hired the most of the job.
Recruiter | Job Requisition ID | Number of Candidate Hired by the recruiter | Top Recruiter |
A | J2224516 | 63 | A |
B | J2224516 | 1 | A |
C | J2224516 | 12 | A |
A | J3331111 | 15 | C |
C | J3331111 | 25 | C |
Is it possible to build a caculated column like that?
Many thanks!
Best regards,
Tom
Solved! Go to Solution.
Hi @TomLU123
it's unclear how are you going to solve a tie-break situation but in the most common case you can use a column statement like
Top Recruiter =
var _max = CALCULATE(MAX(Table[Number of Candidate Hired by the recruiter]), ALLEXCEPT(Table, Table[Job Requisition ID]))
RETURN
CALCULATE(FIRSTNONBLANK(Table[Recruiter], 1), ALLEXCEPT(Table, Table[ob Requisition ID]), Table[Number of Candidate Hired by the recruiter] = _max)
Hi @TomLU123,
Or you can create a measure as below:
Top Recruiter =
var _max=MAXX(FILTER(ALL('Table'),'Table'[Job Requisition ID]=MAX('Table'[Job Requisition ID])),'Table'[Number of Candidate Hired by the recruiter])
Return
CALCULATE(MAX('Table'[Recruiter]),FILTER(ALL('Table'),'Table'[Number of Candidate Hired by the recruiter]=_max))
For the related .pbix file,pls click here.
Hi @TomLU123
it's unclear how are you going to solve a tie-break situation but in the most common case you can use a column statement like
Top Recruiter =
var _max = CALCULATE(MAX(Table[Number of Candidate Hired by the recruiter]), ALLEXCEPT(Table, Table[Job Requisition ID]))
RETURN
CALCULATE(FIRSTNONBLANK(Table[Recruiter], 1), ALLEXCEPT(Table, Table[ob Requisition ID]), Table[Number of Candidate Hired by the recruiter] = _max)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |