简体   繁体   English

Power BI嵌入式报告选择器

[英]Power BI Embedded Report Picker

I have an embedded site for my users to view a report. 我有一个嵌入式网站供我的用户查看报告。 I have one master login for Power BI that all customers are routed through. 我有一个Power BI的主登录,所有客户都通过该登录。

Authentication and the request are done through a .NET backend using PowerBI.Api.V2. 身份验证和请求是通过使用PowerBI.Api.V2的.NET后端完成的。 Everything works well when I hardcode a single reportId and embed the fullscreen iframe. 当我对单个reportId进行硬编码并嵌入全屏iframe时,一切正常。

My question is for customers that have multiple reports; 我的问题是有多个报告的客户; Is there a built in report-picker-report that I can embed where the report selection is already handled for me? 是否有内置的报告选择报告,我可以嵌入到已经为我处理报告选择的地方? Or should I work on building an interface after retrieving the list of reports my users can pick from? 或者我应该在检索用户可以选择的报告列表后构建界面?

No, there are no built-in pickers. 不,没有内置的拣货员。 Power BI provides an API interface and you must implement these for yourself. Power BI提供了一个API接口,您必须自己实现这些接口。 Of course, you can build these pickers and make them available for us :) 当然,您可以构建这些选择器并使它们可供我们使用:)

To get list of workspaces you need to call Get Groups . 要获取工作区列表,您需要调用“ 获取组” This will give you a list of user's workspaces. 这将为您提供用户工作区的列表。 You can show their name property values to the user, but you will need their id (the guid). 您可以向用户显示其name属性值,但您需要他们的id (guid)。 When you know the id of a workspace, you can list the reports in it by calling Get Reports In Group . 当您知道工作区的ID时,可以通过调用“ 获取组中的报告”来列出其中的报告。 The same way you can call Get Dashboards In Group and Get Tiles In Group . 您可以通过相同的方式调用“在组中获取仪表板”“在组中获取切片”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM