1

I am trying to display the PowerBi report with filters in Iframe in my angular application. I successfully display below embedded URL in the iframe without filters.

<iframe src="https://msit.powerbi.com/reportEmbed?reportId=xxx&autoAuth=true&ctid=xx&config=xxx"></iframe>

here I need to filter the reports against some RequestId and then display it in the iframe.

filtered URL https://msit.powerbi.com/groups/xxx/reports/xxx/ReportSectioncxxx?filter=RequestDetails/Number eq 'xxxx'

getting below error when I tried this in iframe:

Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'deny'.

How to convert this filtered URL as embed URL to display in an iframe.

2
  • Append &ctid=ctid to the end of the query string so that it looks like https://msit.powerbi.com/groups/xxx/reports/xxx/ReportSectioncxxx?filter=RequestDetails/Number eq 'xxxx''&ctid=ctid. You can find the explanation here: Filter a report using query string parameters in the URL - Microsoft Commented Apr 18, 2020 at 4:23
  • still the same error. is it needed to add "reportEmbed" in the URL? base URL without filters works have that text. Commented Apr 18, 2020 at 6:41

1 Answer 1

1

Working Embeded filter URL

https://msit.powerbi.com/reportEmbed?reportId=xxx&autoAuth=true&filter=RequestDetails/SRNumber eq 'xxx'&ctid=xxx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.