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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hola, chicos.
Tengo la siguiente tabla con el Gerente y el Empleado:
Me gustaría mostrarlo en una matriz cuando se expande el gerente, muestra al personal que reporta al gerente. El problema es que hay ejemplos en los que el propio personal es gerente de otro personal. Idealmente, me gustaría mostrar Raymond Latter expandido a John Stamos y luego expandido a Cath Geleilo.
@Jihwan_Kim ayudó con la función PATH(). Sin embargo, obtengo el siguiente error:
El valor 'Raymond Latter' en 'HR_DW_Import'[Manager_DisplayName] también debe existir en 'HR_DW_Import'[PATH CC2]. Agregue los datos que faltan e inténtelo de nuevo.
¿Hay alguna manera de resolver esto?
Hola @azakir ,
Estos son los pasos que puedes seguir:
1. Crear columna calculada.
Test =
var _select=SELECTCOLUMNS('Table',"Man",[Manager_DisplayName])
var _test1=
CONCATENATEX(
FILTER(ALL('Table'),
'Table'[Manager_DisplayName]=EARLIER('Table'[Manager_DisplayName])),[Employee],"|")
var _table1=
SUMMARIZE(
'Table','Table'[Manager_DisplayName],
"Employe11",
CONCATENATEX(
FILTER(ALL('Table'),
'Table'[Manager_DisplayName]=EARLIER('Table'[Manager_DisplayName])),[Employee],"|"))
var _test2=
IF(
'Table'[Employee] in _select ,
MAXX(
FILTER(_table1,[Manager_DisplayName] =EARLIER('Table'[Employee])),[Employe11]))
return
_test1 &"|"&_test2
2. Resultado:
Saludos
Liu Yang
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.