Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to add custom column to query that populates today's date?

I want to create a custom column in a load query that reflects the date the data was loaded, but when attempting to use Today() or Now() an error is returned. How should this be done?

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

In the query, create a new column and use

DateTime.LocalNow()

 

From:

https://support.office.com/en-us/article/DateTime-LocalNow-Applies-to-Power-Query-567827c0-d7d8-441b...

 

In DAX, use:

=TODAY()

 

 

Of course, that would be a bad idea to use TODAY() in DAX for what you want, as I am sure you have already realized.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
desertislesql
Most Valuable Professional
Most Valuable Professional

How to create a column containing today's date depends on the source of the query.  If the query is from SQL Server the query would be something like Select column1, getdate() as Loaddate from tableY

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors