PowerApps 中的 Power BI 磁贴控件Power BI tile control in PowerApps

在应用内显示 Power BI 磁贴的控件。A control that shows a Power BI tile inside an app.

说明Description

通过在应用内显示 Power BI 磁贴来利用现有数据分析和报告。Take advantage of your existing data analysis and reporting by displaying your Power BI tiles inside your apps. 通过在选项面板的“数据”选项卡设置磁贴的“Workspace”、“Dashboard”和“Tile”属性来选择想要显示的磁贴。Choose the tile you want to show by setting its Workspace, Dashboard and Tile properties in the Data tab of the options panel.

共享和安全性Sharing and security

共享后,有权访问 PowerApp 的所有用户均可访问此应用。Once shared, the PowerApp will be accessible by all users who have permissions to access the app. 但是,若要使 Power BI 内容对这些用户可见,需要将磁贴所在的仪表板与 Power BI 上的用户共享However in order to make the Power BI content visible to those users, the dashboard where the tile comes from needs to be shared with the user on Power BI. 这样可确保在应用中访问 Power BI 内容时 Power BI 共享权限受到尊重。This ensures that Power BI sharing permissions are respected when Power BI content is accessed in an app.

关键属性Key properties

Workspace – 磁贴所在的 Power BI 工作区。Workspace – The Power BI workspace where the tile comes from.

Dashboard – 磁贴所在的 Power BI 仪表板。Dashboard – The Power BI dashboard where the tile comes from.

Tile – 想要显示的 Power BI 磁贴的名称。Tile – The name of the Power BI tile you want to display.

其他属性Additional properties

BorderColor – 控件边框的颜色。BorderColor – The color of a control's border.

BorderStyle – 控件边框是实线虚线点线还是BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.

BorderThickness – 控件边框的粗细。BorderThickness – The thickness of a control's border.

DisplayMode – 此控件是允许用户输入 (Edit)、仅显示数据 (View),还是已禁用 (Disabled)。DisplayMode – Whether the control allows user input (Edit), only displays data (View), or is disabled (Disabled).

Height – 控件上边缘和下边缘之间的距离。Height – The distance between a control's top and bottom edges.

OnSelect – 用户点击或单击某个控件时应用响应的方式。OnSelect – How the app responds when the user taps or clicks a control. 默认行为会将用户转到此磁贴关联的 Power BI 报表。Default behavior takes the user to the Power BI report associated with the tile.

Visible – 控件显示还是隐藏。Visible – Whether a control appears or is hidden.

Width – 控件左边缘和右边缘之间的距离。Width – The distance between a control's left and right edges.

X - 控件左边缘与其父容器(如果没有父容器,则为屏幕)左边缘之间的距离。X – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).

Y - 控件上边缘与其父容器(如果没有父容器,则为屏幕)上边缘之间的距离。Y – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).

示例Example

  1. 从“插入”选项卡的“控件”菜单中添加“Power BI 磁贴”控件。Add a Power BI tile control from the Insert tab, Controls menu.
  2. 在“选项”面板的“数据”选项卡中,为“工作区”设置选择“我的工作区”。In the Data tab on options panel choose "My Workspace" for the Workspace setting. 从仪表板列表中选择一个仪表板,并从磁贴列表中选择一个磁贴。Choose a dashboard from the list of dashboards, and a tile from the list of tiles.

    控件将显示该 Power BI 磁贴。The control renders the Power BI tile.

    不知道如何添加和配置控件Don't know how to add and configure a control?

    没有 Power BI?Don't have have Power BI? 注册Sign up.