Forum Discussion
Select specific date measure
- 5 years ago
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.
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.
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