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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have a table:
| ID | E-mail address | IsManager | ManagerId |
| 100 | employee1@company.com | 0 | 200 |
| 101 | employee2@company.com | 0 | 200 |
| 102 | employee3@company.com | 0 | 200 |
| 103 | employee4@company.com | 0 | 201 |
| 104 | employee5@company.com | 0 | 201 |
| 200 | manager1@company.com | 1 | |
| 201 | manager2@company.com | 1 |
based on this I want to create a new table, which will assign employees to managers:
| E-mail address | IsManager | id |
| manager1@company.com | 1 | 100 |
| manager1@company.com | 1 | 101 |
| manager1@company.com | 1 | 102 |
| manager2@company.com | 1 | 103 |
| manager2@company.com | 1 | 104 |
| employee1@company.com | 0 | 100 |
| employee2@company.com | 0 | 101 |
| employee3@company.com | 0 | 102 |
| employee4@company.com | 0 | 103 |
| employee5@company.com | 0 | 104 |
I tried with CROSSJOIN function:
UNION(
SUMMARIZE(table,table[E-mail],table[IsManager],table[id]),
CROSSJOIN(
SUMMARIZE(FILTER(table,table[IsManager]="1"),table[E-mail],table[IsTeamLeader])
,SUMMARIZE(table,table[id]))
)but without success - it is assigning all the data, not only related to the manager. Could you please help me with this?
Solved! Go to Solution.
Please see this article on how to leverage the PATH function for this.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please see this article on how to leverage the PATH function for this.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
hi @mahoneypat,
works great - this is what I wanted to achieve, thank you very much!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 46 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 75 | |
| 41 | |
| 26 | |
| 26 |