Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Kathzep
New Member

Percentage of Completion

Good Morning,

I need to obtain the Percentage of completion between 2 column dates, the start, and the end date, but some of them already have been completed by the current date, and others the month has not started. 

I used this formula, but it gives me negative percentages when it should be only 100%, because the month has passed. And other that have not been completed yet. Thank you so much.

 

Percentage = divide(DATEDIFF('ERP Deployment'[Start], today(), MONTH), datediff('ERP Deployment'[Start], 'ERP Deployment'[Go-Live], MONTH))

 

Start – Start Date

Go-Live – The End Date

 

Kathzep_1-1689087326185.png

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Kathzep 
According to your description, you want to get the Percentage of Completion. And your dax code is right . For the difffernt situation, we can add some judgement around it .

We can try to use this dax code :

Percentage = IF([Go-Live]<=TODAY() ,1, IF([Start]>TODAY() ,0 , divide(DATEDIFF('ERP Deployment'[Start], today(), MONTH), datediff('ERP Deployment'[Start], 'ERP Deployment'[Go-Live], MONTH))))

 

The result is as follows:

vyueyunzhmsft_0-1689227629666.png

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi , @Kathzep 
According to your description, you want to get the Percentage of Completion. And your dax code is right . For the difffernt situation, we can add some judgement around it .

We can try to use this dax code :

Percentage = IF([Go-Live]<=TODAY() ,1, IF([Start]>TODAY() ,0 , divide(DATEDIFF('ERP Deployment'[Start], today(), MONTH), datediff('ERP Deployment'[Start], 'ERP Deployment'[Go-Live], MONTH))))

 

The result is as follows:

vyueyunzhmsft_0-1689227629666.png

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.