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!View all the Fabric Data Days sessions on demand. View schedule
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;
The tables look something like this:
From the table above, we can see that Jill has been snooping on Jon's customer and that the action is marked:
I want to create a new column that indicates that "log_id" nr 4 is marked, and the rest is ok. Something like this:
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
Solved! Go to Solution.
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.
Odd behavior CC =
VAR _customermanager =
RELATED ( Customer[Customer_manager] )
VAR _result =
IF ( 'Log'[Employee_ID] <> _customermanager, "Marked", "OK" )
RETURN
_result
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.
Odd behavior CC =
VAR _customermanager =
RELATED ( Customer[Customer_manager] )
VAR _result =
IF ( 'Log'[Employee_ID] <> _customermanager, "Marked", "OK" )
RETURN
_result
Thank u!
This solution worked with my actual data. 🤓
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 14 | |
| 11 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 28 | |
| 20 | |
| 19 | |
| 18 | |
| 12 |