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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
rsbin
Super User
Super User

Automatic Page Refresh - Capture Date and Time in Tile

Good Morning,

I currently use a Web API to capture the date and time of the Last Refresh.  In Power BI Service, I have been updating a few times per day.

rsbin_0-1621003828353.png

We are now upgrading just a few pages of this multi-page Report to Direct Query to take advantage of the Automatic Page Refresh option so we can refresh just these few pages every five minutes.  Does anyone know how I would create a tile to capture and update this tile with the latest Refresh Time?

 

Thanks and Kind Regards,

 

 

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @rsbin ,

 

when you use DirectQuery the values are updated whenever you interact with the report or when you trigger a refresh.

This means you can just use a Measure to show NOW or UTCNOW as last refresh date:

Last Refresh = NOW()

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

3 REPLIES 3
selimovd
Super User
Super User

Hey @rsbin ,

 

when you use DirectQuery the values are updated whenever you interact with the report or when you trigger a refresh.

This means you can just use a Measure to show NOW or UTCNOW as last refresh date:

Last Refresh = NOW()

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hi @selimovd,

Thank you for the quick response.  Just need a clarification though.  When i use Now() on my desktop, it gives me Eastern Time.  Once I publish on the Service will the result of this Measure be in UTC time?

 

Thanks again! 

Hey @rsbin ,

 

NOW is always using the local time, so on your PBI Desktop your computer time. As far as I remember Power BI Service changed once to always use UTC time, but you should verify that.

 

The best way is either to use UTCNOW() and say it's UTC time or if you want a specific local time, then add or subtract the hours. For example:

Last Refresh = UTCNOW() + TIME ( 1, 00, 00 )

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors