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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have this data above. I want to create a new column which checks any values in Global ID and compares it with Supervisor ID. So, If any number in supervisor ID contains Global ID, return Manager else Below Manager. The output should be like this.
Solved! Go to Solution.
@Anonymous -
Used https://www.daxpatterns.com/parent-child-hierarchies/. Seems to work for me.
Solution =
IF (
PATHLENGTH ( PATH ( Table1[Global ID], Table1[Supervisor ID] ) ) = 1,
BLANK (),
IF (
CALCULATE (
COUNTROWS ( Table1 ),
ALL ( Table1 ),
Table1[Supervisor ID] = EARLIER ( Table1[Global ID] )
) = 0,
"Below Manager",
"Manager"
)
)
Proud to be a Super User!
@Anonymous -
Used https://www.daxpatterns.com/parent-child-hierarchies/. Seems to work for me.
Solution =
IF (
PATHLENGTH ( PATH ( Table1[Global ID], Table1[Supervisor ID] ) ) = 1,
BLANK (),
IF (
CALCULATE (
COUNTROWS ( Table1 ),
ALL ( Table1 ),
Table1[Supervisor ID] = EARLIER ( Table1[Global ID] )
) = 0,
"Below Manager",
"Manager"
)
)
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 70 | |
| 51 | |
| 42 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 142 | |
| 119 | |
| 56 | |
| 37 | |
| 32 |