【PowerQuery】PowerShell refreshes cloud data

PowerShell can directly refresh the local version of data in early versions of PowerBI. However, with the release of the new version of PowerBI Desktop, Microsoft can no longer refresh the data set of the local PowerBI Dekstop PBIX file after disabling the Alt key. The following is a PowerShell script to refresh the PowerBI Desktop file. If PowerBI opens the Alt key in the future, you can reuse this PowerShell script (currently unavailable).

$wshell = New-Object -ComObject Wscript.Shell

[void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic");

[Microsoft.VisualBasic.Interaction]::AppActivate("Master8 - Power BI Desktop

おすすめ

転載: blog.csdn.net/fogyisland2000/article/details/133234956