我通过API调用(大约25个调用)从Web源获取数据,但我将其追加到3个表中。
当我尝试仅将3个附加表加载到报表中以及将几个“呼叫”加载到报表中时,在Power BI Desktop中一切正常。
我的问题是,当每个呼叫都启用“启用加载”时,出现此错误:我们无法将字段访问权限应用于文本类型。表格: MyTableName 阻止我刷新报表和数据集。这也使我无法在Power BI Service中刷新并使用“计划刷新”。
我似乎找不到确切原因所在行的任何信息,也不总是相同的电话。我浏览了这些帖子,看看是否可以找到Post 1和Post 2,但是由于有成千上万的行并且不知道要查找什么,所以我什么也没找到。
以下是我的查询示例,其中有法语部分,但我想您会理解其中很大一部分:
有人可以帮我吗?
let
Source = Json.Document(Web.Contents("https://XXXXXXXX.com?Target=Report&Method=getStats&api_key=XXXXXXXXX&fields[]=Stat.clicks&fields[]=Stat.conversions&fields[]=Stat.clicks&fields[]=Stat.conversions&fields[]=Stat.payout&fields[]=Stat.revenue&fields[]=Stat.profit&fields[]=Stat.cpc&fields[]=Stat.rpc&fields[]=Stat.date" & "&filters[Stat.offer_id][conditional]=EQUAL_TO&filters[Stat.offer_id][values]=5782" & "&fields[]=Country.name" & "&data_start=2019-04-01" & "&data_end=2019-12-31" & "&limit=400000" & "&fields[]=Offer.name" & "&fields[]=Stat.offer_id")),
response = Source[response],
data = response[data],
data1 = data[data],
#"Converti en table" = Table.FromList(data1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Column1 développé" = Table.ExpandRecordColumn(#"Converti en table", "Column1", {"Stat", "Country", "Offer"}, {"Column1.Stat", "Column1.Country", "Column1.Offer"}),
#"Column1.Stat développé" = Table.ExpandRecordColumn(#"Column1 développé", "Column1.Stat", {"clicks", "conversions", "payout", "revenue", "profit", "cpc", "rpc", "date", "offer_id"}, {"Column1.Stat.clicks", "Column1.Stat.conversions", "Column1.Stat.payout", "Column1.Stat.revenue", "Column1.Stat.profit", "Column1.Stat.cpc", "Column1.Stat.rpc", "Column1.Stat.date", "Column1.Stat.offer_id"}),
#"Column1.Country développé" = Table.ExpandRecordColumn(#"Column1.Stat développé", "Column1.Country", {"name"}, {"Column1.Country.name"}),
#"Column1.Offer développé" = Table.ExpandRecordColumn(#"Column1.Country développé", "Column1.Offer", {"name"}, {"Column1.Offer.name"}),
#"Valeur remplacée" = Table.ReplaceValue(#"Column1.Offer développé",".",",",Replacer.ReplaceText,{"Column1.Stat.payout", "Column1.Stat.revenue", "Column1.Stat.profit", "Column1.Stat.cpc", "Column1.Stat.rpc"}),
#"Type modifié" = Table.TransformColumnTypes(#"Valeur remplacée",{{"Column1.Stat.date", type date}, {"Column1.Stat.rpc", type number}, {"Column1.Stat.cpc", type number}, {"Column1.Stat.profit", type number}, {"Column1.Stat.revenue", type number}, {"Column1.Stat.payout", type number}, {"Column1.Stat.conversions", type number}, {"Column1.Stat.clicks", type number}}),
#"Colonnes renommées" = Table.RenameColumns(#"Type modifié",{{"Column1.Stat.clicks", "Clicks"}, {"Column1.Stat.conversions", "Conversions"}, {"Column1.Stat.payout", "Payout"}, {"Column1.Stat.revenue", "Revenue"}, {"Column1.Stat.profit", "Profit"}, {"Column1.Stat.cpc", "CPC"}, {"Column1.Stat.rpc", "RPC"}, {"Column1.Stat.date", "Date"}, {"Column1.Stat.offer_id", "Offer ID"}, {"Column1.Country.name", "Country Name"}, {"Column1.Offer.name", "Offer Name"}}),
#"Lignes groupées" = Table.Group(#"Colonnes renommées", {"Date", "Country Name", "Offer Name", "Offer ID"}, {{"Clicks", each List.Sum([Clicks]), type number}, {"Conversions", each List.Sum([Conversions]), type number}, {"Payout", each List.Sum([Payout]), type number}, {"Revenue", each List.Sum([Revenue]), type number}, {"Profit", each List.Sum([Profit]), type number}, {"CPC", each List.Average([CPC]), type number}, {"RPC", each List.Average([RPC]), type number}}),
#"Type modifié1" = Table.TransformColumnTypes(#"Lignes groupées",{{"Country Name", type text}, {"Offer Name", type text}, {"Offer ID", type text}})
in
#"Type modifié1"