Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Refresh schedule last refresh issue

Hello guys,

I have scheduled refresh for my report dail 6:00 AM EST (US and Canada) time zone and in my script , I used below json format in my blank query
= Json.Document(Web.Contents("http://worldtimeapi.org/api/timezone/America/New_York")) 

after this I converted to table and close and apply 
It's 2:05PM in India local time and it' showing 3:35 am in my desktop report, which is correct
But when I publish it and scheduling refresh. it's showing just same indian local time zone for last refreshed at

If I refresh at 2:05PM IST timezone, according to my script inside PBI report last refreshed at it must show 3:35AM as per EST

how to achieve it?

Please reply back, Thanks

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous 

     

    To show the date and time of the refresh we need to store the date and time of the time refresh runs in the model itself so we can show it in a visual.

    One of the easiest options is to use Power Query to store the current date\time as a table. 
    And you can use the DateTimeZone function to convert it to a particular timezone.

    This link can help:

    Show the refresh date\time in a Power BI report and dashboard - Kasper On BI

     

    If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

     

    To show the date and time of the refresh we need to store the date and time of the time refresh runs in the model itself so we can show it in a visual.

    One of the easiest options is to use Power Query to store the current date\time as a table. 
    And you can use the DateTimeZone function to convert it to a particular timezone.

    This link can help:

    Show the refresh date\time in a Power BI report and dashboard - Kasper On BI

     

    If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

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