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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

@Aruna_ln,

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

1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks You but ineed data type is Date

@Aruna_ln,

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

1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.