Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Completion Rate Visual

Hello, I am new to PowerBI and currently doing a wireframe for a project. May I know how to calculate the completion rate based from my dummy data? Thank you so much!

 

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  Anonymous ,

     

    Do you mean the completion rate for each month?

    Here are the steps you can follow:

    1. Create measure.

    Measure =
    var _count=
    COUNTX(FILTER(ALL('Table'),
    YEAR('Table'[Start Dates])=YEAR(MAX('Table'[Start Dates]))&&
    MONTH('Table'[Start Dates])=MONTH(MAX('Table'[Start Dates]))),[Employee])
    var _countcompleted=
    COUNTX(FILTER(ALL('Table'),
    YEAR('Table'[Start Dates])=YEAR(MAX('Table'[Start Dates]))&&
    MONTH('Table'[Start Dates])=MONTH(MAX('Table'[Start Dates]))&&'Table'[Status]="Completed"),[Employee])
    var _divide=
    DIVIDE(
        _countcompleted,_count)
    return
    IF(
    _divide=BLANK(),0,_divide)

    2. Result:

     

    If that result does not meet your expectations, you can express the expected result in the form of a picture and we can help you better.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Hi,

    At the very least, desribe your question propery.  What do you want to calculate the completion status by - Month, Employee ID, Training ID????????  Share data in a format that can be pasted in an MS Excel file.  Show the expected result very clearly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, I tried to paste the table last time but it got an error. I'll try again now.

      Completion rate in a card format. Just the percentage of people who completed the training. Thank you so much!

      Employee IDFirst NameLast NameTraining IDStart DateStatus
      1000JuanDela CruzEXL-00011-JanIn Progress
      1001JohnDoePYT-123413-JunCompleted
      1002AllieGraterSFTY-43211-OctOverdue
      1003OliveYewSFTY-432214-JunCompleted
      1004TeriDactylPYT-432123-FebCompleted
      1005PhilipVegaPYT-432123-FebIn Progress
      1006DahliaAyalaSFTY-432214-JunOverdue
      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

        Write these measures:

        Total = distinctcount(Data[Employee ID])

        Completed = calculate([Total],Data[Status]="Completed")

        Completed (%) = divide([Completed],[Total])

        Drag the Completed (%) measure to the card visual.

        Hope this helps.