powerbi - Power BI - Expression.Error:我们无法将 null 值转换为 List 类型
问题描述
运行电源查询时出现此错误。有时它会成功刷新,有时它会给我这个错误。我该如何解决?它是我必须更改的数据类型吗?
Expression.Error:
We cannot convert the value null to type List.
Details:
Value=
Type=[Type]
这是引发错误的查询,有时它会刷新:
let
List = List.Generate(
() => [i=0, x = ""],
each [i] <= Count,
each [
i = [i] + 1,
x =
Table.FromRows(((Table.SelectRows(API, each [Index] = i)[Value]){0})[DataResult], {
"Date",
"Region",
"Location",
"Name",
"VPN",
"Category",
"Network",
"Percentage",
"BadQualityCount",
"UnknownCount",
"CallCount"
})
]
),
Result = Table.FromRecords(List),
Result2 = Table.Skip(Result,1),
DataResultTable = Table.Combine(Result2[x]),
DataResultTableWithTypes = Table.TransformColumnTypes(DataResultTable,{
{"Date", Date.Type},
{"Region", type text},
{"Location", type text},
{"Name", type text},
{"VPN", type text},
{"Category", type text},
{"Network", type text},
{"Percentage", type number},
{"BadQualityCount", Int64.Type},
{"UnknownCount", Int64.Type},
{"CallCount", Int64.Type}
}),
Output = Table.SelectRows(DataResultTableWithTypes, each true)
in
Output
解决方案
推荐阅读
- checkbox - 两列列表框 pySimpleGui
- wildcard - 如何在具有多个规则的蛇形管道中引入新的通配符
- android - Xamarin Firebase 消息缺少依赖项异常
- python - 将多个 json 文件附加在一起并使用 Python 输出 1 个 Avro 文件
- bash - Bash:为什么“查找”会返回不包含搜索词的“权限被拒绝”词?
- javascript - 在 MongoDB 文档中移动元素
- laravel - 当响应为 500 时,如何在 Laravel 中显示错误?
- angular - 使用 Angular 材质定义自定义主题时出现 SassError
- html - “步骤”属性不适用于本地日期时间
- python - Google Colab 中的 CUDA 内存不足