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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hoping this isn't a complete noob question....
I have a data source (Excel file) that contains data but has no DATES Column to extract from.
In the Query Editor I'd like to:
1. Add a new column
2. Populate it with the date the data was refreshed OR the current date.
I've tried a bit using =NOW() and can do that outside of the query but would rather have it done upon the source refresh.
Appreciate any guidance.
-Jackson
Solved! Go to Solution.
Hi @Jaxon,
You could create a calculated column in Data view in Power BI Desktop by Today().
Best Regards
Cherry
@Jaxon- Here is a very basic example:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Refresh", each DateTime.LocalNow())
in
#"Added Custom"
Hi @Jaxon,
You could create a calculated column in Data view in Power BI Desktop by Today().
Best Regards
Cherry
Thank-you! I will give it a go.
@Jaxon- Here is a very basic example:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Refresh", each DateTime.LocalNow())
in
#"Added Custom"
Thanks much! Working through it now.
Sadly I have a dreaded refresh error I am trying to squash as well. (Fixed)
DateTime.LocalNow
https://msdn.microsoft.com/en-us/library/mt253492.aspx
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |