<?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 to file  - Power BI Report with Filters / Parameters in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1602434#M27271</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/271645"&gt;@craigbenstock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Hope this helps you/somebody.&amp;nbsp; Kept digging and finally have a working copy - this is from a PowerShell script - so it has the double-quotes preceded by a qualifier:&lt;/P&gt;&lt;P&gt;$body = "{ format : `"PDF`",&lt;BR /&gt;powerBIReportConfiguration : { reportLevelFilters : [{ filter : `"TableName/FieldName eq 'SomeValue'`" }]} }"&lt;/P&gt;&lt;P&gt;. . .which looks same/similar to your version.&lt;/P&gt;&lt;P&gt;I used the "Try It" option from the MS documentation page to tweak the body formatting until I got a 20x response code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And here's the page documenting that filtering is possible - it's too bad they don't provide a full, soup-to-nuts working copy that includes a filter example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#filters" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 16:02:05 GMT</pubDate>
    <dc:creator>orygreg2</dc:creator>
    <dc:date>2021-01-15T16:02:05Z</dc:date>
    <item>
      <title>Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/998370#M22873</link>
      <description>&lt;P&gt;HI All,&lt;BR /&gt;&lt;BR /&gt;I am looking at the new (currently in preview) API for exporting Power BI reports as images/pdf files.&lt;BR /&gt;&lt;A title="Export to File API" href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There currently isn't a way to specify Filter/Slicer values for Power BI Reports!&lt;BR /&gt;This feels like a big omission to me, especially considering the inclusion of Bookmark capabilities.&lt;BR /&gt;&lt;BR /&gt;Is there a published roadmap for this API endpoint anywhere AND/OR does anyone know if we can expect to see filter options anytime soon?&lt;BR /&gt;&lt;BR /&gt;The API is unusable for many scenarios without this.&lt;BR /&gt;I am keeping my fingers crossed that it arrives soon.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 11:52:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/998370#M22873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-30T11:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1000232#M22884</link>
      <description>&lt;P&gt;I am struggling to find any details of 'future changes' or roadmap details for this API, so I created an idea for the inclusion of filter parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Power BI Ideas: Add Filter Parameters to 'Export to File' API" href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/40060261-add-filter-options-to-the-export-file-api" target="_blank" rel="noopener"&gt;https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/40060261-add-filter-options-to-the-export-file-api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you think that this functionality is missing - please go and upvote!&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 09:07:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1000232#M22884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-31T09:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1075176#M23507</link>
      <description>&lt;P&gt;I feel your pain Matt!&amp;nbsp; I just spent 3 days writing code to use the API to export a report to PNG. I just got to the filtering bit - we need to create a separate image for each filter value - and have hit a brick wall. Did you find a workaround?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 09:50:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1075176#M23507</guid>
      <dc:creator>latearrival</dc:creator>
      <dc:date>2020-05-06T09:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1075528#M23511</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76592"&gt;@latearrival&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;No workaround that I know of.&lt;BR /&gt;Depending on how many filters you have and what your model looks like, you might be able to use the Bookmarks feature?&lt;BR /&gt;&lt;BR /&gt;I attempted to work out if we could generate bookmark state at runtime, then apply it to a PDF/PNG export, but this was a non-starter.&lt;BR /&gt;&lt;BR /&gt;Looking at the idea site though... looks as though this has progressed to 'Under Review'.&lt;BR /&gt;So I guess we will have to wait.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 09:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1075528#M23511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T09:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1075647#M23512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah, I see that bookmarks is a workaround, albeit a poor one. The whole point of using the Export endpoint is to automate. And creating bookmarks is a manual process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm very very new to Power BI so I can't get my head around this yet, but &lt;A href="https://www.codemag.com/Article/1905061/Creating-Embedded-Reports-in-Your-Web-Apps-with-Power-BI-Embedded" target="_self"&gt;this article&lt;/A&gt; hints at being able to fudge Roles (handing in a fake user ID as a query string parameter when the access token is requested?) and using a permissions table to drive Row Level Security. So, to use the Export endpoint to produce a sales report for, let's say, a given product, I'm wondering if I could hand in a product code as the fake user ID and then... (I'm not sure what happens then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 10:18:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1075647#M23512</guid>
      <dc:creator>latearrival</dc:creator>
      <dc:date>2020-05-06T10:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1077788#M23536</link>
      <description>&lt;P&gt;Hey&amp;nbsp;@Anonymous&lt;/a&gt;, I'm going to see if I can use Bookmarks until filters are supported.&amp;nbsp; I see in the &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile" target="_self"&gt;Export to File&lt;/A&gt; doco that you can pass in a PageBookmark specifying "The bookmark to apply on a single page. Provide name or state, but not both", but that the &lt;STRONG&gt;bookmark name is currently not supported&lt;/STRONG&gt;. Do you know how I can find out the "state" value for a given bookmark?&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 02:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1077788#M23536</guid>
      <dc:creator>latearrival</dc:creator>
      <dc:date>2020-05-07T02:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1079622#M23553</link>
      <description>&lt;P&gt;I went looking at options for this... The only oneI can find (the one I was previously experimenting with) was via the JavaScript embedding API. &lt;A title="Power BI Embedded Wiki:" href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Bookmarks" target="_blank" rel="noopener"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Bookmarks&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The section at the end shows how to capture a bookmark programatically. The resulting object then holds the bookmark state.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Capture the current view
let capturedBookmark = report.bookmarksManager.capture();

// Applied previously captured state
report.bookmarksManager.applyState(capturedBookmark.state);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to work out how this state object was structured, in the hope I could dynamically create it in C#... but I didn't get very far.&lt;BR /&gt;&lt;BR /&gt;As I mentioned before... If you only have a small number of filters and bookmark states that you need to capture, then you could use this method to fetch those states and reuse them as many times as you like. But as soon as you want to do anything really dynamic... you hit a bit of a blocker.&lt;BR /&gt;&lt;BR /&gt;I am keeping my fingers crossed for quick updates to the API to add the parameters. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1079622#M23553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-07T15:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1080304#M23562</link>
      <description>&lt;P&gt;Yeah, thanks Matt. I abandoned the bookmark path - too manual.&lt;/P&gt;&lt;P&gt;EDIT - I've now got it working with Identities and Roles. I can now export a report for every value of a filter.&lt;/P&gt;&lt;P&gt;In case this helps anyone else, here's my simple use case....&lt;/P&gt;&lt;P&gt;I want to create a report for every value of a filter called Country. Because filters aren't yet supported by the ExportTo API, I've used Roles instead.&lt;/P&gt;&lt;P&gt;I created a Role in Power BI Desktop called Country. The filter for this Role is on a table called &lt;FONT face="courier new,courier"&gt;countries&lt;/FONT&gt;, with a filter expression,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;[country_code] = username()&lt;/FONT&gt;.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;countries&lt;/FONT&gt; table is already setup in my Model with the relevant relationships, and with cross filter direction = single. I then republished my report.&lt;/P&gt;&lt;P&gt;To get the &lt;FONT face="courier new,courier"&gt;ExportTo&lt;/FONT&gt; working for a specific country, I pass a country code through as the username in the body of the &lt;FONT face="courier new,courier"&gt;ExportTo&lt;/FONT&gt; API call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ "format":"PNG",
"powerBIReportConfiguration":
{ "identities": [
{ "username": "AUS",
"roles": [ "Country"],
"datasets": [ "XXXXXXXXXXXXXXX etc" ]
} ] } }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my server-side code, all I need to do is call the ExportTo API in a loop, replacing the username in the body of the call with each country code.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 03:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1080304#M23562</guid>
      <dc:creator>latearrival</dc:creator>
      <dc:date>2020-05-08T03:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1163465#M24198</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Looks like the Idea has moved to &lt;STRONG&gt;'Under Review'.&lt;/STRONG&gt;&lt;BR /&gt;&lt;A title="Power BI Ideas - Filter Options on export file API" href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/40060261-add-filter-options-to-the-export-file-api" target="_blank" rel="noopener"&gt;https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/40060261-add-filter-options-to-the-export-file-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will update this thread as things progress.&lt;BR /&gt;Feel free to go and &lt;STRONG&gt;up-vote&lt;/STRONG&gt;! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 15:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1163465#M24198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-17T15:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1277631#M25107</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76592"&gt;@latearrival&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the REST APIs for ExportToFile in my Power Automate flow.&lt;/P&gt;&lt;P&gt;I can export the PDF with no issues in a normal use case, but next I want to try out exporting a PDF with a particular bookmark.&lt;/P&gt;&lt;P&gt;Use case is - I have 5 user groups and I will create 5 bookmarks (one for each).&lt;/P&gt;&lt;P&gt;Will send the PDF in an email to each of them as per their individual bookmarks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to put the bookmark name in my flow, it doesn't work.&lt;/P&gt;&lt;P&gt;Here is how my flow looks -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vmakhija_0-1596722370342.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/327740iD6E9DE9C4B628D7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vmakhija_0-1596722370342.png" alt="vmakhija_0-1596722370342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I get is -&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"BadRequest"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Bad&amp;nbsp;Request"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"details"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Error&amp;nbsp;converting&amp;nbsp;value&amp;nbsp;\"Group1_bookmark\"&amp;nbsp;to&amp;nbsp;type&amp;nbsp;'Microsoft.PowerBI.ServiceContracts.Api.V1.PageBookmark'.&amp;nbsp;Path&amp;nbsp;'powerBIReportConfiguration.defaultBookmark',&amp;nbsp;line&amp;nbsp;1,&amp;nbsp;position&amp;nbsp;74."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"target"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"request.powerBIReportConfiguration.defaultBookmark"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Appreciate if you can provide any inputs in case you have any ideas around this use case?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:03:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1277631#M25107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T14:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1277673#M25108</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The documentation currently states that the Bookmark name (whilst accepted as a parameter) is not currently available.&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile#pagebookmark" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile#pagebookmark&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The only way to update output via bookmarks, is to pass in the bookmark state.&lt;BR /&gt;And the only way that you can get the bookmark state (that I know of) is via the JavaScript API.&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Bookmarks#capture-and-get-a-current-view-as-a-bookmark-object-and-apply-it-back-on-the-current-session" target="_blank" rel="noopener"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Bookmarks#capture-and-get-a-current-view-as-a-bookmark-object-and-apply-it-back-on-the-current-session&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The 'capture' function will return a single string value that represents the bookmark state. You can then pass this into the API.&lt;BR /&gt;&lt;BR /&gt;This is far from ideal... but I think the export API endpoint is still under preview, so will likely change quite a bit.&lt;BR /&gt;&lt;BR /&gt;The idea I raised for adding missing functionality to this API has also moved into the planned phase. So hopefully, it won't be too long before these missing features are available. &lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=0e056f7d-34b4-4778-974f-929228effcdd" target="_blank" rel="noopener"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=0e056f7d-34b4-4778-974f-929228effcdd&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers, Matt&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:17:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1277673#M25108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1278070#M25112</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for providing the details which I didn't know about.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping that this functionality is added soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have voted the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 16:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1278070#M25112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-06T16:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1320373#M25426</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;, did you solve your issue?&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;: Adding a dimension table to the row level security feature (the dimension you would like to filter on), and then filtering using the identities paramenter and then just looping on that should solve the issue.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 18:23:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1320373#M25426</guid>
      <dc:creator>FinDataAnalyst</dc:creator>
      <dc:date>2020-08-24T18:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1469214#M26319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an independent solution to the PDF export problem. We've built a tool called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;BI Helper&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://bihelper.tech/" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer"&gt;https://bihelper.tech/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to automate the generation of&amp;nbsp; PDF / PPTX reports from Power BI (Pro and Premium),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;with slicers and filters applied&lt;/STRONG&gt;. Our implementation bypasses the limitations of the API endpoints.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;With BI Helper, you can select report pages to print, schedule and generate multi-page PDF / PPTX reports and email them to your users. BI Helper has an option to include matrix and table visuals as Excel files, and lots of other advanced features.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;Our users routinely run hundreds of reports of up to 30 pages each, with the process fully automated from report generation to delivery.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BI Helper is simple to configure and use with your Power BI reports and dashboards. It is secure and scalable and offers a 14 day free trial. Try it out and let us know how it works for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kiran Hosakote&lt;/P&gt;&lt;P&gt;BI Helper&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 11:22:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1469214#M26319</guid>
      <dc:creator>KiranHosakote</dc:creator>
      <dc:date>2020-11-02T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1542655#M26733</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm posting here because I don't know if there has been an update to the docs since the original post was made.&lt;BR /&gt;I also have a requirement where I would like to call "ExportTo" using the REST API from a Javascript AJAX request.&lt;BR /&gt;In the docs (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile)" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile)&lt;/A&gt;&amp;nbsp;it says that request body accepts &lt;SPAN&gt;&lt;STRONG&gt;powerBIReportConfiguration&lt;/STRONG&gt;&amp;nbsp;which in turn accepts a &lt;STRONG&gt;reportLevelFilters&lt;/STRONG&gt;&amp;nbsp;which is of type &lt;STRONG&gt;ExportFilter&lt;/STRONG&gt;.&lt;BR /&gt;According the docs an ExportFilter is a string in the format as described under the article&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;e.g.&lt;BR /&gt;&lt;BR /&gt;?filter=Store/Territory eq 'NC'&lt;BR /&gt;&lt;BR /&gt;I've tried various permutations trying to get this to work but I never get a filter applied.&lt;BR /&gt;Does anyone know...&lt;BR /&gt;&lt;BR /&gt;- Should this filter actually be working now?&lt;BR /&gt;- What format the filter should be&lt;BR /&gt;- An example of it in code&lt;BR /&gt;&lt;BR /&gt;Here's an example of an attempt that &lt;STRONG&gt;DOESNT&lt;/STRONG&gt; work for reference:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var url = "&lt;A href="https://api.powerbi.com/v1.0/myorg/reports/" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/reports/&lt;/A&gt;" + reportId + "/ExportTo";&lt;BR /&gt;$.ajax({&lt;BR /&gt;"type": "POST",&lt;BR /&gt;"url": url,&lt;BR /&gt;"headers": {&lt;BR /&gt;"Authorization": "Bearer " + accessToken&lt;BR /&gt;},&lt;BR /&gt;"data": {&lt;BR /&gt;"format": "pdf",&lt;BR /&gt;"powerBIReportConfiguration": {&lt;BR /&gt;"reportLevelFilters": [{ "filter": "products/ProductName eq 'ExampleProductName'" }]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;})&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 08:59:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1542655#M26733</guid>
      <dc:creator>craigbenstock</dc:creator>
      <dc:date>2020-12-10T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1579792#M27002</link>
      <description>&lt;P&gt;I am running into the same issue as&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/271645"&gt;@craigbenstock&lt;/a&gt;&amp;nbsp;but only since December it seems - but it's weird since exporting to .pdf/.pptx seems to work fine in the Power BI Service, just it's no longer capturing filters/bookmark state over API calls - any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 15:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1579792#M27002</guid>
      <dc:creator>AndrewLGoldman</dc:creator>
      <dc:date>2021-01-04T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1602320#M27270</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/271645"&gt;@craigbenstock&lt;/a&gt;&amp;nbsp; -&amp;nbsp; Any chance you've figured this out??&amp;nbsp; I'm in the same boat - wanting to apply a filter at runtime when exporting the report as PDF.&amp;nbsp; I haven't been able to find a working example.&lt;/P&gt;&lt;P&gt;Thanks, Greg&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 14:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1602320#M27270</guid>
      <dc:creator>orygreg2</dc:creator>
      <dc:date>2021-01-15T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1602434#M27271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/271645"&gt;@craigbenstock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Hope this helps you/somebody.&amp;nbsp; Kept digging and finally have a working copy - this is from a PowerShell script - so it has the double-quotes preceded by a qualifier:&lt;/P&gt;&lt;P&gt;$body = "{ format : `"PDF`",&lt;BR /&gt;powerBIReportConfiguration : { reportLevelFilters : [{ filter : `"TableName/FieldName eq 'SomeValue'`" }]} }"&lt;/P&gt;&lt;P&gt;. . .which looks same/similar to your version.&lt;/P&gt;&lt;P&gt;I used the "Try It" option from the MS documentation page to tweak the body formatting until I got a 20x response code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofileingroup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And here's the page documenting that filtering is possible - it's too bad they don't provide a full, soup-to-nuts working copy that includes a filter example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#filters" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#filters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 16:02:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1602434#M27271</guid>
      <dc:creator>orygreg2</dc:creator>
      <dc:date>2021-01-15T16:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1625730#M27521</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/103623"&gt;@orygreg2&lt;/a&gt;,&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's a solution. &lt;STRONG&gt;&lt;SPAN&gt;BI Helper&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;U&gt;bihelper.tech&lt;/U&gt;&amp;nbsp;&lt;/SPAN&gt;automates the generation of&amp;nbsp; PDF / PPTX reports from Power BI (Pro and Premium),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;with slicers and filters applied either in batch mode or at runtime&lt;/SPAN&gt;&lt;/STRONG&gt;. Our implementation bypasses the limitations of the Power BI API endpoints.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In BI Helper, you can select pages to print, schedule and generate multi-page PDF / PPTX reports and email them to your users. &lt;U&gt;Our users routinely run hundreds of reports of up to 30 pages each, with the process fully automated from report generation to delivery.&amp;nbsp;&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BI Helper is simple to configure and use with your Power BI reports and dashboards. It is secure and scalable and we offer a 14 day free trial. Test it out and let us know how it works.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kiran Hosakote&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BI Helper&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 09:22:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1625730#M27521</guid>
      <dc:creator>KiranHosakote</dc:creator>
      <dc:date>2021-01-27T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export to file  - Power BI Report with Filters / Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1987491#M30805</link>
      <description>&lt;P&gt;We went down a similar path.&amp;nbsp; Ultimately, the only solution we found is that the published report CANNOT have any report-level filters applied when published.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 13:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/m-p/1987491#M30805</guid>
      <dc:creator>DavidSkyles</dc:creator>
      <dc:date>2021-07-29T13:43:51Z</dc:date>
    </item>
  </channel>
</rss>

