Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Syndicate_Admin
Administrator
Administrator

PATH() Error

Hola, chicos.

Tengo la siguiente tabla con el Gerente y el Empleado:

azakir_0-1702266163701.png

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?

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

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:

vyangliumsft_0-1702449300259.png

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

Gracias @v-yangliu-msft que hizo el truco por mí. Saludos por tu ayuda

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors