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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
CassandraF
New Member

Custom datetime column inconsistent formatting

Hi all,

 

I have a report with several datetime columns that have to be converted to local time from UTC. This is done with a couple of variables that check whether it's currently DST or not and then return the correct offset time, which is then added to the original datetime to return the local dtm value in a new custom column.

 

I am having an issue where one of these columns is returning dates from January as dd/mm/yyyy as intended, but then February dates are displaying as mm/dd/yyyy. This issue is not occurring with any of the other custom columns which are all configured exactly the same way.

Any ideas what is causing this to occur? I was not able to find any similar issue online. Both my system and the report are in the correct region, and the column is forced to dd/mm/yyyy in the formatting settings. Unfortunately I cannot share the report or dataset due to privacy reasons.

Any assistance is greatly appreciated.

 

CassandraF_0-1711430796406.png

CassandraF_1-1711430824778.png

 

2 ACCEPTED SOLUTIONS

On their own they look fine.  Next i'd check the 3 different locale settings and make sure they are consistant:
Set a locale or region for data (Power Query) - Microsoft Support

View solution in original post

Thank you. The data source is a Dynamics365 dataverse. The report region / locale was correctly set to Australia already however my device was using a "default" setting. I have adjusted this to specifically point to Australia instead and this seems to have fixed the issue.

Such a simple solution! Thank you again Ross for helping talk me through this issue. It is truly appreciated!

View solution in original post

4 REPLIES 4
RossEdwards
Solution Sage
Solution Sage

I have run into this issue.  Basically the date formatting is getting tagged during your transformation process.  I would guess that you are likely seeing this issue crop up on dates that meet 2 conditions:

1.  The date is on day 1 to 12 of the month.

2. The date needed to have a UTC adjustment.

 

Are you doing this transformation in Power Query?  Whats the part of the formula that sets the date?  Could you change your formula to instead just add #duration(0, X, 0, 0)?

Hi Ross,

 

Thank you very much for taking the time to respond.

Here is precisely how the custom column is being calculated:

CassandraF_0-1711489069205.png


You are quite right that this is occurring for days 1-12 in the month.

On their own they look fine.  Next i'd check the 3 different locale settings and make sure they are consistant:
Set a locale or region for data (Power Query) - Microsoft Support

Thank you. The data source is a Dynamics365 dataverse. The report region / locale was correctly set to Australia already however my device was using a "default" setting. I have adjusted this to specifically point to Australia instead and this seems to have fixed the issue.

Such a simple solution! Thank you again Ross for helping talk me through this issue. It is truly appreciated!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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