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

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.

Reply
alexsvi
Regular Visitor

Columna calculada para encontrar el primer padre

Hola

Digamos que tengo esto :

IdParentIDNombreNombre de los padres de Firts
10Nombre1Nombre1
20Nombre2Nombre2
31Nombre3Nombre1
41Nombre4Nombre1
52Nombre5Nombre2
63Nombre6Nombre1
75Nombre7Nombre2

¿Cómo puedo calcular la última columna como columna calculada?

¡Gracias!

2 REPLIES 2
amitchandak
Super User
Super User

@alexsvi , Pruebe una nueva columna como

coalesce(maxx(filter(table, [ID] ?earlier([parent_id])),[name]),[Name])

En realidad necesito "subir" hasta que tenga un 0 en parent_id. Puedo tener más de 5-6 capas en realidad.

Probé su código y casi funciona, pero algunos no "subir" a los principales padres

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.