Forum Discussion
Select specific date measure
I am trying to calculate % Complete of a project based on dates.
(Today's date minus Notice to Proceed date)/(Completion Date minus Notice to Proceed Date)
Notice to proceed date is in the start column and Completion date is in the finish date column.
pbix attached.
Hi PabloGiraldo -
Assuming you want to cap the number at 100%, and assuming your dataset refreshes every day, add this calculated column to the Schedule_BL table.
Pct Complete = MAX ( //Keeps future projects from showing negative percent MIN ( //Keeps completed projects from showing > 100% DIVIDE ( DATEDIFF ( ScheduleBL[(*)Start], TODAY (), DAY ), DATEDIFF ( ScheduleBL[(*)Start], ScheduleBL[(*)Finish], DAY ), 0 ), 1 ), 0 )Hope this helps
David
P.S. - if you are sharing your pbix you may want to reduce the dataset somewhat in order to protect sensitive data. I don't know if any of the data you shared was indeed sensitive, but I will be deleting your PBIX from my computer just in case.
2 Replies
- dedelman_clngCommunity Champion
Hi PabloGiraldo -
Assuming you want to cap the number at 100%, and assuming your dataset refreshes every day, add this calculated column to the Schedule_BL table.
Pct Complete = MAX ( //Keeps future projects from showing negative percent MIN ( //Keeps completed projects from showing > 100% DIVIDE ( DATEDIFF ( ScheduleBL[(*)Start], TODAY (), DAY ), DATEDIFF ( ScheduleBL[(*)Start], ScheduleBL[(*)Finish], DAY ), 0 ), 1 ), 0 )Hope this helps
David
P.S. - if you are sharing your pbix you may want to reduce the dataset somewhat in order to protect sensitive data. I don't know if any of the data you shared was indeed sensitive, but I will be deleting your PBIX from my computer just in case.
- PabloGiraldoHelper IV
Thanks for the response. Not 100% sure if this will work. I was able to get an answer from the post below. I will mark as Accept Solution in case this works for anyone else or they can go to post below which worked for me.
Thanks!
https://community.powerbi.com/t5/Desktop/Project-percent-complete/m-p/1658263#M663511