Power Query M code
let
Source = #table({"LastRefreshed"}, {{DateTime.LocalNow()}})
in
Source
Creates a one-row table capturing the exact date and time the query last refreshed, for display on a report.
let
Source = #table({"LastRefreshed"}, {{DateTime.LocalNow()}})
in
Source
Generate a date table in Power Query M
DateTime.LocalNow() reflects the machine or service running the refresh - use DateTimeZone.FixedLocalNow() if you need a specific offset.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Last Refresh Timestamp Table.