Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi i have chart that show total employee number and training hours per department. On the dashboard also will show average company training hours/staff ( total training hours for whole company/total staff)
I want to create RLS where for example each department can only see their record. For example Finance only can see total empoloyee number in Finance dept and also training hours of them but i want to keep the measure to show average company training hours/staff as benchmarking
When i do RLS, the measure will be affected . For example if i view as Finance, the average company training hours will only shown based on Finance only.
For example the average training hours when i see as whole or see as finance department should be same 55.68 hours
This is measure that i use for calculate average hours
Company Average Training Hours = DIVIDE([Total Training Hours],[Total Employee])
Please kindly help,
Thanks
Solved! Go to Solution.
Hi @laurent_rio ,
Based on my test, the RLS filter the dataset directly. ALL() and ALLSELECTED() are unlikely to work in this case.
So my workround is to create a new column/table for the average calculation that could not be affected by RLS
Avg Column = AVERAGEA('Table'[Training Hours])Table 2 = SUMMARIZE('Table',"Avg of All",AVERAGE('Table'[Training Hours]))
The final output is shown below:
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.
Hi @laurent_rio ,
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.
Best Regards,
Eyelyn Qin
Hi @laurent_rio ,
Based on my test, the RLS filter the dataset directly. ALL() and ALLSELECTED() are unlikely to work in this case.
So my workround is to create a new column/table for the average calculation that could not be affected by RLS
Avg Column = AVERAGEA('Table'[Training Hours])Table 2 = SUMMARIZE('Table',"Avg of All",AVERAGE('Table'[Training Hours]))
The final output is shown below:
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.
Hi @amitchandak
Thanks for you reply both looks not really straight forward but i will look into it first
Thanks
@laurent_rio two option to explore perspectives and object-level security
https://data-marc.com/2020/08/18/power-bi-visual-customization-using-perspectives/
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |