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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
suvechha
Helper IV
Helper IV

Latest update details ?

Hi All,

How to show the latest dataset refresh details which is showed with green arrow in the power bi app Card visualization ?

suvechha_0-1597381783910.png

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @suvechha ,

 

Within Power BI Desktop, you can add another Power Query dataset to display the current date each time we refresh the report. You may create a new Blank Query, and then add this into the Advanced Editor:

let

    Source = DateTimeZone.FixedUtcNow()

in

    Source

 

 

These examples use UTC. You can adjust the query code based on your specific timezone as described in DateTimeZone functions.

 

For example:

 

let

Source = DateTimeZone.SwitchZone(DateTimeZone.FixedUtcNow(),-3)

in

Source

 

For reference:

 

 Display Last Refreshed Date in Power BI

 

Create a column in Power BI for last refresh date

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @suvechha ,

 

Within Power BI Desktop, you can add another Power Query dataset to display the current date each time we refresh the report. You may create a new Blank Query, and then add this into the Advanced Editor:

let

    Source = DateTimeZone.FixedUtcNow()

in

    Source

 

 

These examples use UTC. You can adjust the query code based on your specific timezone as described in DateTimeZone functions.

 

For example:

 

let

Source = DateTimeZone.SwitchZone(DateTimeZone.FixedUtcNow(),-3)

in

Source

 

For reference:

 

 Display Last Refreshed Date in Power BI

 

Create a column in Power BI for last refresh date

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User
pranit828
Community Champion
Community Champion

HI @suvechha 

 

We need to generate the Last Refresh date ourselves using Power Query.  No big deal, it is as simple as this:

  • Open PowerBI Desktop
  • Get Data –-> Blank Query
  • Go to Home –> Advanced Editor and replace the code in the window with this:

let
Source = #table(type table[LastRefresh=datetime], {{DateTime.LocalNow()}})
in
Source

  • Click Done and rename the query “LastRefresh_Local”
  • Click Close & Apply

To finish it off, we need to create a simple measure and add it to our dashboard.

  • Go to your Report window –> New Measure –> Define it as follows:

Last Refreshed (Local) = FORMAT(LASTDATE(LastRefresh_Local[LastRefresh]),"mmm dd, yyyy hh:mm:ss AM/PM")

  • Create a Card visual for display
 

Did I resolve your issue? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!!

 

Regards,
Pranit





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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