Forum Discussion
Report dataset ending refreshing time PowerBI
You can use an if that calculates after your longest query to get close to that. Or you can just make a DAX table with the NOW() function, so it recalculates after the queries load.
RefreshTable = {NOW()}
let
Source = if Table.RowCount(longestquery)>0, Date.From(DateTime.LocalNow()), null)
in
Source
Regards,
Pat
This is my current query in advanced query to get starting refreshing time:
let
TodaysDate = DateTimeZone.FixedUtcNow(),
#"Converted to Table" = #table(1, {{TodaysDate}}),
#"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Last Refresh Date Time"}}),
#"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Last Refresh Date Time", type datetimezone}})
in
#"Changed Type"
Where will you add if? Thank you for your details.