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

View all the Fabric Data Days sessions on demand. View schedule

Reply
AndCamPed
New Member

Model to oversee the customer systems to avoid snooping by employees

Halo everybody. 

Currently, I'm making a model to oversee the usage of the customer systems in my business. The purpose is to identify snooping. Meaning, one employee is looking at information about customers the person is NOT responsible for.

 

I have two tables; 

  1. one with all the log data. Who looked up a given customer at a given time.
  2. And one customer table with information about the customer and their customer manager 

The tables look something like this: 

AndCamPed_0-1698180171630.png

 

From the table above, we can see that Jill has been snooping on Jon's customer and that the action is marked:

 

AndCamPed_1-1698180547137.png

 

I want to create a new column that indicates that "log_id" nr 4 is marked, and the rest is ok. Something like this:

AndCamPed_2-1698180888760.png

 

I am open to other solutions as well.
But I need help with the DAX formula/expression to make the new column "Odd_bihavior".

 

Thank you, Andy

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not 100% sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file if it suits your requirement.

 

Jihwan_Kim_0-1698202436780.png

 

Jihwan_Kim_1-1698202590562.png

 

Odd behavior CC =
VAR _customermanager =
    RELATED ( Customer[Customer_manager] )
VAR _result =
    IF ( 'Log'[Employee_ID] <> _customermanager, "Marked", "OK" )
RETURN
    _result

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not 100% sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file if it suits your requirement.

 

Jihwan_Kim_0-1698202436780.png

 

Jihwan_Kim_1-1698202590562.png

 

Odd behavior CC =
VAR _customermanager =
    RELATED ( Customer[Customer_manager] )
VAR _result =
    IF ( 'Log'[Employee_ID] <> _customermanager, "Marked", "OK" )
RETURN
    _result

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank u!
This solution worked with my actual data. 🤓

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.