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
esero88
Frequent Visitor

Expression.Error: We couldn't parse the input provided as a Time value.

I have created a query, but I'm getting an error in the last step. I haven't figured out why.

The query: 

 

let
Source = MesaiFact,
#"Added Custom" = Table.AddColumn(Source, "Yesterday", each [Day] - #duration(1,0,0,0)),
#"Changed Type" = Table.TransformColumnTypes(#"Added Custom",{{"Yesterday", type date}}),
#"Inserted Merged Column" = Table.AddColumn(#"Changed Type", "DateMinGiris", each Text.Combine({Text.From([Day], "tr-TR"), Text.From(Time.From([MinGiris]), "tr-TR")}, " "), type text),
#"Merged Queries" = Table.NestedJoin(#"Inserted Merged Column", {"Yesterday", "Card_Number"}, MesaiFact, {"Day", "Card_Number"}, "MesaiFact", JoinKind.Inner)
in
#"Merged Queries"

Error:

 

Expression.Error: We couldn't parse the input provided as a Time value.
Details:
2024-02-21 08:31:05

Please can you help?

3 REPLIES 3
ZhangKun
Super User
Super User

This error is caused by Time.From, which cannot recognize time with date. If you only need the time, you can use the following code instead of Time.From()

DateTime.Time(DateTime.From("2024-02-21 08:31:05"))
bhanu_gautam
Super User
Super User

@esero88 , Try using below code

 

let
Source = MesaiFact,
#"Added Custom" = Table.AddColumn(Source, "Yesterday", each [Day] - #duration(1,0,0,0)),
#"Changed Type" = Table.TransformColumnTypes(#"Added Custom",{{"Yesterday", type date}}),
#"Converted MinGiris to Time" = Table.TransformColumns(#"Changed Type", {{"MinGiris", each try Time.From(_) otherwise null, type time}}),
#"Inserted Merged Column" = Table.AddColumn(#"Converted MinGiris to Time", "DateMinGiris", each Text.Combine({Text.From([Day], "tr-TR"), Text.From([MinGiris], "tr-TR")}, " "), type text),
#"Merged Queries" = Table.NestedJoin(#"Inserted Merged Column", {"Yesterday", "Card_Number"}, MesaiFact, {"Day", "Card_Number"}, "MesaiFact", JoinKind.Inner)
in
#"Merged Queries"




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Still getting same error,

 

Expression.Error: We couldn't parse the input provided as a Time value.
Details:
2024-02-21 14:20:47

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors