电源双嵌入式报表视觉效果和图块之间的区别是什么?

时间:2018-03-19 07:18:09

标签: powerbi-embedded

我不清楚power bi报告视觉效果和图块之间的区别是什么?报告视觉效果具有更多交互界面,而瓦片则没有。

它只是一个只读报告吗?

此外,报告可视化,您是否还无法添加上下文菜单,这在呈现报告时可用?

谢谢, 德里克

1 个答案:

答案 0 :(得分:3)

不同之处在于Power BI工件的起源以及检索它所需的设置。

报告直观 - 顾名思义,这是一个位于Power BI报告中的视觉效果。 要嵌入它,您需要使用:



 
// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// This also includes settings and options such as filters.
// You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
var config= {
    type: 'visual',
    tokenType: models.TokenType.Embed,
    accessToken: txtAccessToken,
    embedUrl: embedUrl,
    id: reportId,
    pageName: pageName,
    visualName: visualName
};
 
// Get a reference to the embedded report HTML element
var embedContainer = $('#visualContainer')[0];
 
// Embed the report and display it within the div container.
var report = powerbi.embed(embedContainer, config);



 id指的是ReportId,pageName& visualName分别指代它所在的页面和可视名称。

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Single-Visual

平铺 - 这是一个仪表板平铺,实际上是一个在Power BI中固定到仪表板的视觉效果。



// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.
var config= {
    type: 'tile',
    tokenType: models.TokenType.Embed,
    accessToken: accessToken,
    embedUrl: embedUrl,
    id: embedTileId,
    dashboardId: embedDashboardId
};

// Get a reference to the embedded tile HTML element
var tileContainer = $('#tileContainer')[0];

// Embed the tile and display it within the div container.
var tile = powerbi.embed(tileContainer, config);




其中id是图块ID(GUID),dashboardId是其所在的信息中心。

修改

另一个区别是,Report Visual支持报表嵌入中可用的所有功能,例如:书签,导出数据,自定义布局,菜单扩展..而瓷砖仅支持目前仅限于各种事件的仪表板交互,而主要的是“瓷砖点击”。事件