This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Power BI Connectionstring to dataset without premium. Works with Free tier. | |
Use `Microsoft.AnalysisServices.AdomdClient.AdomdConnection` | |
`Data Source=pbiazure://analysis.windows.net:443/powerbi/api;Initial Catalog=<VirtualServerName>-<DatasetId>;Location="<PowerBIClusterUrl>/xmla?vs=<VirtualServerName>&db=<DatasetId>";Password="<PowerBIAccessToken>";Provider=PBIDATASET` | |
VirtualServerName = `sobe_wowvirtualserver` or `sobe_onpremisevirtualserver` | |
PowerBIClusterUrl = e.g. `https://wabi-west-europe-d-primary-redirect.analysis.windows.net` and see JS variable in PowerBI portal. | |
DatasetId = See URL in PowerBI portal when looking at dataset options. | |
PowerBIAccessToken = Example see JS variable in PowerBI portal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = 'Stop'; | |
Get-ChildItem -Filter '*.rdl' | ForEach { | |
$reportFile = $_; | |
Write-Host $reportFile; | |
$report = [xml](Get-Content $reportFile); | |
$report.Report.EmbeddedImages.EmbeddedImage | Foreach { | |
$imagexml = $_; | |
$imageextension = $imagexml.MIMEType.Split('/')[1]; | |
$filename = $imagexml.Name + '.' + $imageextension; | |
Write-Host '->' $filename; |