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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
fsim
Responsive Resident
Responsive Resident

filtering by the user without model RLS?

Hi there !

is there any workaround to be able to have one report that can show all the data or only the data of the end user ?

in other words, I would like to have in a single report, two different "views". One for all the opportunities (from the crm) and one for the end user's owned opportunities.

I wanted to create a column that check if the userprincipalname()= owner.domainname, but it's forbidden by the system 😕

I would like to avoid publishing the same report twice, one with RLS and one without.

 

thanks in advance

 

1 ACCEPTED SOLUTION
mattww
Responsive Resident
Responsive Resident

Yeah I agree, you could also use a COUNTROWS() on your Sales table and include a filter on every visual to only show results where the row count > 0, this would effectively hide any inapplicable dimensions.

 

The other option if you're looking for RLS to show all results to certain people (e.g. senior leaders) is to create a role in RLS (e.g Sales Director) where the condition is always true (i.e. 1=1), anyone assigned to this role will see everything

 

SalesDirector.PNGSalesManager.PNG

 

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

3 REPLIES 3
mattww
Responsive Resident
Responsive Resident

Hi @fsim , 

 

You could use USERPRINCIPALNAME() in your measures, I'm not sure how advisable or secure this is since RLS was designed for exactly this purpose.

 

MySales = CALCULATE(SUM(Opportunities[SalePrice]),Opportunities[Owner] = USERPRINCIPALNAME())

 

You'd also have to apply this logic to every relevant measure, not sure how feasible that is, although Calculation Groups could help make that easier.

 

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

fsim
Responsive Resident
Responsive Resident

Hello Mattww,

thanks for the answer.

this could indeed resolve the measure parts but not the list and the row filtering.

thanks anyway !

 

mattww
Responsive Resident
Responsive Resident

Yeah I agree, you could also use a COUNTROWS() on your Sales table and include a filter on every visual to only show results where the row count > 0, this would effectively hide any inapplicable dimensions.

 

The other option if you're looking for RLS to show all results to certain people (e.g. senior leaders) is to create a role in RLS (e.g Sales Director) where the condition is always true (i.e. 1=1), anyone assigned to this role will see everything

 

SalesDirector.PNGSalesManager.PNG

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.