Forum Discussion

TomLU123's avatar
TomLU123
Icon for Helper III rankHelper III
7 years ago
Solved

Count the Completed Task to track the completion rate

Dear Expert,    I have a data set like below to track the completion status of each task.  Task Assigned to Status Task A Smith Completed Task A Andy In progress Task A Joe Com...
  • Stachu's avatar
    7 years ago

    this code should work

    # of Completed = CALCULATE(COUNTA('Table'[Status]), 'Table'[Status]="Completed")
    
    Completion Rate = DIVIDE([# of Completed], COUNTA('Table'[Status]))

    it counts the rows in the tablem so if the table you presented is an aggragation then additinal SUMMARIZE/GROUPBY will be necessary