Skip to main content

Power BI

Completed

TODAY () function when I add a custom column

Vote (1) Share
Casey's profile image

Casey on 09 Jul 2016 02:24:51

Administrator on 09 Jul 2016 03:24:15

It's already possible to dynamically retrieve today's date when authoring a Custom Column in the Query Editor. You can use DateTime.LocalNow () or DateTime.UtcNow () to get a date/time stamp, from which you can extract the date part. Something like this should work: Date.From(DateTime.LocalNow () )

Comments (2)
Casey's profile image Profile Picture

Katrina Wright on 06 Jul 2020 00:15:29

RE: TODAY () function when I add a custom column

this just shows "function" in the table. how do I get the actual date?

Casey's profile image Profile Picture

Power BI User on 05 Jul 2020 23:09:10

RE: TODAY () function when I add a custom column

why TODAY () function doesn`t work in Power Query instead of Date.From(DateTime.LocalNow () )? i was tried to do simple TODAY () -[Start Date] an example...