Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Launch Power BI Desktop and click on the Transform Data option.
From the Home ribbon, click on New Source and select Blank Query.
Once the Blank Query table (named "Query1") appears under the Queries section, right-click on it and rename it to Last Refreshed Date.
Now, open the Advanced Editor from the Home ribbon and paste the following M code:
let
Source = #table(type table[Date Last Refreshed=datetime], {{DateTime.LocalNow()}})
in
Source
Once you paste the code, click on Done.
This M code creates a column named Last Refreshed Date, containing the current date and time. The date will update every time you refresh the dataset.
Click on Close & Apply to save and apply the changes.
To show the last refreshed date, you can use either:
A Card visualization
A Text Box, depending on the available space in your report.
Adding a last refreshed date detail in your Power BI report helps users understand data freshness and ensures that automatic refreshes are working as expected.
I hope you found this blog helpful! 🚀
Best Regards
Anmol Malviya
Sr. Data Analyst | Addend Analytics
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.