LoginSignup
1
0

Power BI workout - OneLake integration for semantic models

Posted at

Power BI セマンティック モデルを OneLake にエクスポートできる。 Power BI セマンティック モデルもソースデータにすることができるということだ。

設定とか

必要な環境:

  • One or more import semantic models in a workspace on a Power BI Premium or Fabric capacity
  • Large semantic model storage format enabled for the model

必要な設定:
[Power BI セマンティック モデルの設定]
image.png

[TMSL による設定]
Power BI セマンティック モデルの設定に取り込んで欲しいなと思うけど。

PowerShell
$Workspace = '<Workspace_name>'
$SemanticModel = '<Semantic model name>'
$Server = "powerbi://api.powerbi.com/v1.0/myorg/$Workspace"
$Query = @"
{  
    "export": {  
      "layout": "delta",
      "type": "full",  
      "objects": [  
        {  
          "database": "$SemanticModel"  
        }  
      ]  
    }  
   }
"@

# $Workspace
# $Server
# $Query
Invoke-ASCmd -Server $Server -Query $Query -Credential (Get-Credential)

動作を確認

Lakehouse にショートカットを追加する。
image.png
Power BI セマンティック モデルは OneLake にエクスポートされる。
image.png
設定が完了している Power BI セマンティック モデルを選択
image.png
エクスポートされた Power BI セマンティック モデルからテーブルを選択
image.png
ショートカット名の編集も可能
image.png
image.png
Power BI セマンティック モデルの Refresh 前後
parquet ファイル(データ本体)が差し替えられている。
image.png

思ったこと🙄

どんなことに使うかはこれから考える。

その他

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0