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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.