[英]Getting Power BI Measures and Columns via REST API
I intend to get list Power BI Measures and Columns from a Power BI dashboard published in Power BI workspace.我打算从 Power BI 工作区中发布的 Power BI 仪表板中获取列表 Power BI 度量和列。 Is it possible to get this via Power BI REST API or PowerShell?是否可以通过 Power BI REST API 或 PowerShell 获得这个?
What I have tried so far:到目前为止我已经尝试过:
Is there a simple approach for this?有一个简单的方法吗? I am aware of DAX studio but I am looking for a solution or an approach that can directly connect to workspace and get the details.我知道 DAX 工作室,但我正在寻找可以直接连接到工作区并获取详细信息的解决方案或方法。
The Power BI API returns admin info on the state of a dataset, but not the data structure. Power BI API返回有关数据集 state 的管理员信息,但不返回数据结构。
If the dataset is compatible and the XMLA endpoint for the workspace is open, you can connect to that and use it like you would an Analysis Services database, including getting the measures and columns.如果数据集兼容并且工作区的XMLA 端点已打开,则可以连接到该端点并像使用 Analysis Services 数据库一样使用它,包括获取度量值和列。 You can use any tool or custom code that implements the MSOLAP or AMODB libraries.您可以使用实现 MSOLAP 或 AMODB 库的任何工具或自定义代码。 DAX Studio is just one of these options. DAX Studio 只是这些选项之一。 The url of a workspace will be powerbi://api.powerbi.com/v1.0/[tenant name]/[workspace name]工作空间的 url 将为 powerbi://api.powerbi.com/v1.0/[租户名称]/[工作空间名称]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.