March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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.
Solved! Go to Solution.
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
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |