Forum Discussion

barry2099's avatar
barry2099
Copper Contributor
Feb 23, 2023
Solved

Task Status

Hello All,   I'm using P4W with the MS Project for the Web Power BI Template to create reports with Power BI.  My question is how does P4W calculate if a Task is Late or Overdue ?   Thanks in Adv...
  • Paul_Mather's avatar
    Feb 24, 2023

    Hello barry2099 ,

    This is how it is calculated in the Power BI template:

    • Late Tasks = CALCULATE(COUNTA([Task ID]),FILTER('Project Tasks',[Task KPI]=3))
    • Overdue Tasks = CALCULATE(COUNTA([Task ID]),FILTER('Project Tasks',[Task KPI]=4))
    • Task KPI = if [msdyn_progress] = 1 then 0 else if [msdyn_scheduledstart] > DateTime.LocalNow() then 1 else if [msdyn_scheduledstart] < DateTime.LocalNow() and [msdyn_scheduledend] >= DateTime.LocalNow() and [msdyn_progress] > 0 then 2 else if [msdyn_scheduledstart] < DateTime.LocalNow() and [msdyn_scheduledend] >= DateTime.LocalNow() and [msdyn_progress] = 0 then 3 else if [msdyn_scheduledend] < DateTime.LocalNow() and [msdyn_progress] < 1 then 4 else 1

    Hope that helps

    Paul

     

Resources