cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
quentin_vigne
Solution Sage
Solution Sage

Is it possible to filter a report with a username on website ?

Hi everyone, 

 

I would like to embed my report in a private webpage but depending on the username (id of the client connected) so that my clients can only see their datas and not others client's data. At the moment my report has a dropdown list with everyclient in my database and I would like to know if it possible to only display values that match my client name/id

 

Thanks,

 

Quentin

1 ACCEPTED SOLUTION

@quentin_vigne,

Do you use "Publish to web" to generate embed code of the report? If so, it doesn't support RLS. You can use Power BI embed instead and define RLS.

https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Microsoft
Microsoft

@quentin_vigne,


You can define Row level security in your report.

https://docs.microsoft.com/en-us/power-bi/service-admin-rls

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

So Instead of having a dropdown list of my clients I can create a client RLS where I type something like MyTable.IdClient = ["Id of connection on my website"] and It will only display values related to my IdClient, is that right ?

 

 

Quentin

 

 

EDIT : It says :

  • External sharing is not currently supported with datasets that use RLS

So embedding my report on a website and trying to make my idclient match will probably not work ? 

@quentin_vigne,

Do you use "Publish to web" to generate embed code of the report? If so, it doesn't support RLS. You can use Power BI embed instead and define RLS.

https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That's what I was looking for, thanks

 

Quentin

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors