Forum Discussion
barry2099
Feb 23, 2023Copper Contributor
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...
- 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
Paul_Mather
Feb 24, 2023MVP
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
barry2099
Feb 24, 2023Copper Contributor
Paul,
Thanks so much. It did help, plus it gave me enough clues to go dig out the formula for myself.
Thanks Again
Barry
Thanks so much. It did help, plus it gave me enough clues to go dig out the formula for myself.
Thanks Again
Barry