This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.