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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.