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
Truelearner
Helper III
Helper III

RLS with Hirerachy

I have data in below format and i am importing them into SSAS to create a tabular cube and i have to create rls on the below data 

 

logic is whenever an emp with level as high level logs into power bi report , he should be able to see his data and all lowlevel employes data in his department , whenever a lowlevel emp logs in he should be seeing only his data within his department .

 

also i want to caluclate their rank depending on their sales and when high level employee logs in he should be able to see his department rank when compared to other departments but when lowlevel employee logs in he shoudl see only his rank in department and overall rank in firm. 

 

 

 

High levelLow levelDeptID
highlevel 11
 lowlevel12
 lowlevel13
 lowlevel14
 lowlevel25
 lowlevel26
highlevel 27
highlevel 28
highlevel 39
 lowlevel310

 

Deptemp
11
12
13
14
25
26
27
28
39
310

 

IDSales
110
220
330
440
550
660
770
880
990
1010

 

levelIDSalesRank indivualRank in DepartmentDept Rank in Firm
highlevel110143
lowlevel22023 
lowlevel33032 
lowlevel44041 
lowlevel55054 
lowlevel66063 
highlevel770721
highlevel880811
highlevel990912
lowlevel1010102 

 

@mgwena @cham @amitchandak @Greg_Deckler @Mariusz @yij @yij @ v-diye-msft@ @v-eachen-msft @@v-juanli-msft @v-jayw-msft v-zhenbw-msft

2 REPLIES 2
lbendlin
Super User
Super User

Do you have a proper hierarchy that you can traverse with PATH, PATHITEM etc?  If yes then you can base your RLS on that.  If not then just create roles per level and assign your users as needed. RLS Roles are optimistic. The role with the bigger scope overrules a conflicting role with smaller scope.

i dont have any of such hirerachy , over weekend i tried many things but nothing worked out 

 

i tried creating two individual tables one for high level and one for low level with columns dept , id ,lowlevel and dept , id ,highlevel and made a join between them on department to create the hirerachy but no use .

 

I really need help of community support team here as i have to complete atleast RLS by end of monday 

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.

Top Solution Authors
Top Kudoed Authors