March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Community,
I have two tables Requisition and Application. Requisition has a division column and its values are IT, HR, Finance. Application has column called current status of which have a values of interview and hired.
What I would like to see is how many applicant on interview per Division values(IT,HR,Finance) and represented by numbers if its true and 0 if its false.
Here is a look of the tables:
I've tried this DAX if it makes any sense i get the aforementioned error on title
Result in error
What I would like to see
Thank you so mucn in advance.
Solved! Go to Solution.
Hi @Turka89
I'm not clear what's your rule to get the final result.
Please check my test below and tell me what's the difference between yours and mine.
Measure = CALCULATE(COUNTROWS(FILTER(Table2,Table2[CurrentStatus]="IT-Assessment")),ALLEXCEPT(Table1,Table1[Division]))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Turka89
I'm not clear what's your rule to get the final result.
Please check my test below and tell me what's the difference between yours and mine.
Measure = CALCULATE(COUNTROWS(FILTER(Table2,Table2[CurrentStatus]="IT-Assessment")),ALLEXCEPT(Table1,Table1[Division]))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-juanli-msft ,
In Requisition Table, I cant really find any duplicate entrines under VacancyID Column but only for those VacancyID under CurrentStatus column "ITI 1st Interview, ITI - 2nd Interview, ITI - Assessment, ITI - Final Assessment". Otherwise There is duplicate entries in VacancyID column in Requisition Table
The Above picture VacnacyID values which have current status of one of the following values
1. ITI 1st Interview
2. ITI - 2nd Interview
3. ITI - Assessment
4. ITI - Final Assessment
Regardless, I have used the same column "CurrentStatus" with other Values such as
1. Hired
2. On-Boarding
Which returns correct results to a specific divisions.
What I cannot understand why it does not wants to wrok with any of the "Interview" CurrentStatus Column
Thank you in advance
you can use SELECTEDVALUE() inside FILTER() in measures statements
I m not sure I understand your logic but it could look like
Measure =
CALCULATE(COUNTROWS(APPLICATION), ALLEXCEPT(APPLICATION, APPLICATION[Division]), APPLICATION[CurrentStatus] = "ITI - Assessment")
Hi @az38 ,
I have used your DAX with a bit of modification
Measure =
CALCULATE(COUNTROWS(APPLICATION), ALLEXCEPT(REQUISITION, REQUISITION[Division]), APPLICATION[CurrentStatus] = "ITI - Assessment")
and it returns the total number of applicant on interview on all divisions and to all divisons. See picuture blow
Thank you
User | Count |
---|---|
120 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |