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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Sorry about the title but it's hard to condense it to a sentence and make sense.
This is what I am trying to achieve (col C):
| Name | Reports To | Layers From D |
| A | B | 3 |
| B | F | 2 |
| C | F | 2 |
| D | - | 0 |
| E | B | 3 |
| F | D | 1 |
Given Col A and Col B, I want a calculated column to see how far a person is in the reporting structure from D. So for example, C reports to F who reports to D, so 2 layers from D.
From a programming perspective, I think the approach is to go iteratively go through each person in COl A and use a counter to add +1 until person D is reached. But I am lost on how to implement it in PBI. Any suggestions?
Solved! Go to Solution.
using path function
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 |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |