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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, everyone.
I am working on data from Dynamics 365. The example below is a simplification. I have a Users table with their Manager (ReportsTo). I then have a Sales table. When a user logs into Power BI, I capture who they are and this passes through to a filter (represented as the slicer). I do NOT have a relationship between Sales and Users, since I am actually trying to capture information for all the people who report (either directly or indirectly) into a Manager. So for Sue, I should see sales for herself, for Lucy, and for Ziad. Whereas for Alice, I should see sales for all the users. If Bob logged in, he should only see himself.
I am thinking the Path functionality is the best way to capture this. The steps I follow are
PathContains Sales =
FILTER (
Sales,
PATHCONTAINS ( Sales[PathLookup], SELECTEDVALUE ( Users[SalesPerson] ) )
)
However, this does not return any values. I am attaching the sample workbook. I feel like I am missing something obvious, so any and all help is most appreciated!
Best, Scott
Hi @Anonymous,
PATHCONTAINS function is used to create a calculated column. Please create a calculated column in 'Sales' table and check if it is right.
Please refer to the following threads for more details.
Manager Level Hierarchies with multiples in Power BI
Creating a user hierarchy from a manager column to use as hierarchy slicer
Power BI Tutorial: Flatten Parent Child Hierarchy
Best Regards,
Angelia
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 |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |