Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola
Tengo una mesa:
IDENTIFICACIÓN | Dirección de correo electrónico | 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 |
En base a esto quiero crear una nueva tabla, que asignará empleados a los gerentes:
Dirección de correo electrónico | IsManager | identificación |
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 |
Probé con la función CROSSJOIN:
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]))
)
pero sin éxito: está asignando todos los datos, no solo relacionados con el gerente. ¿Podría por favor ayudarme con esto?
Solved! Go to Solution.
Consulte este artículo sobre cómo aprovechar la función PATH para esto.
Palmadita
Consulte este artículo sobre cómo aprovechar la función PATH para esto.
Palmadita
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |