cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CamFi
Frequent Visitor

Conditional data masking or something else

Hi everybody, 

i've been looking for a solution for my problem for quite i while now and haven't been able to find a correct way to do so. i am trying to implement data sercurity masking so everybody is not able to see all data. 

 

i have a time entries table where all employees work entries are registered. every entry is registered inside a category: Customer time, Internal Time or Sickness.

i am trying to create a sickness report - but some data should be masked depending on which user is looking at the report. the picture below describes how the data should be viewed:

 

CamFi_0-1631622200309.png

 

Requirements:

 

  • everybody should be able to see totals and percentage of total
  • HR should be able to see everything
  • Managers should be able to see detailed data for their own teams
  • Employees should only be able to see details of their own data
  • the restriction should work in both power BI and when downloading to excel

 

I've started with a solution based on dynamical RLS with PATHCONTAINS() - the idea behind this dynamical RLS is close, but it deletes the totals and percentages of total which i need  and it do not take into consideration customer time, internal time or sickess. the detailed information should only be masked for sickness, and not for customer time or internal time. 

 

Hope somebody might know a solution to the above mentioned problem.

 

cheers.

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @V-lianl-msft,

thank you for the respond. i forgot to mention that i am using a SSAS tabular live connection, and are therefor not able to restrict or manage the roles inside power BI. But i will try to see if this can in someway be implemented into SSAS. 

i am a little worried though to create duplicate tables and was hoping to find another solution.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!