Forum Discussion
Pass Rate
Hi,
try this:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hello
I applied the logic to actual data set and for some reason the numbers are not accurate. The results are going beyond 100%
The actual numbers should be this,
But the PowerBI Logic is giving below numbers
Below is the DAXi have used
- DOLEARY852 years agoResident Rockstar
Ah okay, i wasn't aware that the job band would also be used, you can just adapt the allexcept criteria to use the job band column too.
try removing the all except criteria:JL Wise Completion Rate = CALCULATE(COUNT('Training Details Fy 22'[Pass/Fail_1]),'Training Details Fy 22'[Pass/Fail_1]="Pass")/CALCULATE(COUNT('Training Details Fy 22'[Pass/Fail_1]))If I answered your question, please mark my post as solution, Appreciate your Kudos 👍- shantupm52 years agoHelper III
Hello
I tried using the same DAX and still not givig the desired results
- DOLEARY852 years agoResident Rockstar
Okay, you could try allexecpt on both program name and job band in case there's something else impacting the measure:
JL Wise Completion Rate = CALCULATE(COUNT('Training Details Fy 22'[Pass/Fail_1]),'Training Details Fy 22'[Pass/Fail_1]="Pass",ALLEXCEPT('Training Details Fy 22','Training Details Fy 22'[Program Name],'Training Details Fy 22'[Job Band]))/CALCULATE(COUNT('Training Details Fy 22'[Pass/Fail_1]),ALLEXCEPT('Training Details Fy 22','Training Details Fy 22'[Program Name],'Training Details Fy 22'[Job Band]))
if this doesn't work are you able to provide a copy of the PBIX file?
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍