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
siac16
Regular Visitor

Wrong Date Format

Hi,

 

I'm having an issue with the date format of a calculated column.

It should be dd/mm/yyyy in a long format, for example, Thursday, 16 of December of 2021.

Unfortunately, for the first 12 days, Power BI takes the format to mm/dd/yyyy. So, for example, November 2th turns into February 11th.

 

The formula I'm using is: 

date2 = concatenate(right(Table_FACEBOOK_PAGE_DATA[periodo],2)&"/",concatenate(left(right(Table_FACEBOOK_PAGE_DATA[periodo],4),2)&"/",left(Table_FACEBOOK_PAGE_DATA[periodo],4)))

 

Where "Periodo" have the correct date in format yyyymmdd (20211102)

 

Do any of you have an idea of how to resolve the issue?

 

The image is an example of how it looks like right now. The days 1st, 2md, 12th, turns into months, (the 11th is still November) but the 13th, 14th, and 15th are in the correct format.

 

WhatsApp Image 2021-12-16 at 7.26.33 AM.jpeg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@siac16 , Try like

Date = date( left(Table_FACEBOOK_PAGE_DATA[periodo],4) , mid(Table_FACEBOOK_PAGE_DATA[periodo],5,2) , right(Table_FACEBOOK_PAGE_DATA[periodo],2))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@siac16 , Try like

Date = date( left(Table_FACEBOOK_PAGE_DATA[periodo],4) , mid(Table_FACEBOOK_PAGE_DATA[periodo],5,2) , right(Table_FACEBOOK_PAGE_DATA[periodo],2))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi! it totally worked. Thank you so much

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.