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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anmolgan
Post Prodigy
Post Prodigy

How to convert decimal date to Date type?

I want to convert all the dates that are in format of 01.10.2019 to 1/10/2019, like this I tried directly using the Date converter in the Power Query but it does not work and there are many date format that do not changed when I try to applied the date type. Is there any best way to do this, I want to calucalte sales happend on a period lets say 01.01.2019 -1 year, all the sales happend at that period of time, but my dates are in decimal what is the best way to achive this?

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

Hi @Anmolgan ,

 

If you want to convert "dd.mm.yyyy" as the date format, we can just add "de-AT"or some other culture code in the Table.TransformColumnType function like following:

 

16.PNG17.PNG

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjDUMzTQMzIwtFTSUTJUitWJVgLyDWEiRkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Date = _t, Value = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Value", Int64.Type}},"de-AT")
in
    #"Changed Type"


Best regards,

 

Community Support Team _ Dong Li
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

6 REPLIES 6
v-lid-msft
Community Support
Community Support

Hi @Anmolgan ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @Anmolgan ,

 

If you want to convert "dd.mm.yyyy" as the date format, we can just add "de-AT"or some other culture code in the Table.TransformColumnType function like following:

 

16.PNG17.PNG

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjDUMzTQMzIwtFTSUTJUitWJVgLyDWEiRkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Date = _t, Value = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Value", Int64.Type}},"de-AT")
in
    #"Changed Type"


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thim
Resolver V
Resolver V

Have you tried to use "replace value" under Quiry editor?

 

If not

go under Quiry editer.

Right click on the date column

choose Replace value

Then replace . with /

 

If this dosn't work, then try and replace with -

 

Hope this will help. 🙂

amitchandak
Super User
Super User

Try

Combine = mid(DD__MM__YY[Date],4,2) &"/"& left(DD__MM__YY[Date],2) & "/" & right(DD__MM__YY[Date],4) & " "& DD__MM__YY[ time]

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  Do I need to create custom query for this?

Create a new column

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.