Forum Discussion

manoj_0911's avatar
manoj_0911
Icon for Kudo Commander rankKudo Commander
1 year ago
Solved

Power BI Service Automatically Converts PST Date to UTC – How to Keep DB Date as PST?

Power BI Service Automatically Converts PST Date to UTC – How to Keep DB Date as PST?   Hi everyone,   I'm facing a timezone issue and would appreciate your help. I’m pulling data into Power BI ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi manoj_0911 ,
    Thanks for reaching out to the Microsoft fabric community forum.

     
    Try these Steps to resolve your issue -

    Load into Power BI Desktop
    Create a new table in Power BI or connect to your SQL data source.
    Open the Transform Data option to access Power Query Editor.

    Apply UTC Conversion

    In Power Query, go to Add Column > Custom Column:
     

    DateTimeZone.SwitchZone(DateTimeZone.From([TXN_DATE]), -8)

    Rename this new column to TXN_DATE_UTC. This approach applies the PST offset. For daylight saving time (March–November), use -7 or -8.

    Before publishing it double-check  if the column is correctly typed in Power Query > Data Type for datetimezone.

     

    Test in Power BI Service
    Publish your report to Power BI Service.
    The TXN_DATE_UTC field will display the same as in Desktop, with no additional UTC adjustment.

    Since you’ve already adjusted to UTC, Power BI Service will keep the date consistent across environments.

    Please find the attached .pbix file for your reference. 

    If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it

    Best Regards,
    Sreeteja.
    Community Support Team