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
AFra
Helper III
Helper III

Change date format in dataset table

Hi all, 

 

I have a table with 200 date columns.

AFra_0-1622819483840.png

 

They are displayed in a long format. I'd like to have it displayed such as 26/10/2015

I know how to change the format column by column, but it will be long. Is there a way to change it all at once? 

Thanks in advance! 

Ana 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi,  @AFra 

Please try follow steps:

1. Select all fields in the table in the "Model view" (select a field first,then ctrl+A to select all fields)

23.png

2.Change the data type and format as follows:

24.png

 

Best Regards,
Community Support Team _ Eason
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-easonf-msft
Community Support
Community Support

Hi,  @AFra 

Please try follow steps:

1. Select all fields in the table in the "Model view" (select a field first,then ctrl+A to select all fields)

23.png

2.Change the data type and format as follows:

24.png

 

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

thanks a lot! it works nicely and it's going to save me a LOT of time : ) 

Anonymous
Not applicable

Hi @AFra ,

 

yes this is possible in the advanced editor.

First specify the columns you want to change the data like:

custom1 = List.Skip(Table.ColumnNames(Source),10),             --> this is if you want to select column 10 onwards.

Then you can change the type of all the slected columns in custom1 by:

 

changetype = Table.TransformColumnTypes(Source,List.Transform(Custom1, each {_,type date}))

 

after "type" you can enter the date time you want. 

 

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.