Forum Discussion

Chapin4u's avatar
Chapin4u
Microsoft Employee
8 years ago
Solved

Subtract 6 hours

        I have the following query to show my last refresh in my report. When I upload the report to Power BI services (Web) show time 6 hours ahead of my local time, therefore, need to sub...
  • v-sihou-msft's avatar
    8 years ago

    Chapin4u

     

    Power BI Service is cloud service, you may get the time zone issue when using functions like NOW(), TODAY() since it takes the cloud server's date. You can use  DateTimeZone.SwitchZone function int Power Query to set your local time. Please refer to articles below:

     

    Solving DAX Time Zone Issue in Power BI

    Daylight Saving Time And Time Zones In M

     

    If you just want to workaround this by substract 6 hours, you can create a custom column and add "+#duration(0,-6,0,0)" to your Date column.

     

     

    Regards,