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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
croberts21
Responsive Resident
Responsive Resident

How do I put the last date and time my data was refreshed, on my report?

I want to put the date and time this PBIX file was refreshed on my report. I found some local logs on my PC, one is named:

PBIDesktop.9984.2022-03-23T15-08-57-840230.log. But I suspect this filename changes with every refresh I do for every PBIX file. I have about 8 PBIX files right now.

 

How would I get the most recent file that starts with PBIDesktop*.log?

How would I identify the entry that tells me the refresh time and date? 

 

Thank you.

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can create a new query in Power Query. If you are pulling data from a database you could use a query like "select current_date()", or you could just create a query using M

let
    Source = DateTime.FixedLocalNow(),
    #"Converted to Table" = #table(1, {{Source}})
in
    #"Converted to Table"

Every time your data is refreshed that table will be updated

View solution in original post

4 REPLIES 4
johnt75
Super User
Super User

You can create a new query in Power Query. If you are pulling data from a database you could use a query like "select current_date()", or you could just create a query using M

let
    Source = DateTime.FixedLocalNow(),
    #"Converted to Table" = #table(1, {{Source}})
in
    #"Converted to Table"

Every time your data is refreshed that table will be updated

Thank you. I'm not familiar with creating a query. Do you have steps that I can read to create this query? I'm still fairly new to PBI.

 

Do I go to Transform, New Source, Blank Query?

Yes, New Source -> Blank Query then open the Advanced Editor and replace everything that's in there with the code above

It works!

 

Note to self, use a data source that only takes 1 minute to refresh when testing this.

 

I also noticed I had to hit ENTER after pasted these lines to create a blank line after the other lines. Then it worked right.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.