Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I am breaking my head on this for several days now, so time to share this in the hope to get some new idea's / solution
I like to build a user hierarchy based on 1 column, The Manager column and use it in a hierarchy slicer,
I also want to connect this to the countries / regions slicer, so if you filter on a region, you see only the hierarchy of that region
I only want to get the hierarchy in place for the salesusers in the database
If I select a salesmanager, I want to see his data + all people in the team (under the SM in the hierarchy)
herunder an example of what I am trying.
hope somebody has an idea how to handle this,
thanks!
Solved! Go to Solution.
Hi @lennythelucker,
You can try to use path and pathitem function to get the role hierarchy.
Steps:
1. Calculate column to analysis the role relationship:
Path = PATH(Role[Full Name],Role[Manager])
2. Add calculated columns to store the analysis relationship to original table:
First = PATHITEM([Path],1,0) Second = PATHITEM([Path],2,0) Third = PATHITEM([Path],3,0) Fourth = PATHITEM([Path],4,0)
3. Create custom hierarchy with above columns.
Notice: sample table.
Regards,
Xiaoxin Sheng
Hi @lennythelucker,
You can try to use path and pathitem function to get the role hierarchy.
Steps:
1. Calculate column to analysis the role relationship:
Path = PATH(Role[Full Name],Role[Manager])
2. Add calculated columns to store the analysis relationship to original table:
First = PATHITEM([Path],1,0) Second = PATHITEM([Path],2,0) Third = PATHITEM([Path],3,0) Fourth = PATHITEM([Path],4,0)
3. Create custom hierarchy with above columns.
Notice: sample table.
Regards,
Xiaoxin Sheng
THANK YOU, THANK YOU, THANK YOU!!!!!
WOW!!
I already tried step 1, but then went in the direction of a calculated table and got lost in my logic 🙂
This works perfectly, I am soooo happy
I didn t know this pathitem formula, really cool
again, thank you so so so so soooo much!!!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
68 | |
54 | |
53 | |
36 | |
34 |
User | Count |
---|---|
84 | |
71 | |
55 | |
45 | |
43 |