- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Power BI RLS
Hi All,
I am stuck in one scannario related to RLS. I need to create dynamic RLS on the basis of supplier_ID and Receiver_ID
Below is the data and i have use report server (USERPRINCIPALNAME).
Date Supplier ID Receiver_ID Item
202301 abc@hmx.com xyz@hmx.com hedphone
202301 xyz@hmx.com abc@hmx.com mouse
202301 xyz@hmx.com lmn@hmx.co Key
202301 xyz@hmx.com xyz@hmx.com Pen
202302 lmn@hmx.com xyz@hmx.com Hedphone
202302 xyz@hmx.com abc@hmx.com mouse
202302 xyz@hmx.com lmn@hmx.com key
202302 lmn@hmx.com xyz@hmx.com pen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @AF_VK ,
Please try:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @AF_VK ,
When you are viewing as abc@hmx.com, As long as Supplier ID or Receiver_ID contains abc@hmx.com, that line of data will be visible.
[Supplier ID] = USERNAME()||[Receiver_ID] = USERNAME()
This formula is used to filter the table, "||" means "or". Regardless of Supplier ID or Receiver_ID, as long as one of the two column contains xxxx, that row of data could be visible.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks Jianbo, actually i am new to RLS so one question when you are viewing as abc@hmx.com ,is it supplier_id login or receiver_id login ? Also if you can explain the formula [Supplier ID] = USERNAME()||[Receiver_ID] = USERNAME() that would be great help. Thanks again for your reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @AF_VK ,
Please try:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
03-31-2024 08:31 PM | |||
09-10-2024 05:49 AM | |||
08-25-2024 09:48 PM | |||
06-23-2024 09:22 PM | |||
06-26-2024 01:05 AM |
User | Count |
---|---|
88 | |
74 | |
63 | |
48 | |
36 |
User | Count |
---|---|
116 | |
86 | |
80 | |
59 | |
39 |