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
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
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.