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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to define a refresh date on a dashboard?

Hi All,

I have a requirement to show/display the latest refresh date on the dashboard/report.

 

Example: If 1st refresh is on 9AM  12/01/2020

the next refresh is on 11AM 12/01/2020

                                    1PM 12/01/2020 like this.

 

If date changes it would automatically need to update

 

Appriciate your help.

 

Thanks,

Anand

1 ACCEPTED SOLUTION
hkice
Advocate II
Advocate II

Try this - How to show the time data was last refreshed on a Power BI report.
1. Open Power BI Desktop and go into the Query Editor
2. Click on New Source and select Blank Query
3. Rename the Blank Query from Query1 to Last Dataset Refresh
4. Click on the Advanced Editor and put in the following M Code:

 

let
TodaysDate = DateTime.From(DateTimeZone.FixedLocalNow()+ #duration(0,-4,0,0)),
#"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 datetime}})
in
#"Changed Type"

 

5. Close and Apply

6. Create a Calculated Measure called Data Last Refreshed
Data Last Refreshed = VALUES ( 'Last Dataset Refresh'[Last Refresh Date Time] )

7. Put a Card Visual in the report
8. Drag the calculated measure you just created, Data Last Refreshed, to the Card visual

Done

 

Hope this helps.

View solution in original post

1 REPLY 1
hkice
Advocate II
Advocate II

Try this - How to show the time data was last refreshed on a Power BI report.
1. Open Power BI Desktop and go into the Query Editor
2. Click on New Source and select Blank Query
3. Rename the Blank Query from Query1 to Last Dataset Refresh
4. Click on the Advanced Editor and put in the following M Code:

 

let
TodaysDate = DateTime.From(DateTimeZone.FixedLocalNow()+ #duration(0,-4,0,0)),
#"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 datetime}})
in
#"Changed Type"

 

5. Close and Apply

6. Create a Calculated Measure called Data Last Refreshed
Data Last Refreshed = VALUES ( 'Last Dataset Refresh'[Last Refresh Date Time] )

7. Put a Card Visual in the report
8. Drag the calculated measure you just created, Data Last Refreshed, to the Card visual

Done

 

Hope this helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors