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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Aruna_ln
Helper III
Helper III

Century date format to current date format

Hi My date format centure date(7 numbers)

example:1170228

left to right:first number is centure1 for 20,0 for 19

then two digit is years mean 197 mean 2017 years

then 02 mean MM

then 28 is DD

 

I need date format 2017/02/28

 

Please any help on DAX formal or any Power Bi date format option availble 

 

Thanks

Aruna

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Aruna_ln,

You can change the data type of the Date column to Date.

1.PNG

Regards,
Lydia

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Aruna_ln,

Create the following columns in your table.

Column = IF(LEFT(Table[Column1],1)="0","19","20")

 

Date = Table[Column]&MID(Table[Column1],2,2) &"/"& MID(Table[Column1],4,2) &"/" &RIGHT(Table[Column1],2)

1.PNG

Regards,
Lydia

Thanks You but ineed data type is Date

Anonymous
Not applicable

@Aruna_ln,

You can change the data type of the Date column to Date.

1.PNG

Regards,
Lydia

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors