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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Data format issue

Hi, 

 

i have a column in data set with format 1.2017 (as january 2017) but power BI reads it as 12-1899...?? how can i make it so is it read as january 2017? 

Thanks!

1 ACCEPTED SOLUTION
MatejZukovic
Resolver I
Resolver I

Hi @Anonymous ,

 

you can create new column, replace "." with "-" and convert Data type to Date.

 

Month = SUBSTITUTE('Table'[Date],".","-")

Modelling:

Data Type : 'Date'

Format : MMMM yyyy

 

Hope it helps,

Matej

 

View solution in original post

4 REPLIES 4
MatejZukovic
Resolver I
Resolver I

Hi @Anonymous ,

 

you can create new column, replace "." with "-" and convert Data type to Date.

 

Month = SUBSTITUTE('Table'[Date],".","-")

Modelling:

Data Type : 'Date'

Format : MMMM yyyy

 

Hope it helps,

Matej

 

Anonymous
Not applicable

thanks, work fine.

Hi @Anonymous ,

 

If your issues are solved, you could accept the reply you like.

 

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

Hi @Anonymous 

You can also do it in the query editor without the need for a new column. Just click on the column with the right button of the mouse, choose "Replace value" and replace "." with "-". Then change type of the column to Date and that should be it

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.