Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power BI - Salesforce Timestamp Issue

Hello,

 

In Power Bi Desktop I am getting data from Salesforce Objects (Case Table). Whenever the data is imported the timestamps on the dates are 5hrs ahead of time, which is throwing off our metrics on every record. Is there anyone who could help resolve this issue?

 

Example:
Actual Salesforce Created Date = 6/4/2019 4:02 PM
Power BI Converted Created Date = 6/4/2019 9:02 PM

6 REPLIES 6
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Is your calendar table created with DAX formula? If that is the case, you can not edit this calendar table in "Power Query".

 

Best regards,
Lionel Chen

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

 

 

Anonymous
Not applicable

I was able to get this formula to work in DAX, but it doesnt relate to my calendar table after aligning the formats. I would like to try this in M. How would this formula look as an M function?

 

Thank you so much for the help! This is great for building my power bi knowledge .

v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

v-lionel-msft_0-1608630064836.png

How did this date field come from? From DAX formula or M function?
You don't need to create a new column, you can subtract 5 hours from this date field to get your local time.

 

__now = NOW() -TIME(4,0,0)

 

 

v-lionel-msft_3-1608630493513.png

 

v-lionel-msft_4-1608630505160.png

 

 

Best regards,
Lionel Chen

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

 

 

 

 

 

v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

How many hours is there between your local time and UTC time? Service server uses UTC time.

Try to add such a column in 'Edit Query'.

v-lionel-msft_0-1607652598509.png

 

Best regards,
Lionel Chen

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

Anonymous
Not applicable

Hello, there is a 5hr difference. For performance reasons, is there a solution without having to create a new column? 

 

Hi @Anonymous - Did you ever come up with a workable solution for this? I'm pretty new to PBI and I'm experiencing the same issue. Thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.