Forum Discussion
today function in M language
getdate() , today() ?
- Anonymous10 years ago
Anonymous it looks like there's no problem with the formula itself. It must be somewhere else, probably something to do with that Due Date column. Hit OK and select one of those error cells. What does it say down at the bottom of the screen when you do that?
6 Replies
- AnonymousNot applicable
Anonymous DateTime.LocalNow()
That returns a datetime value, not a simple date, so if you're using it in another formula to compare with other dates, you may need to nest it to strip out the time. Like so:
Date.From(DateTime.LocalNow())
- AnonymousNot applicable
Trying my hardest to learn DAX and now they throw M Language on top of it?????
Anyway, Thank you for your help on this project I'm working on. Here is my error, do you have any suggestions?
- AnonymousNot applicable
Anonymous it looks like there's no problem with the formula itself. It must be somewhere else, probably something to do with that Due Date column. Hit OK and select one of those error cells. What does it say down at the bottom of the screen when you do that?
- JulioGadioliFrequent Visitor
Good, work, try too: (M language | Power Query)
Duration.Days(Date.From(DateTime.LocalNow())-Date.From([MinDueDate]))