<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Export a single visual to pdf using power bi REST api, in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3570215#M45670</link>
    <description>&lt;P&gt;Ok thank you,&lt;/P&gt;&lt;P&gt;I just wanted to make sure if it is possible, because I saw couple of guys mentioned that filter works if you have single visual in a page, or put single visual in a page and try to export with filter, also on a video published by microsoft on youtube shows single visual in a page.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=ybWWTVt_guA" target="_blank"&gt;https://www.youtube.com/watch?v=ybWWTVt_guA&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 10:23:56 GMT</pubDate>
    <dc:creator>Developmentguy</dc:creator>
    <dc:date>2023-12-06T10:23:56Z</dc:date>
    <item>
      <title>Export a single visual to pdf using power bi REST api,</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3560289#M45554</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to export a single visual using power bi REST apis, I am able to export with no filter applied, but I failed when I used filter or bookmark,&lt;/P&gt;&lt;P&gt;below are the filter string I am passing, it gives me export but it ignore the filter, it gives me the old/default report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "format": "pdf",
    "powerBIReportConfiguration": {
        "settings": {
            "includeHiddenPages": false
        },
        "pages": [
            {
                "pageName": "ReportSection",
                "visualName": "56431add05c043688b0c"
            }
        ],
        "reportLevelFilters": [
            {
                "filter": "bi_tbl_resthours_violation/violation_date ge ('2023-05-17T19:00:00.000Z') and 
                               bi_tbl_resthours_violation/violation_date lt ('2023-05-18T19:00:00.000Z')"
            }
        ]
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below are the weired pdf result that received when i applied bookmark,&lt;BR /&gt;&lt;BR /&gt;exported pdf single visual&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Developmentguy_0-1701325612935.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1004358i9DE685D09B027275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Developmentguy_0-1701325612935.png" alt="Developmentguy_0-1701325612935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;orignal report&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Developmentguy_1-1701325797941.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1004359i8BABCAA18FB14D1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Developmentguy_1-1701325797941.png" alt="Developmentguy_1-1701325797941.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 06:30:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3560289#M45554</guid>
      <dc:creator>Developmentguy</dc:creator>
      <dc:date>2023-11-30T06:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export a single visual to pdf using power bi REST api,</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3560393#M45556</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/642301"&gt;@Developmentguy&lt;/a&gt;&amp;nbsp;Did you test your filter by opening the same report in Power BI portal and adding it to the URL as a query parameter as described here &lt;A href="https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters" target="_blank"&gt;Filter a report using query string parameters in the URL - Power BI | Microsoft Learn&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;It can help understand if the issue happens because of the filter itself or for a different reason&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 07:26:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3560393#M45556</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-11-30T07:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export a single visual to pdf using power bi REST api,</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3569751#M45662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278935"&gt;@AmosHersch&lt;/a&gt;&amp;nbsp; there was 1 issue correct syntax is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"filter":"bi_tbl_resthours_violation/violation_date ge ('2023-05-17T19:00:00.000Z') and 
                               violation_date lt ('2023-05-18T19:00:00.000Z')"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to pass in the following ways but nothing worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"filter":"bi_tbl_resthours_violation/violation_date ge ('2023-05-17T19:00:00.000Z') and 
                               violation_date lt ('2023-05-18T19:00:00.000Z')"

////////////////

"filter":"bi_tbl_resthours_violation%2Fviolation_date%20ge%20(%272023-05-18T19:00:00.000Z%27)%20and%20violation_date%20lt%20(%272023-05-18T19:00:00.000Z%27)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is wrong,&lt;/P&gt;&lt;P&gt;I got the response 200 OK, but the export return with (no filter applied result even though I applied the filter)&lt;/P&gt;&lt;P&gt;also with same filter when i pass as url query in power bi portal it works fine, and return the filtered result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note that I have multiple visuals in same page and multiple pages in same report, I hope it's not an issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 05:07:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3569751#M45662</guid>
      <dc:creator>Developmentguy</dc:creator>
      <dc:date>2023-12-06T05:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export a single visual to pdf using power bi REST api,</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3569937#M45668</link>
      <description>&lt;P&gt;If the filter now works as expected in Power BI portal for the selected visual it is expected to work when you export. You don't have to escape the filter string (with %20 instead of space, etc.).&lt;/P&gt;&lt;P&gt;You can try exporting the entire report/report page with the same filter and see if it applied instead of a single visual.&lt;/P&gt;&lt;P&gt;I don't have other suggestions besides creating a support ticket with all the details.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 07:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3569937#M45668</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-12-06T07:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export a single visual to pdf using power bi REST api,</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3570215#M45670</link>
      <description>&lt;P&gt;Ok thank you,&lt;/P&gt;&lt;P&gt;I just wanted to make sure if it is possible, because I saw couple of guys mentioned that filter works if you have single visual in a page, or put single visual in a page and try to export with filter, also on a video published by microsoft on youtube shows single visual in a page.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=ybWWTVt_guA" target="_blank"&gt;https://www.youtube.com/watch?v=ybWWTVt_guA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 10:23:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-a-single-visual-to-pdf-using-power-bi-REST-api/m-p/3570215#M45670</guid>
      <dc:creator>Developmentguy</dc:creator>
      <dc:date>2023-12-06T10:23:56Z</dc:date>
    </item>
  </channel>
</rss>

