The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Start – Start Date
Go-Live – The End Date
Solved! Go to Solution.
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:
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
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:
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
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |