Forum Discussion
Error calculating difference in days
- 6 years ago
replayyy as the error suggest, your columns need to be date/time type to apply duration function and seem like one of the column is only date not date/time
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
replayyy as the error suggest, your columns need to be date/time type to apply duration function and seem like one of the column is only date not date/time
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
- replayyy6 years agoFrequent Visitor
Thanks alot!
Solved is using = Duration.Days(Date.From(Duration.From(DateTime.LocalNow() - [DueDate]))
Atleast so it seems..