我正试图为Python复制这一点,但找不到任何答案:
Is it possible to use R Plotly library in R Script Visual of Power BI?
或:
https://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1
更具体地说: 如何将提供的解决方案更改为使用script.py而不是script.R
非常感谢您的帮助
我发现在这个文件夹中有一个名为capabilities.json的文件,所以我假设这是解决方案的一部分:
"script": {
"scriptProviderDefault": "R", ###I guess this needs to be changed to Py
"scriptOutputType": "html",
"source": {
"objectName": "rcv_script",# not sure about this
"propertyName": "source"
},
"provider": {
"objectName": "rcv_script",# not sure about this
"propertyName": "provider"
}
}
在这个项目中删除referencedependecies.json之后,在构建并导入到powerbi之后,我得到了这个错误
Error Message:
An exception of type System.ArgumentException occured.
Stack Trace:
System.ArgumentException: The supplied rendering engine is not supported
at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.TransformDat aShapeResult(QueryCommand transformCommand, SemanticQueryDataShapeCommand command, Stream dataShapeResultStream, QueryBindingDescriptor& bindingDescriptor)
at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ExecuteDataQuery(IQueryResultDataWriter queryResultDataWriter, EngineDataModel engineDataModel, DataQuery query, Int32 queryId, ServiceErrorStatusCode& serviceErrorStatusCode, CancellationToken cancelToken)
at Microsoft.PowerBI.ExploreHost.SemanticQuery.ExecuteSemanticQueryFlow.ProcessAndWriteSemanticQueryCommands(IQueryResultsWriter queryResultsWriter, IList`1 queries, HashSet`1 pendingQueriesToCancel, EngineDataModel engineDataModel)
目前没有回答
相关问题 更多 >
编程相关推荐