DATE.FROMTEXT中的Excel Power查询编辑器不起作用

问题描述 投票:0回答:1

(如下所述:

Https://learn.microsoft.com/en-us/powerquery-m/date-fromtext#example-4

但是它不起作用。我收到了错误消息:

Expression.Error: We cannot convert a value of type Record to type Text. Details: Value= Format=dd.MM.yyyy Type=[Type] 我发现一些尝试和错误后,这有效:

= Table.TransformColumns(Source, {"StartDate", each Date.FromText(Text.Range(_, 0, 10), "de-DE"), type date})

,但我不明白这一点。该手册清楚地指出,这里应该有记录,而不是字符串。另外,该字符串只接受文化,而不接受格式字符串。
为什么它在excel中不断起作用?我如何在这里使用格式字符串?

我使用Excel 2019btw.
    

可能是您较旧版本的Excel。在Excel 365中,您的第一个代码正常工作。

excel powerquery m excel-2019
1个回答
0
投票

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.