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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
venu347
Frequent Visitor

After RLS applied , user are not able to saw the data in report

After RLS applied , user's are able to access but not able to saw the data in report in service, Please give some suggestion

6 REPLIES 6
venu347
Frequent Visitor

Now data is visible but ranks are missing, ex: under the manager 10 employees, currently showing 1/1 ut actual result is 4/10, means RLS it won't take remaing employees ranks under manager. Please help me

Anonymous
Not applicable

Hi, @venu347 

I create a sample table:

vyohuamsft_1-1724312502774.png

 

Next, configure RLS, create a role named Manager-ID2, and set its ManagerID=2

vyohuamsft_0-1724312463353.png

Once configured, you can view the report with this role, here is my preview:

Before

vyohuamsft_2-1724312674651.png

Arfter

vyohuamsft_3-1724312720958.png

vyohuamsft_4-1724312733732.png

The next step is to publish to the Power BI service, as ibarrau said, and then go to the security settings of the semantic model and add the user to the appropriate role.

vyohuamsft_5-1724313326522.png

vyohuamsft_6-1724313374331.png

 

 

You can learn more about RLS from the following links:

Implement row-level security - Training | Microsoft Learn

 

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

 

Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Thank you for your steps, But my actually problem is when after applied RLS ranks are not working properly, example in 1 team manager under 10 employee, based on performance ranks are given ex: employee "SACHIN" rank is 4/10, but sachin logged and checking rank is 1/1, this is wrong rank, before applied RLS shows 4/10- correctly, After applied RLS 1/1, how to achieve correct rank

 

Hi @venu347 ,

 

I can understand why this problem appears. Please tell me whether you are using static RLS or Dynamic RLS.

What happens in RLS, it shows data as per the restrictions applied to the user. The context is always on the data specific to RLS for user. so comparative analysis, bench marking and performance will not work. There is a solution, if you are using dynamic rls. In dynamic RLS, create another table with rank details independent of existing table without any linkage to existing table. I have implemented these kind of benchmarking / performance analysis in power bi with RLS applied.

 

If you can share more details on rls and modelling, I can help you further with performance.

Thanks,

Pallavi

Anonymous
Not applicable

Hi, @venu347 

I'm sorry I didn't understand what you meant. Your problem may be with the measure of your ranking

I create another sample table:

vyohuamsft_0-1724398885265.png

Then create a calculated column, try the following DAX:

RankColumn = RANKX('Table','Table'[Performance],,DESC,Dense)

vyohuamsft_6-1724399558593.png

 

When you select ManagerID, the rank will not change:

vyohuamsft_2-1724399047020.png

 

Create a new RLS role and observe with that role:

vyohuamsft_5-1724399268639.png

vyohuamsft_4-1724399221842.png

vyohuamsft_7-1724399591119.png

 

You can't use measure to rank because with RLS, it already filters out the rest of the data for you. It's equivalent to saying that your underlying data source "went from 10 employees ranked" to "ranked from 3 employees who belonged to manager ID 102". So you need to use calculated columns to fix the ranking.

vyohuamsft_9-1724400155366.png

vyohuamsft_8-1724400119147.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

ibarrau
Super User
Super User

Hi. First I would say that you go to PowerBi Desktop. Check the DAX behind the roles to make sure they are correct. After validating the code run tests. You can "View as role". Pick the role and write the email of an user to check how they will see the report. There might be something missing at that configuration.

Once you have done all that, publish the report. Go to the security settings of the semantic model and add the users to the appropiate role.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Kudoed Authors