We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 37 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 34 | |
| 22 |