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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Power Query change itself datetime

Hi,

I have problem with Postresql and Power Query.

In postgresql database i have data where format is timestamptz . Example: 2021-10-01 01:12:04.784 +0300

But when i load data to Power Query, then the value is 2021-09-30 22:12:05

Why PowerBI change the value and what to do, if i want excact date like in db?

I tried in SQL options:

date() does not work

:: timestamp does not work

AT TIME ZONE 'EET' does not work , because we have summer time and winter time

 

Some ideas?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Try to change your data type to Date/Time/Timezone.

vstephenmsft_0-1638861165449.png

 

Best Regards,

Stephen Tao

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Try to change your data type to Date/Time/Timezone.

vstephenmsft_0-1638861165449.png

 

Best Regards,

Stephen Tao

 

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

mahoneypat
Microsoft Employee
Microsoft Employee

Look for the Changed Type step in your query where that happens (probably the first one), and change it to type text instead of type datetime in the Formula Bar (or select that step and then change the type of that column to Text and choose Replace in the popup).

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors