Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Instead of publish,semantic refresh date. i need to show date for latest changes of datasource in dashboard. How can i do it ?
Solved! Go to Solution.
In power query, you create a new blank query, then you click on advanced editor in the home ribbon and you paste this code instead of the source one:
let
Source = DateTime.LocalNow()
in
Source
Then you just have to convert it to a table:
Rename the query with something like LastRereshDate, close and apply and now, you are able to get the last refresh date in your report
If you prefer, you can also create a table in DAX and use the NOW() function but you have to create a calculated column, if you use it with a measure, each time you open the report, the date will be updated
Create a blank query with the following script.
let
Source = DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),8),
#"Converted to Table" = #table(1, {{Source}}),
#"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date"}}),
#"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Date", type datetime}})
in
#"Changed Type"
Replace 8 with your actual GMT offset. My timezone is GMT+8. This approach takes into consideration that you will be refreshing the semantic model in the service which uses GMT and thus the need to to use DateTimeZone.UtcNow() and then convert it to the local timezone. Please note that Power BI doesn't have a built-in function to check for daylight savings.
If you're referring to when your data itself upon refresh, it depends on the data source. You can use the latest timestamps in the data or if flat files saved in sharepoint the creation or modified date.
Hi Manikanta2108,
We wanted to see if the information we gave helped fix your problem. If you need more help, please feel free to contact the Microsoft Fabric community.
Thank you.
Hi Manikanta2108,
We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.
Thank you.
Hi Manikanta2108,
We would like to follow up and see whether the details we shared have resolved your problem.
If you need any more assistance, please feel free to connect with the Microsoft Fabric community.
Thank you.
Thankyou, @Cookistador, @Ritaf1983 , @danextian for your responses.
Hi Manikanta2108,
We sincerely appreciate your query posted on the Microsoft Fabric Community Forum.
Based on my understanding, the current query returns the dataset’s last refresh time, that is, the semantic refresh time in Power BI, rather than the actual last modified date or time of the source data. Power BI does not automatically detect changes in the source data; therefore, the last modified timestamp must be obtained directly from the source metadata or from a specific timestamp column.
To retrieve the date of the last data modification from the source, please follow the appropriate approach depending on your data source type:
After retrieving the timestamp, load it into the model and display it using a Card visual. This will always show the actual source data change date after refresh, rather than merely the dataset refresh time.
We hope that the above information will help you resolve the issue. Should you have any further questions, please feel free to reach out to the Microsoft Fabric community.
Thank you.
Create a blank query with the following script.
let
Source = DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),8),
#"Converted to Table" = #table(1, {{Source}}),
#"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date"}}),
#"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"Date", type datetime}})
in
#"Changed Type"
Replace 8 with your actual GMT offset. My timezone is GMT+8. This approach takes into consideration that you will be refreshing the semantic model in the service which uses GMT and thus the need to to use DateTimeZone.UtcNow() and then convert it to the local timezone. Please note that Power BI doesn't have a built-in function to check for daylight savings.
If you're referring to when your data itself upon refresh, it depends on the data source. You can use the latest timestamps in the data or if flat files saved in sharepoint the creation or modified date.
Please refer the linked video:
https://www.youtube.com/watch?v=oN6mOmEruOQ&t=2s
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
In power query, you create a new blank query, then you click on advanced editor in the home ribbon and you paste this code instead of the source one:
let
Source = DateTime.LocalNow()
in
Source
Then you just have to convert it to a table:
Rename the query with something like LastRereshDate, close and apply and now, you are able to get the last refresh date in your report
If you prefer, you can also create a table in DAX and use the NOW() function but you have to create a calculated column, if you use it with a measure, each time you open the report, the date will be updated
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.