2024年6月5日 星期三

Power BI Desktop

 


Power BI Desktop

 資料連接方式 (Storage Mode)

  1.DirectQuery

  2.Import


若使用DirectQuery資料,Power BI Desktop底下與右邊的資料區Storage Mode會出現DirectQuery


若使用Import資料,Power BI Desktop右邊的資料區的Storage Mode會出現Import

左邊會多出一個 Table View


但是若使用Import並設定了增量更新,且發布到Power BI Cloud後的Semantic Model語意模型(以前稱為DataSet),下載下來從Desktop打開則狀態會變成是Live Connection,並且從Transform介面看不到原始所選擇的DB Table,只能透過原始pbix檔開啟後才能看到



注意事項:

若連接SQL Server,但SQL Server不使用1433 Port,隨然一開始連接成功,選擇Table後,則會出現 以下錯誤,進入Transform介面似乎可以看到資料

但回到Design介面

Reoirt view右邊原本應該有Data欄位可以選擇,卻不一定會出現

Model view則是正常可以看到資料欄位


Error Message:

We couldn't connect to your DirectQuery data source or internal model. Double-check that your server and database names are correct, and that you have permission to access them.


Copy or Backup Command - robocopy

  robocopy D:\Backup E:\Backup /MIR /MT:100 /LOG+:C:\Logs\robocopy.log /MIR  鏡像目錄樹(包含 空的子目錄 ), 確保目標目錄與來源目錄完全相符,並比對刪除目標中不存在於來源中的任何檔案或目錄, /MT:...