Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am using ExportToFile API which is amazing to say the least.
How can I specify a page so that it only exports pgName=Pg10 instead of whole report. Also, I nedd to use a Filter . I tried this in powershell which did not work as desired; it is still exporting the whole report. @AlonBAR @GilbertQ@frithjof_v
$reportID ="lorem-ipsum"
$apiEndpoint = "https://api.powerbi.com/v1.0/myorg/"
$requestUrl = $apiEndpoint+"reports"+"/"+$reportID+"/ExportTo"
#also I need to use a filter on pg10 where Calendar[Year] eq 2024
$requestBody = @"
{
"format": "PDF",
"pageName":"pg10"
}
"@
$response = Invoke-PowerBIRestMethod -Url $requestUrl -Method Post -Body $requestBody -ContentType "application/json"
Thank you in advance.
Solved! Go to Solution.
This is absolutely doable from the report with n number of pages. I have tested out.
Worflow => ExportToFile->Polling->Get File Of Export To File
$requestBody = @"
{
"format": "PDF",
"powerBIReportConfiguration": {
"pages": [
{
"pageName": "ReportSection1234567890"
}
],
"reportLevelFilters": [
{"filter": "Calendar/Month in ('Jan')"}
]
}
}
"@@
Hi @smpa01
I'm not sure if this is possible to export a single page in a report. What I would do is just to create a new report with the single page, which you could then export.
This is absolutely doable from the report with n number of pages. I have tested out.
Worflow => ExportToFile->Polling->Get File Of Export To File
$requestBody = @"
{
"format": "PDF",
"powerBIReportConfiguration": {
"pages": [
{
"pageName": "ReportSection1234567890"
}
],
"reportLevelFilters": [
{"filter": "Calendar/Month in ('Jan')"}
]
}
}
"@@
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
22 | |
17 | |
11 | |
10 | |
9 |
User | Count |
---|---|
35 | |
28 | |
18 | |
16 | |
14 |