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.
There have been a number of questions about Dynamic Row Level Secutiry and I just could not figure out how to make it work in my environment.
Apologies this project is too big to replicate:
Here is the structure:
Active Employee table
Data_as_of (last day of each month for 7 years)
Employee ID
Division
DivisionCode (Date and Division combined)
Headcount (generally always a 1)
Status (Active, Contractor, leave of Absense, etc)
Terminations table
Data_as_of (last day of each month for 7 years)
Employee ID
Division
DivisionCode (Date and Division combined)
Termination Date
Hires table
Data_as_of (last day of each month for 7 years)
Requisition ID
Position ID
Start Date
Division
DivisionCode (Date and Division combined)
Organizational table
Data_as_of (last day of each month for 7 years)
Division
DivisionCode (Date and Division combined)
Company
Division name
DivisionCode column is generally linked to every table
Standard Date Dimension table
Date column is generally linked to Data_as_of in each table
I have four companies
Each company has 6-22 Divisions
I have a CEO of all companies
I have a Company Lead for each company
I have a Division Head for each division
I have two report pages that includes YTD (end of month) and Quarterly numbers:
IMPORTANT: everyone sees everything in the All Companies page.
The complication comes in because we're displaying 4 years worth of data. And positions have changed but I want everyone to be able to see all the historical metrics. For instance our Divisional Head of HR is new to the position but I want them to be able to see the headcount of his Division back to 2016. AND I want to filter the My Company page but not the All Companies page.
I get that there is some manual effort and I will likely have to make a Managers Table, but do I have to do one for every month for the past four years of the entire structure?
Please help me create a model and roles that make sense.
Thank you all so much for your time and effort.
Best regards,
~Don
Hi don_writer,
If possible, could you please inform me more detailed information (such as your sample data and your expected output)? You could use simple data to replace your real data and upload it.
In addition, if you want to use RLS, I think you need to create an user table, then create relationship with your other table, and set RLS basedon user table.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Expected output:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |