Forum Discussion

maryanncardenas's avatar
maryanncardenas
Regular Visitor
1 year ago
Solved

Change Date/Time Zone

I would like to ask for your help as I wanted to use different timezone for example use Dublin Time whenever my report refreshes. I tried using the measure "UTCNOW() + TIME(1,00,0)" - it does get the...
  • GrowthNatives's avatar
    1 year ago

    hey maryanncardenas,

    To get report refresh time in Dublin time:

    1. Go to Power Query β†’ New Blank Query
    2. Paste this code:
      • let

        utcNow = DateTimeZone.UtcNow(),

        dublinTime = DateTimeZone.SwitchZone(utcNow, 1) // Use 0 or 1 depending on DST

        in

        dublinTime
    3. Name it RefreshTimeDublin and load it to your model.

    *Note:

    • UTCNOW() in DAX shows current time, not refresh time.
    • Only Power Query captures the actual refresh timestamp.

    ⭐Hope this solution helps you make the most of Power BI! If it did, click 'Mark as Solution' to help others find the right answers.
    πŸ’‘Found it helpful? Show some love with kudos πŸ‘ as your support keeps our community thriving!
    πŸš€Let’s keep building smarter, data-driven solutions together! πŸš€ [Explore More]