Share via


대시보드 타일 포함

대시보드 타일을 포함하거나 Power BI Embedded Analytics PlaygroundAPI 탐색 섹션에서 클라이언트 API를 사용해 보세요.

이 문서에서는 애플리케이션에 대시보드 타일을 포함하는 단계를 설명합니다. Power BI 디자이너용 대시보드 타일 소개의 대시보드 타일에 대해 자세히 알아봅니다.

대시보드 타일을 포함하는 방법

앱에 Power BI 콘텐츠를 포함하는 경우 구성 개체를 사용하여 포함할 콘텐츠를 정의하고 콘텐츠 설정을 지정합니다. 그런 다음 해당 개체를 API에 전달합니다.

대시보드 타일을 포함하는 경우 ITileLoadConfiguration 형식의 구성 개체를 사용합니다.

interface ITileLoadConfiguration {
    accessToken: string;
    dashboardId: string;
    embedUrl: string;
    id: string;
    tokenType?: models.TokenType;
    type: string;
}

이 인터페이스에는 다음 속성이 포함됩니다.

예제

다음 예제에서는 단일 대시보드 타일을 포함하는 방법을 보여줍니다.

// Set up the configuration object that determines what to embed and how to embed it.
let embedConfiguration = {
    accessToken: anAccessToken,
    dashboardId: aDashboardId,
    embedUrl: anEmbedUrl,
    id: aTileId,
    tokenType: aTokenType,
    type: 'tile'
};
 
// Get a reference to the HTML element that contains the embedded dashboard tile.
let tileContainer = $('#tileContainer')[0];
 
// Embed the dashboard.
let tile = powerbi.embed(tileContainer, embedConfiguration);

다음 단계