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
DM_EU
Helper I
Helper I

Show refresh date and time in DirectQuery when using Page refresh

Hello,

 

I am using Page Refresh in DirectQuery mode and I would like to show on the report the last time the dataset has been refreshed. For example, if I put the page refresh every 10 minutes, when I go to Power BI Service, I need to know when exactly the data has been refreshed.

 

Is it possible?

 

Thank you

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

@DM_EU if UTCNOW isn't giving accurate results, then try using this:
Last refresh = NOW()

 

Please mark this as a solution & hit the thumbs up if it helps you. Thanks.

View solution in original post

6 REPLIES 6
truptis
Community Champion
Community Champion

@DM_EU if UTCNOW isn't giving accurate results, then try using this:
Last refresh = NOW()

 

Please mark this as a solution & hit the thumbs up if it helps you. Thanks.

@truptis UTCNOW() or NOW() doesn't work for me. 
NOW() correctly works in PBI Desktop but changes time in PBI Service. UTCNOW() shows UTC time. Can you please suggest any other idea?? 

@Pooja_Pandya - try using Now()-8/24

 

this might work

 

please hit a thumbs up and mark it as a solution if it helps you. Thanks.

 

Thank you very much for your help truptis 🙂

Have a nice day

truptis
Community Champion
Community Champion

Hi @DM_EU , 

If it is a directQuery then create this measure:

Last Refresh date = UTCNOW()

Please mark this as a solution & hit the thumbs up if it helps you. Thanks. 

HI truptis,

 

It almost works but there is one hour of difference. How can I remove one hour from this measure to be accurate with my timezone?

 

Thank you

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