Forum Discussion
amrosullivan
4 years agoFrequent Visitor
Calculate excels DAYS360 / YEARFRAC DAX using Power Query M
Hello all, i need to calculate days360 or YEARFRAC between two dates in power query. how do i do this? this is what i need to replicate but in M YEARFRAC([Start Date],[End Date],0) i ne...
- 4 years ago
Hi amrosullivan ,
You can create a custom column like this
(Number.From([EndDate]) - Number.From([StartDate]) ) /365Please keep in mind this does not take into account leap years.
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
rohit_singh
4 years agoSolution Sage
Hi amrosullivan ,
You can create a custom column like this
(Number.From([EndDate]) - Number.From([StartDate]) ) /365
Please keep in mind this does not take into account leap years.
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊