--- title: "PowerBI Desktopとの連携" slug: "powerbi-desktop-integration" updated: 2026-10-22T18:01:48Z published: 2026-10-22T18:01:48Z canonical: "support.tulip.co/powerbi-desktop-integration" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # PowerBI Desktopとの連携 *Tulip TablesをPowerBI Desktopと統合して、分析業務を効率化* [ライブラリページへのリンク](https://library.tulip.co/videos/powerbi-desktop-integration) ## 概要 添付の .pbix テンプレートは、Tulip テーブルを[Power BI](https://tulip.widen.net/content/efdxolfssc/original/tulip_library_powerquery_template.zip?u=a1yhpj&download=true)で簡単にクエリする方法を紹介しています。[Power BI テンプレートをダウンロード](https://tulip.widen.net/content/efdxolfssc/original/tulip_library_powerquery_template.zip?u=a1yhpj&download=true) Tulip Analyticsは、Tulipデータのみの分析だけでなく、ストリーミングデータの分析においても、より優れたパフォーマンスを発揮します。複雑なデータモデル、より長いリフレッシュ頻度、およびより広範な範囲を必要とする分析において、このアプローチを活用することで、経営幹部にTulipデータを的確に提示することができます ## PowerQueryスクリプト あるいは、PowerBI テンプレートに含まれる PowerQuery スクリプトについては以下をご覧ください```(TulipTableId as text, instance as text) as table=> letQuery = #table( type table [#"table" = text], { {TulipTableId}}), Function = Table.AddColumn(Query, "Offset", Number.Round(Json.Document(Web.Contents("https://"&instance&"/api/v3/tables/"& TulipTableId &"/count"))/100)), ExpandedOffset = Table.ExpandListColumn(Function, "Offset"), NbLoop = Number.Round(Json.Document(Web.Contents("https://" & instance & "/api/v3/tables/" & TulipTableId & "/count")) / 100), TableOffset = Table.FromList(List.Transform({0..NbLoop}, each Number.ToText(_ * 100))), TableOffset1 = Table.RenameColumns(TableOffset, {{"Column1", "Offset"}}), TulipTable = Table.AddColumn(TableOffset1, "Records", each Table.FromRecords(Json.Document(Web.Contents("https://" & instance & "/api/v3/tables/" & TulipTableId & "/records?limit=100&offset="& [Offset] &"&sortBy=_sequenceNumber&sortDir=asc")))) inTulipTable``` ## Power BI サービスの統合 :::(情報) (注) 上記のスクリプトは Power BI Desktop では動作しますが、クラウド(Power BI サービス)での自動更新には特別な注意が必要です。「動的データソース」エラーを回避するには、スクリプト内で Web.Contents の RelativePath および Query 関数を使用する必要があります。 これにより、Power BI はTulip instance のルート URL を静的データソースとして識別できるようになり、レポートの公開後にスケジュールされた更新や API 認証情報の安全な管理が可能になります。 ::: Power BI Serviceとの互換性を確保するには、次のPower Query (M) スクリプトを使用してください: `(TulipTableId as text, instance as text) as table =>let BaseUrl = "https://" & instance, CountPath = "api/v3/tables/" & TulipTableId & "/count", NbRecords = Json.Document(Web.Contents(BaseUrl, [RelativePath = CountPath])), NbLoop = Number.RoundUp(NbRecords / 100), Offsets = List.Transform({0..NbLoop-1}, each _ * 100)), TableOffset = Table.FromList(Offsets, Splitter.SplitByNothing(), {"Offset"}), TableOffset1 = Table.TransformColumnTypes(TableOffset, {{"Offset", type text}}), TulipTable = Table.AddColumn(TableOffset1, "Records", each let RecordsPath = "api/v3/tables/" & TulipTableId & "/records", Response = Json.Document( Web.Contents(BaseUrl, [ RelativePath = RecordsPath, Query = [ limit = "100", offset = [Offset], sortBy = "_sequenceNumber", sortDir = "asc" ] ]) ) in Table.FromRecords(Response) )in` *TulipTableこの Power BI サービス統合ガイドラインは、ATS によって提供されました。* ## 手順 .pbix テンプレートをダウンロードし、アプリ内の手順(以下に示す)に従ってください 1. 「ホーム >>> データの変換」セクションにあるテンプレート化された PowerQuery を確認し、PowerQuery を開いてください 2. クエリ「Tulip Query」を確認し、Tulip TableID を目的のテーブル ID に、instance をインスタンスの URL(例: company.tulip.co)に置き換えてください 3. 「Invoke」をクリックし、API 認証情報を入力します(「Basic」認証を使用してください) 4. プロンプトが表示されたら、プライバシーレベルを指定してください(ほとんどのユースケースでは、デフォルトは「組織」です) 5. レコード列の右側にある分割矢印をクリックします 6. 必要に応じてテーブルを変更し、「Close and Apply」をクリックします ## その他の参考情報 - [microsoft.com/en-us/power-bi/transform-model/desktop-query-overview">PowerBI Desktop Support](https://learn.Microsoft Documentation on Dynamic Data Sources](https://learn.