简体   繁体   English

通过 REST API 获取 Power BI 度量值和列

[英]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:到目前为止我已经尝试过:

  1. Downloaded the PBIX and saved the same as a template file下载 PBIX 并将其保存为模板文件
  2. I then programmatically got the measures and columns from the template file(saved as zip)然后我以编程方式从模板文件中获取度量和列(另存为 zip)

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.

相关问题 Power BI REST API 查询参数 - Power BI REST API query parameters 如何使用Power BI Rest API从Power BI应用程序检索所有用户的列表? - How to retrieve a list of all users from a Power BI app using the Power BI Rest API? 通过 REST API 在 Power BI 报表服务器上设置报表数据源和凭据以建立计划刷新 - Set report data source and credentials on Power BI Report Server through REST API to establish a scheduled refresh 异步刷新 Power BI REST API:响应不包括应包含 refreshId 的位置字段 - Async refresh Power BI REST API: Response doesn't include location field that should contain refreshId 尝试使用Power BI REST API时出错-Invoke-RestMethod:找不到接受参数的位置参数 - Error when trying to use Power BI REST API - Invoke-RestMethod : A positional parameter cannot be found that accepts argument Power BI:尝试更新参数 vi PowerShell API 调用 - Power BI: Attempting to update parameter vi PowerShell API call Power Bi 订阅 - Power Bi subscriptions 使用PowerShell刷新Power BI - Refresh Power BI with PowerShell 从 PowerShell 从 Power BI REST API 获取组内刷新历史记录并导出 CSV - From PowerShell Get Refresh History In Group from Power BI REST APIs and export do CSV Power BI:通过Get-PowerBIAccessToken延长访问令牌的到期时间 - Power BI: Extend expiration time of access token getting by Get-PowerBIAccessToken
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM