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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Dynamically change x axis according to RLS

Hi All, 

 

I have 4 levels of hierarchy: 

1st: VP Level 

2nd: Director

3rd: Department

4th: Employees 

 

I have a report that tracks the number of hours that employee are working in a column chart. However, on the X axis I would like to dynamically display one level lower according to which level of user is signing in. For e.g., if VP level signs in then the x axis should show director level, if director signs in then it should show department level, if department signs in then employees etc.   How can implement this? 

 

Thanks a lot in advance 🙂 🙂 

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

For Dynamic Row Level Security with Hierarchy case, you may refer to these blog:

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi

https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multipl...

https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

 

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

danielwelch
Resolver II
Resolver II

Hi Evko,


Create a new calculated column in hours table identifying who can see what i.e if - role is lowest then All, Else if next level then Department, Else Director, Else VP.

Then filter your RLS for each user based on the new column, this will then remove any data they are not authorised to see from the sales table and update your visualisation.

Hope this helps.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.