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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LP280388
Resolver II
Resolver II

Load data from database based on a condition

Hi Team,

 

Is it possible to load the data from database based on a condition.

 

For example,

I have a list of "username", "email id" columns in a table called "Userslist".

In Sales table : I have employeename, sales on Direct mode.

 

I need to create a condition in powerquery to load the data only when the user from Userlist logs into the report. 

if anybody else, the table should not load. 

 

I cant use RLS/OLS because these users are at Contributor level.

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @LP280388 ,

 

As you said, RLS will fail when the user has edit permission. You might consider data masking. Please refer to this blog:

https://radacad.com/show-the-information-but-not-the-details-power-bi-data-masking 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@V-lianl-msft Thanks for the response.

however, this doesnt work for the contributor level access as he mentioned below. I need to hide data for someone who is at contributor level.

 

LP280388_0-1649405323080.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.