Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |