1

I have an IFrame which shows a PowerBI embedded Report that shows a list of Accounts.

I want to pass in an Account ID so that I only see the sales for my Account.

In side the report I have a Table lets say in called Query1 and Inside that table I have a field called AccountID. I need to add to my URL to filter the Accountid = 123.

My URL is something like this.... https://app.powerbi.com/reportEmbed?reportId=xxxxxxxxxxxx&autoAuth=true&ctid=xxxxxxxxxxx-xxxxxxxxx&config=eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly93YWJpLXdlc3QtZXVyb3BlLXJlZGlyZWN0LmFuYWx5c2lzLndpbmRvd3MubmV0LyJ9

What exactly should I add to filter the report by the AccountID?

1
  • It looks like you are looking for Row Level Security feature of PowerBI. Commented Jun 8, 2021 at 21:29

2 Answers 2

2

You should add url parameter called filter. You need to specify table and field you want to filter and add value of the filter after eq. So your end result should be something like that:

URL?filter=Table/Accountid eq 123.

Here's Microsoft documentation about it https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#query-string-parameter-syntax-for-filtering

Update top part of course works for filtering reports in the appor work space itself. To filter embedded report you need to specify the page and filter in a similar fashion for the embedded link https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-embed-secure. So you link will be something like that:

https://app.powerbi.com/reportEmbed?blabla&pageName=Page1&$filter=Table/Accountid eq 123

Here how it would like once embedded: result with embedded report

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

6 Comments

This may seem very stupid but I am new to POWERBI. When you put Table is that equal to my Query or is it static?
I've created the following and it still does not filter my report. app.powerbi.com/… eq 123
In the link that you sent I don't see eq or in parameter, instead you have underscore&filter=Query/B2BAcc_AccountAK. It should be &filter=Query/B2BAcc eq AccountAK. Also make sure column B2BAcc is in the Filter panel in you PBI report
Michael thank you for trying to help. Here is the URL I have apparently it did not paste completely app.powerbi.com/… eq 123 I do have the B2BAcc_AccountAK as a report level parameter. When the report loads it just will NOT filter. HELP!
I totally overlooked you were asking about embedded report,sorry. See updated version of my answer
|
0

Afaik the url method is NOT fool proof and easily circumvented. Use RLS by passing a role and a username(). You also need some method of defining which users see which accounts. Take note that using embedded rls is not very optimal either, but can be done.

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.