Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Embed iFrame filtering

Hi,

 

I have successfully used this link to create filtered URLs for embedded reports:

https://docs.microsoft.com/en-us/power-bi/service-url-filters

 

But how do I edit the iFrame code to filter reports? The URL filtering logic doesn't seem to work.

 

 

 

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi there

I think that you possibly cannot do this via an iFrame

Have you had a look at the secure embed?
https://powerbi.microsoft.com/en-us/blog/easily-embed-secure-power-bi-reports-in-your-internal-porta...




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
andrewtuplin
Advocate II
Advocate II

For Embedding an iFrame, I found it matters where in the query string you insert the filter. If I inserted the filter at the end of the querystring (as the documentation suggests) I wasn't able to authenticate. If however, I added the filter directly after the ? and before the ReportId, it worked. 

 

 

This DOES NOT work (cannot authenticate)

<iframe title="Your Report Title" width="1140" height="541.25" src="https://app.powerbi.com/reportEmbed?reportId=55aa2cd4-aaa-bbb-ccc&autoAuth=true&ctid=cabcdefg&filter... eq 'MY_VALUE_TO_FILTER'" frameborder="0" allowFullScreen="true"></iframe>

 

Example. This works:  

<iframe title="Your Report Title" width="1140" height="541.25" src="https://app.powerbi.com/reportEmbed?filter=SomeTable/SomeColumn eq 'MY_VALUE_TO_FILTER'&reportId=55aa2cd4-aaa-bbb-ccc&autoAuth=true&ctid=cabcdefg" frameborder="0" allowFullScreen="true"></iframe>

GilbertQ
Super User
Super User

Hi there

I think that you possibly cannot do this via an iFrame

Have you had a look at the secure embed?
https://powerbi.microsoft.com/en-us/blog/easily-embed-secure-power-bi-reports-in-your-internal-porta...




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi Gilbert,

 

Thanks for your reply!

Awesome, glad that hopefully assist you!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors