Forum Discussion

SBR1D's avatar
SBR1D
Icon for Helper III rankHelper III
2 years ago
Solved

Count course names where learners not in progress

Hi All

 

So i want a distinct count of courses where the status is <> In progress 

 

So the count should total to  4 

 

This is what i have tried but i get  " a function "PLACEHOLDER" has been used in a true/false expression that is used as a table expression. 

 

I am not sure what to do from here? 

Please help

 

distinct count course not active = CALCULATE(DISTINCTCOUNT('Table'[Course Name]),[Learners in progress]=0)

 

Learners in progress = CALCULATE(COUNTA('Table'[LearnerId]),('Table'[Status]="In Progress"))

 

 

 

 

LearnerIDCourse nameStatus
1mathIn progress
2englishIn progress
3historyCompleted
4geographyWithdrawn
5mathCompleted
6mathWithdrawn
7englishIn progress
8ITCompleted
9historyWithdrawn
10mathCompleted

6 Replies

    • SBR1D's avatar
      SBR1D
      Icon for Helper III rankHelper III

      I realise i have explained this incorrectly but thank you for the initial solution.

       

      What i need to do is if there are no "in progress" status then do distinct count.

      e.g. math has 4 status, 1 in progress , 2 completed and 1 withdrawn, because it has 1 in progress do not count it.

       

      So the final count should be 3  as there 3 courses with no status = in progress and they are History, Geography and IT. 

       

      Thanks in advance

  • thank you very much - sorry for the late reply