cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AFra
Helper II
Helper II

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.

View solution in original post

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

commodity_check
Helper II
Helper II

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors