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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Date change when importing a salesforce object via data flow

Hi all 

I have a big problem. But I hope you can find a solution.

I recreated the entire data model I had connecting directly to salesforce objects, instead of connecting to Excel reports and spreadsheets.

I used the data flow.

However, when bringing the data, the date does not match the local date.

For example, a sale was closed on 1/31/2020 at 8:34 am and when you bring that sale up, the date appears as 2/1/2020 at 11:34 am.

Is there a possibility to correct this

 

best regards

6 REPLIES 6
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try to use UTCNOW or UTCTODAY function.

Hope this can help.

 

Best Regards,

Giotto Zhi

Anonymous
Not applicable

Thanks

 

but could you explain to me which way to go with this informantion? please... should I use in each date field? for example?

 

regards

 

 

Greg_Deckler
Super User
Super User

I have a timezone table you can find here. https://github.com/gdeckler/DAXCookbook/tree/master/Ch3


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks @Greg_Deckler 

 

but could you explain to me which way to go with this table? It wasn't clear to me.

 

Regards

Check out the PBIX file in that same repository. There is a recipe for time zone conversion in there.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

 

@Greg_Deckler I appreciate your patient and help.

I went searching and found that the date, in salesforce, actually writes to the table considering UTC. And for each org / user there is a timezone that converts that date to salesforce reports and layouts.

 

As I imported the table, the recorded value of the date is actually in UTC, and I am in UTC -3 hours.

Here is the same scenario that I am experiencing.

https://community.powerbi.com/t5/Issues/Time-zone-issue-with-Salesforce/idi-p/97839/page/2#comments
And it seems that there is still no solution.

 

Even looking at the file you indicated, I couldn't identify how to get around it. I keep searching.

 

Best regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors