Forum Discussion

4jhill's avatar
4jhill
Frequent Visitor
1 year ago
Solved

Automatic refresh not appearing on Last refresh card

On PowerBi desktop, I have set up a Last Refresh card, that displays data and time of this. I know that when I hit "refresh" manually on PowerBi desktop that the date and/ or time changes. I set an a...
  • v-veshwara-msft's avatar
    1 year ago

    Hi 4jhill ,
    Thank you for your question, and great points raised by Tutu_in_YYC  and tharunkumarRTK .
    It's true that ensuring the query is included in the dataset refresh and refreshing the browser after a scheduled refresh are important steps to check.
    In addition to that, I’d like to share a solution that ensures the 'Last Refresh' card reflects the automatic refresh.
    >Modify the query as below
     let
        CurrentUTCDateTime = DateTimeZone.UtcNow(),
        CurrentLocalDateTime = DateTimeZone.SwitchZone(CurrentUTCDateTime, 2),
        LocalDateTime = DateTimeZone.RemoveZone(CurrentLocalDateTime) // Remove the time zone metadata for consistency
    in
        LocalDateTime
    Now again publish the report to the service and configure the schedule refresh.
    This time it should work and display the correct date/time in the card.

    Hope this helps. Please accept as solution so that other users can benefit from it. Kudos would be appreciated.
    Best Regards.