在 Advance 编辑器中如何处理 power BI 中丢失的列/未找到 column1 错误?
In Advance editor how to handling missing columns / column1 not found error in power BI?
在 Power Bi 中,如果当前没有数据库查询数据,大多数时候我会收到错误 column1 not found。
如何处理请教我
为此我是这样处理的,提前编辑修改结果行
使用数据源
results = if List.IsEmpty(Record. Field(List.First (Source[results]),"data"))
then Record. Field (List.First (Source[results]),"alterData")
else Record. Field((List.First (Source [results]), "data")
用户电源双静态
let
Source = Json.Document (Web.Contents ("https://xxxxxxxxxxxxx",
[Headers=[zzzzz="xxxxxx"]])),
body = Source [body],
content = body[content],
#"Converted to Table" = Table.FromList (content, Splitter.SplitByNothing(),
null,null, ExtraValues.Error}),
Tablel=Table. FromRecords ({
[Columnl = ""]
}),
result= if List.IsEmpty(content) then Tablel else #"Converted to Table"
in
result
在 Power Bi 中,如果当前没有数据库查询数据,大多数时候我会收到错误 column1 not found。
如何处理请教我
为此我是这样处理的,提前编辑修改结果行
使用数据源
results = if List.IsEmpty(Record. Field(List.First (Source[results]),"data"))
then Record. Field (List.First (Source[results]),"alterData")
else Record. Field((List.First (Source [results]), "data")
用户电源双静态
let
Source = Json.Document (Web.Contents ("https://xxxxxxxxxxxxx",
[Headers=[zzzzz="xxxxxx"]])),
body = Source [body],
content = body[content],
#"Converted to Table" = Table.FromList (content, Splitter.SplitByNothing(),
null,null, ExtraValues.Error}),
Tablel=Table. FromRecords ({
[Columnl = ""]
}),
result= if List.IsEmpty(content) then Tablel else #"Converted to Table"
in
result