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
n8schicht
Helper I
Helper I

type datetime - after transformation in Excel in Num-Format

Hello Everybody,

 

i have a problem:

#"Geänderter Typ1" = Table.TransformColumnTypes(sw_az_update,{{"sw_az_update", type datetime}}),

 

after Transformation, the format in the excel sheet looks like: 

43693,01013

 

how can i format this in date-format - like in the powerquery showed?powerqery for date: =DateTime.LocalNow()powerqery for date: =DateTime.LocalNow()Unfortunately in Excel, the date is then displayed incorrectlyUnfortunately in Excel, the date is then displayed incorrectly

 

thx

1 REPLY 1
Stachu
Community Champion
Community Champion

this is an Excel question, so for the future I'd suggest using the Excel forums:
https://social.technet.microsoft.com/forums/office/en-us/home?forum=excel&filter=alltypes&sort=lastp...

 

Power Query can only have 1 datatype in the column, and it seems you have multiple (boolean, datetime, integer, decimal), as the result of unpivotting. Still Power Query has to assign single data type to the unpivotted column. I assume the type at the moment is either Any or Decimal, that's why the formatting is not preserved.

You can just change the format of the cell with 'Ctrl + 1', but I think you would need to do that each time
Alternatively you could have a helper column specyfying the type of particular row, and then change the type to Text with specific formatting



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

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.

Top Solution Authors
Top Kudoed Authors