【发布时间】:2021-03-05 03:11:25
【问题描述】:
在 excel 中刷新查询时,我遇到了一个弹出错误,并且不允许我转到发生错误的位置。在电源查询编辑器中,没有出现错误。当我退出电源查询编辑器并尝试将查询加载到表中时,出现表达式错误。以下是电源查询编辑器显示日期的屏幕截图:
但是当我尝试按日期过滤表格时,我得到:
代码中出现错误的地方在这里:
let
Source = Csv.Document(Parameter3,[Delimiter=",", Columns=13, Encoding=65001, QuoteStyle=QuoteStyle.Csv]),
#"Removed Top Rows" = Table.Skip(Source,2),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Top Rows", [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Date", type date}, {"Domain", type text}, {"Content", type text}, {"Sender Profile Image Url", type text}, {"Created Time", type datetime}, {"Permalink", type text}, {"snTypeColumn", type text}, {"Associated Cases", type text}, {"Product Brand Name", type text}, {"Product", type text}, {"Sentiment", type text}, {"Star Rating", Int64.Type}, {"Experience Score", Int64.Type}})
在 #"改变类型"
这是我查询的表:
{"Date", type date}, {"Domain", type text}, {"Content", type text}, {"Sender Profile Image Url", type text}, {"Created Time", type datetime}, {"Permalink", type text}, {"snTypeColumn", type text}, {"Associated Cases", type text}, {"Product Brand Name", type text}, {"Product", type text}, {"Sentiment", type text}, {"Star Rating", Int64.Type}, {"Experience Score", Int64.Type}}
【问题讨论】:
-
请发布您的完整代码,以及该表的起始数据视图
-
或者,如果您可以共享示例文件,那么有人可能会找出问题所在。
-
@TerryW:这不是 SO 的工作方式。如果无法在问题本身中提供信息,则该问题不适合本网站。您不能在外部发布文件,然后要求人们去获取该文件并解决问题。
标签: excel excel-formula powerbi powerquery