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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.